Class: orgorg::jrubyparserorg::jrubyparser::ast::ListNode

Inherits:
Object
  • Object
show all
Defined in:
lib/jruby-parser/core_ext/list_node.rb

Instance Method Summary collapse

Instance Method Details

#<<(value) ⇒ Object



5
6
7
8
9
# File 'lib/jruby-parser/core_ext/list_node.rb', line 5

def <<(value)
  value = value.to_ast_node if value.respond_to? :to_ast_node
  value.position = getPosition unless value.position
  add(value)
end