Class: Rubinius::AST::ConcatArgs
- Defined in:
- lib/compiler/ast/values.rb
Instance Attribute Summary collapse
-
#array ⇒ Object
Returns the value of attribute array.
-
#rest ⇒ Object
Returns the value of attribute rest.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, array, rest) ⇒ ConcatArgs
constructor
A new instance of ConcatArgs.
- #to_sexp ⇒ Object
Methods inherited from Node
#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
#initialize(line, array, rest) ⇒ ConcatArgs
Returns a new instance of ConcatArgs.
21 22 23 24 25 |
# File 'lib/compiler/ast/values.rb', line 21 def initialize(line, array, rest) @line = line @array = array @rest = rest end |
Instance Attribute Details
#array ⇒ Object
Returns the value of attribute array.
19 20 21 |
# File 'lib/compiler/ast/values.rb', line 19 def array @array end |
#rest ⇒ Object
Returns the value of attribute rest.
19 20 21 |
# File 'lib/compiler/ast/values.rb', line 19 def rest @rest end |
Instance Method Details
#to_sexp ⇒ Object
27 28 29 |
# File 'lib/compiler/ast/values.rb', line 27 def to_sexp [:argscat, @array.to_sexp, @rest.to_sexp] end |