Class: Uses::UsesMethodArgs
- Inherits:
-
Object
- Object
- Uses::UsesMethodArgs
- Defined in:
- lib/uses/uses_method_args.rb
Instance Attribute Summary collapse
-
#initializer_strategy ⇒ Object
readonly
Returns the value of attribute initializer_strategy.
-
#klass_being_used ⇒ Object
readonly
Returns the value of attribute klass_being_used.
-
#klass_with_uses ⇒ Object
readonly
Returns the value of attribute klass_with_uses.
-
#method_name_override ⇒ Object
readonly
Returns the value of attribute method_name_override.
-
#uses_config ⇒ Object
readonly
Returns the value of attribute uses_config.
Instance Method Summary collapse
-
#initialize(klass_being_used:, klass_with_uses:, method_name_override:, initializer_strategy:, uses_config:) ⇒ UsesMethodArgs
constructor
A new instance of UsesMethodArgs.
Constructor Details
#initialize(klass_being_used:, klass_with_uses:, method_name_override:, initializer_strategy:, uses_config:) ⇒ UsesMethodArgs
Returns a new instance of UsesMethodArgs.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/uses/uses_method_args.rb', line 10 def initialize(klass_being_used:, klass_with_uses:, method_name_override:, initializer_strategy:, uses_config:) @klass_being_used = klass_being_used @klass_with_uses = klass_with_uses @method_name_override = method_name_override @initializer_strategy = initializer_strategy @uses_config = uses_config end |
Instance Attribute Details
#initializer_strategy ⇒ Object (readonly)
Returns the value of attribute initializer_strategy.
4 5 6 |
# File 'lib/uses/uses_method_args.rb', line 4 def initializer_strategy @initializer_strategy end |
#klass_being_used ⇒ Object (readonly)
Returns the value of attribute klass_being_used.
4 5 6 |
# File 'lib/uses/uses_method_args.rb', line 4 def klass_being_used @klass_being_used end |
#klass_with_uses ⇒ Object (readonly)
Returns the value of attribute klass_with_uses.
4 5 6 |
# File 'lib/uses/uses_method_args.rb', line 4 def klass_with_uses @klass_with_uses end |
#method_name_override ⇒ Object (readonly)
Returns the value of attribute method_name_override.
4 5 6 |
# File 'lib/uses/uses_method_args.rb', line 4 def method_name_override @method_name_override end |
#uses_config ⇒ Object (readonly)
Returns the value of attribute uses_config.
4 5 6 |
# File 'lib/uses/uses_method_args.rb', line 4 def uses_config @uses_config end |