Method: Jinx::Visitor#to_enum
- Defined in:
- lib/jinx/helpers/visitor.rb
#to_enum(node) ⇒ Enumerable
Returns iterator over each visited node.
131 132 133 134 135 |
# File 'lib/jinx/helpers/visitor.rb', line 131 def to_enum(node) # JRuby could use Generator instead, but that results in dire behavior on any error # by crashing with an elided Java lineage trace. VisitorEnumerator.new(self, node) end |