class CodeTools::AST::BlockArgument

Attributes

name[RW]

Public Class Methods

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

Public Instance Methods

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

  g.push_proc

  if @variable.respond_to?(:depth) && @variable.depth != 0
    g.set_local_depth @variable.depth, @variable.slot
  else
    g.set_local @variable.slot
  end

  g.pop
end