Class: Rubinius::AST::PushArgs

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, arguments, value) ⇒ PushArgs



35
36
37
38
39
# File 'lib/compiler/ast/values.rb', line 35

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

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



33
34
35
# File 'lib/compiler/ast/values.rb', line 33

def arguments
  @arguments
end

#valueObject

Returns the value of attribute value.



33
34
35
# File 'lib/compiler/ast/values.rb', line 33

def value
  @value
end

Instance Method Details

#to_sexpObject



41
42
43
# File 'lib/compiler/ast/values.rb', line 41

def to_sexp
  [:argspush, @arguments.to_sexp, @value.to_sexp]
end