Class: Riml::ListNode
Constant Summary
Constants included
from Visitable
Visitable::EMPTY_CHILDREN
Instance Attribute Summary
Attributes inherited from LiteralNode
#value
Attributes included from Visitable
#compiled_output, #force_newline, #parent_node, #parser_info, #scope
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Visitable
#accept, #location_info
Methods included from Walkable
#child_after, #child_previous_to, #each, #index_by_children, #index_by_member, #insert_after, #insert_before, #next, #previous, #remove, #replace_with
Class Method Details
.wrap(value) ⇒ Object
136
137
138
139
|
# File 'lib/riml/nodes.rb', line 136
def self.wrap(value)
val = Array === value ? value : [value]
new(val)
end
|
Instance Method Details
#children ⇒ Object
145
146
147
|
# File 'lib/riml/nodes.rb', line 145
def children
value
end
|
#force_newline_if_child_call_node? ⇒ Boolean
141
142
143
|
# File 'lib/riml/nodes.rb', line 141
def force_newline_if_child_call_node?
false
end
|