class CodeTools::AST::Alias
Attributes
from[RW]
to[RW]
Public Class Methods
new(line, to, from)
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 7 def initialize(line, to, from) @line = line @to = to @from = from end
Public Instance Methods
bytecode(g)
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 13 def bytecode(g) pos(g) g.push_scope @to.bytecode(g) @from.bytecode(g) g.send :alias_method, 2, true end
to_sexp()
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 22 def to_sexp [:alias, @to.to_sexp, @from.to_sexp] end