Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/jruby-parser/core_ext/array.rb
Instance Method Summary collapse
Instance Method Details
#to_ast_node(position = nil) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/jruby-parser/core_ext/array.rb', line 4 def to_ast_node(position = nil) inject(org.jrubyparser.ast.ArrayNode.new(position)) do |array, value| value = value.to_ast_node if value.respond_to? :to_ast_node array << value end end |