Class: Johnson::Nodes::List
Overview
This is an abstract node used for nodes of list type see SourceElements
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #<<(obj) ⇒ Object
-
#initialize(line, column, value = []) ⇒ List
constructor
A new instance of List.
Methods inherited from Node
#each, #to_dot, #to_ecma, #to_s, #to_sexp
Methods included from Visitable
Constructor Details
#initialize(line, column, value = []) ⇒ List
Returns a new instance of List.
18 19 20 |
# File 'lib/johnson/nodes/list.rb', line 18 def initialize(line, column, value = []) super end |
Instance Method Details
#<<(obj) ⇒ Object
22 23 24 |
# File 'lib/johnson/nodes/list.rb', line 22 def <<(obj) self.value << obj end |