Class: Riml::SuperNode

Inherits:
Struct
  • Object
show all
Includes:
Visitable
Defined in:
lib/riml/nodes.rb

Constant Summary

Constants included from Visitable

Visitable::EMPTY_CHILDREN

Instance Attribute Summary collapse

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

#argumentsObject

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



1028
1029
1030
# File 'lib/riml/nodes.rb', line 1028

def arguments
  @arguments
end

#with_parensObject

Returns the value of attribute with_parens

Returns:

  • (Object)

    the current value of with_parens



1028
1029
1030
# File 'lib/riml/nodes.rb', line 1028

def with_parens
  @with_parens
end

Instance Method Details

#childrenObject



1035
1036
1037
# File 'lib/riml/nodes.rb', line 1035

def children
  arguments
end

#use_all_arguments?Boolean

Returns:

  • (Boolean)


1031
1032
1033
# File 'lib/riml/nodes.rb', line 1031

def use_all_arguments?
  arguments.empty? && !with_parens
end