class Apricot::LocalReference
Attributes
depth[R]
slot[R]
Public Class Methods
new(slot, depth = 0)
click to toggle source
# File lib/apricot/variables.rb, line 5 def initialize(slot, depth = 0) @slot = slot @depth = depth end
Public Instance Methods
bytecode(g)
click to toggle source
# File lib/apricot/variables.rb, line 10 def bytecode(g) if @depth == 0 g.push_local @slot else g.push_local_depth @depth, @slot end end