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