Class: BothIsGood::Context::Switching
- Inherits:
-
Object
- Object
- BothIsGood::Context::Switching
- Includes:
- Names, Memoization
- Defined in:
- lib/both_is_good/context/switching.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#target_class ⇒ Object
readonly
Returns the value of attribute target_class.
Instance Method Summary collapse
-
#initialize(target_class, method_name) ⇒ Switching
constructor
A new instance of Switching.
Methods included from Names
#class_to_tag, #method_to_tag, #underscore
Methods included from Memoization
Constructor Details
#initialize(target_class, method_name) ⇒ Switching
Returns a new instance of Switching.
7 8 9 10 |
# File 'lib/both_is_good/context/switching.rb', line 7 def initialize(target_class, method_name) @target_class = target_class @method_name = method_name end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
12 13 14 |
# File 'lib/both_is_good/context/switching.rb', line 12 def method_name @method_name end |
#target_class ⇒ Object (readonly)
Returns the value of attribute target_class.
12 13 14 |
# File 'lib/both_is_good/context/switching.rb', line 12 def target_class @target_class end |