class CodeTools::AST::DefineSingleton
Attributes
body[RW]
receiver[RW]
Public Class Methods
new(line, receiver, name, block)
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 294 def initialize(line, receiver, name, block) @line = line @receiver = receiver @body = DefineSingletonScope.new line, name, block end
Public Instance Methods
bytecode(g)
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 300 def bytecode(g) pos(g) @body.bytecode(g, @receiver) end
to_sexp()
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 306 def to_sexp [:defs, @receiver.to_sexp, @body.name, @body.arguments.to_sexp, [:scope, @body.body.to_sexp]] end