Skip to content

Commit 52b3578

Browse files
committed
refactor: rename Strategyable to Strategizable
Rename Strategyable module to Strategizable to be more grammatically correct and consistent with strategize method.
1 parent 030620a commit 52b3578

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.rubocop_todo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2026-01-02 10:52:03 UTC using RuboCop version 1.82.1.
3+
# on 2026-01-02 20:06:51 UTC using RuboCop version 1.82.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -12,7 +12,7 @@
1212
Lint/ConstantDefinitionInBlock:
1313
Exclude:
1414
- 'spec/callable_tree/node/external_spec.rb'
15-
- 'spec/callable_tree/node/internal/strategyable_spec.rb'
15+
- 'spec/callable_tree/node/internal/strategizable_spec.rb'
1616

1717
# Offense count: 1
1818
# Configuration parameters: AllowedParentClasses.
@@ -86,7 +86,7 @@ Naming/PredicateMethod:
8686
# Offense count: 1
8787
Style/ClassVars:
8888
Exclude:
89-
- 'lib/callable_tree/node/internal/strategyable.rb'
89+
- 'lib/callable_tree/node/internal/strategizable.rb'
9090

9191
# Offense count: 40
9292
# Configuration parameters: AllowedConstants.

lib/callable_tree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Error < StandardError; end
1414
require_relative 'callable_tree/node/internal/strategy/broadcast'
1515
require_relative 'callable_tree/node/internal/strategy/seek'
1616
require_relative 'callable_tree/node/internal/strategy/compose'
17-
require_relative 'callable_tree/node/internal/strategyable'
17+
require_relative 'callable_tree/node/internal/strategizable'
1818
require_relative 'callable_tree/node/external/verbose'
1919
require_relative 'callable_tree/node/external'
2020
require_relative 'callable_tree/node/internal'

lib/callable_tree/node/internal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Node
55
module Internal
66
extend ::Forwardable
77
include Node
8-
include Strategyable
8+
include Strategizable
99

1010
def self.included(mod)
1111
return unless mod.include?(External)

lib/callable_tree/node/internal/strategyable.rb renamed to lib/callable_tree/node/internal/strategizable.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module CallableTree
44
module Node
55
module Internal
6-
module Strategyable
6+
module Strategizable
77
def self.included(mod)
88
mod.extend ClassMethods
99
end
@@ -70,8 +70,8 @@ def store_strategy(key, config)
7070
key = key.to_sym
7171
config[:alias] = key unless config[:alias]
7272
config[:factory] = DEFAUTL_FACTORY unless config[:factory]
73-
Strategyable.__send__(:strategy_configs)[key] = config
74-
Strategyable.__send__(:define_strategy_methods, key, config)
73+
Strategizable.__send__(:strategy_configs)[key] = config
74+
Strategizable.__send__(:define_strategy_methods, key, config)
7575
end
7676
end
7777

spec/callable_tree/node/internal/strategyable_spec.rb renamed to spec/callable_tree/node/internal/strategizable_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
RSpec.describe CallableTree::Node::Internal::Strategyable do
3+
RSpec.describe CallableTree::Node::Internal::Strategizable do
44
Internal = CallableTree::Node::Internal
55

66
describe '.store_strategy' do

0 commit comments

Comments
 (0)