Class: DevelopWithPassion::Expander::ArrayMutator
- Defined in:
- lib/developwithpassion_expander/array_mutator.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, block) ⇒ ArrayMutator
constructor
A new instance of ArrayMutator.
Constructor Details
#initialize(name, block) ⇒ ArrayMutator
Returns a new instance of ArrayMutator.
6 7 8 9 |
# File 'lib/developwithpassion_expander/array_mutator.rb', line 6 def initialize(name,block) @name = name @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
4 5 6 |
# File 'lib/developwithpassion_expander/array_mutator.rb', line 4 def block @block end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/developwithpassion_expander/array_mutator.rb', line 4 def name @name end |