Class: BothIsGood::Context::Switching

Inherits:
Object
  • Object
show all
Includes:
Names, Memoization
Defined in:
lib/both_is_good/context/switching.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Names

#class_to_tag, #method_to_tag, #underscore

Methods included from Memoization

included

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_nameObject (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_classObject (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