Class: Riml::SuperNode
- Inherits:
-
Struct
- Object
- Struct
- Riml::SuperNode
- Includes:
- Visitable
- Defined in:
- lib/riml/nodes.rb
Constant Summary
Constants included from Visitable
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#with_parens ⇒ Object
Returns the value of attribute with_parens.
Attributes included from Visitable
#compiled_output, #force_newline, #parent_node, #parser_info, #scope
Instance Method Summary collapse
Methods included from Visitable
#accept, #force_newline_if_child_call_node?, #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
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments
1028 1029 1030 |
# File 'lib/riml/nodes.rb', line 1028 def arguments @arguments end |
#with_parens ⇒ Object
Returns the value of attribute with_parens
1028 1029 1030 |
# File 'lib/riml/nodes.rb', line 1028 def with_parens @with_parens end |
Instance Method Details
#children ⇒ Object
1035 1036 1037 |
# File 'lib/riml/nodes.rb', line 1035 def children arguments end |
#use_all_arguments? ⇒ Boolean
1031 1032 1033 |
# File 'lib/riml/nodes.rb', line 1031 def use_all_arguments? arguments.empty? && !with_parens end |