Class: DevelopWithPassion::Expander::ArrayVisitor

Inherits:
Object
  • Object
show all
Defined in:
lib/developwithpassion_expander/array_visitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/developwithpassion_expander/array_visitor.rb', line 4

def name
  @name
end

#visitorObject

Returns the value of attribute visitor.



4
5
6
# File 'lib/developwithpassion_expander/array_visitor.rb', line 4

def visitor
  @visitor
end