Class: Uses::UsesMethodArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/uses/uses_method_args.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_strategyObject (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_usedObject (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_usesObject (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_overrideObject (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_configObject (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