Class: Pretentious::LazyTrigger::Target
- Inherits:
-
Object
- Object
- Pretentious::LazyTrigger::Target
- Defined in:
- lib/pretentious/lazy_trigger.rb
Instance Attribute Summary collapse
-
#module_space ⇒ Object
Returns the value of attribute module_space.
-
#name ⇒ Object
Returns the value of attribute name.
-
#original_klass ⇒ Object
Returns the value of attribute original_klass.
-
#stand_in_klass ⇒ Object
Returns the value of attribute stand_in_klass.
Instance Method Summary collapse
-
#initialize(module_space, klass, last_part, stand_in_class) ⇒ Target
constructor
A new instance of Target.
- #to_a ⇒ Object
Constructor Details
#initialize(module_space, klass, last_part, stand_in_class) ⇒ Target
Returns a new instance of Target.
8 9 10 11 12 13 |
# File 'lib/pretentious/lazy_trigger.rb', line 8 def initialize(module_space, klass, last_part, stand_in_class) @module_space = module_space @stand_in_klass = stand_in_class @original_klass = klass @name = last_part end |
Instance Attribute Details
#module_space ⇒ Object
Returns the value of attribute module_space.
6 7 8 |
# File 'lib/pretentious/lazy_trigger.rb', line 6 def module_space @module_space end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/pretentious/lazy_trigger.rb', line 6 def name @name end |
#original_klass ⇒ Object
Returns the value of attribute original_klass.
6 7 8 |
# File 'lib/pretentious/lazy_trigger.rb', line 6 def original_klass @original_klass end |
#stand_in_klass ⇒ Object
Returns the value of attribute stand_in_klass.
6 7 8 |
# File 'lib/pretentious/lazy_trigger.rb', line 6 def stand_in_klass @stand_in_klass end |
Instance Method Details
#to_a ⇒ Object
15 16 17 |
# File 'lib/pretentious/lazy_trigger.rb', line 15 def to_a [@module_space, @original_klass, @name, @stand_in_klass] end |