Class: Johnson::Visitors::EnumeratingVisitor
- Defined in:
- lib/johnson/visitors/enumerating_visitor.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
Instance Method Summary collapse
-
#initialize(block) ⇒ EnumeratingVisitor
constructor
A new instance of EnumeratingVisitor.
Methods inherited from Visitor
#accept, #visit_For, #visit_ForIn, #visit_Function, #visit_LexicalScope, #visit_SourceElements, #visit_Try
Constructor Details
#initialize(block) ⇒ EnumeratingVisitor
Returns a new instance of EnumeratingVisitor.
5 6 7 |
# File 'lib/johnson/visitors/enumerating_visitor.rb', line 5 def initialize(block) @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
4 5 6 |
# File 'lib/johnson/visitors/enumerating_visitor.rb', line 4 def block @block end |