Class: RBelly::Visitors::EnumerableVisitor
- Defined in:
- lib/rbelly/visitors/enumerable_visitor.rb
Constant Summary
Constants inherited from Visitor
Visitor::ALL_NODES, Visitor::ARRAY_VALUE_NODES, Visitor::BELLEJS_FUNC_NODES, Visitor::BELLEJS_VAR_NODES, Visitor::BINARY_NODES, Visitor::CLASS_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
-
#initialize(block) ⇒ EnumerableVisitor
constructor
A new instance of EnumerableVisitor.
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/rbelly/visitors/enumerable_visitor.rb', line 4 def initialize(block) @block = block end |