class CodeTools::AST::PushArgs

Attributes

arguments[RW]
value[RW]

Public Class Methods

new(line, arguments, value) click to toggle source
# File lib/rubinius/code/ast/values.rb, line 204
def initialize(line, arguments, value)
  @line = line
  @arguments = arguments
  @value = value
end

Public Instance Methods

bytecode(g) click to toggle source
# File lib/rubinius/code/ast/values.rb, line 210
def bytecode(g)
  @arguments.bytecode(g)
  @value.bytecode(g)
  g.make_array 1
  g.send :+, 1
end
size() click to toggle source
# File lib/rubinius/code/ast/values.rb, line 221
def size
  1
end
splat?() click to toggle source
# File lib/rubinius/code/ast/values.rb, line 225
def splat?
  @arguments.splat?
end
to_sexp() click to toggle source
# File lib/rubinius/code/ast/values.rb, line 217
def to_sexp
  [:argspush, @arguments.to_sexp, @value.to_sexp]
end