Class: Rubinius::AST::SplatArray

Inherits:
SplatAssignment show all
Defined in:
lib/compiler/ast/variables.rb

Instance Attribute Summary

Attributes inherited from SplatAssignment

#value

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, value, size) ⇒ SplatArray

Returns a new instance of SplatArray.



151
152
153
154
155
# File 'lib/compiler/ast/variables.rb', line 151

def initialize(line, value, size)
  @line = line
  @value = value
  @size = size
end

Instance Method Details

#to_sexpObject



157
158
159
# File 'lib/compiler/ast/variables.rb', line 157

def to_sexp
  [:splat, @value.to_sexp]
end