Class: RKelly::Visitors::EnumerableVisitor

Inherits:
Visitor
  • Object
show all
Defined in:
lib/rkelly/visitors/enumerable_visitor.rb

Constant Summary

Constants inherited from Visitor

Visitor::ALL_NODES, Visitor::ARRAY_VALUE_NODES, Visitor::BINARY_NODES, Visitor::CONDITIONAL_NODES, Visitor::FUNC_CALL_NODES, Visitor::FUNC_DECL_NODES, Visitor::NAME_VALUE_NODES, Visitor::PREFIX_POSTFIX_NODES, Visitor::SINGLE_VALUE_NODES, Visitor::TERMINAL_NODES

Instance Method Summary collapse

Methods inherited from Visitor

#accept, #visit_BracketAccessorNode, #visit_DotAccessorNode, #visit_ForInNode, #visit_ForNode, #visit_TryNode

Constructor Details

#initialize(block) ⇒ EnumerableVisitor

Returns a new instance of EnumerableVisitor.



4
5
6
# File 'lib/rkelly/visitors/enumerable_visitor.rb', line 4

def initialize(block)
  @block = block
end