class Rookout::Processor::Namespaces::StackNamespace

Public Class Methods

new(backtrace, offset = 0) click to toggle source
# File lib/rookout/processor/namespaces/stack_namespace.rb, line 9
def initialize backtrace, offset = 0
  @backtrace = backtrace
  @offset = offset
end

Public Instance Methods

call_method(name, args) click to toggle source
# File lib/rookout/processor/namespaces/stack_namespace.rb, line 18
def call_method name, args
  return create_traceback args if name == "traceback"
  super
end
create_traceback(args) click to toggle source
# File lib/rookout/processor/namespaces/stack_namespace.rb, line 23
def create_traceback args
  args = 1000 if args == ""
  TracebackNamespace.new @backtrace, @offset, args.to_i
end
read_key(key) click to toggle source
# File lib/rookout/processor/namespaces/stack_namespace.rb, line 14
def read_key key
  FrameNamespace.new @backtrace[key + @offset]
end