kernel/common/location.rb
# Current line being executed by the VM.
Current line being executed by the VM.
Current line being executed by the VM .
def line
    return 0 unless @method
    ip = @ip - 1
    ip = 0 if @ip < 0
    @method.line_from_ip(ip)
  end
def line return 0 unless @method ip = @ip - 1 ip = 0 if @ip < 0 @method . line_from_ip ( ip ) end
Current line being executed by the VM.
Current line being executed by the VM .
# We subtract 1 because the ip is actually set to what it should do # next, not what it's currently doing (unless we are at the start of # a new context).