Class: Rubinius::AST::ConcatArgs

Inherits:
Node
  • Object
show all
Defined in:
lib/compiler/ast/values.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

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

#arrayObject

Returns the value of attribute array.



19
20
21
# File 'lib/compiler/ast/values.rb', line 19

def array
  @array
end

#restObject

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_sexpObject



27
28
29
# File 'lib/compiler/ast/values.rb', line 27

def to_sexp
  [:argscat, @array.to_sexp, @rest.to_sexp]
end