class CodeTools::AST::Undef

Attributes

name[RW]

Public Class Methods

new(line, sym) click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 47
def initialize(line, sym)
  @line = line
  @name = sym
end

Public Instance Methods

bytecode(g) click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 52
def bytecode(g)
  pos(g)

  g.push_scope
  @name.bytecode(g)
  g.send :__undef_method__, 1
end
to_sexp() click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 60
def to_sexp
  [:undef, @name.to_sexp]
end