class CodeTools::AST::Lambda
Attributes
arguments[RW]
body[RW]
Public Class Methods
new(line, arguments, body)
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 333 def initialize(line, arguments, body) @line = line @arguments = arguments @body = Iter.new line, arguments, body end
Public Instance Methods
bytecode(g)
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 339 def bytecode(g) pos(g) g.push_rubinius @body.bytecode(g) g.send_with_block :lambda, 0, false end
to_sexp()
click to toggle source
# File lib/rubinius/code/ast/definitions.rb, line 347 def to_sexp [:lambda, @arguments.to_sexp, [:scope, @body.body.to_sexp]] end