class V8::StackTrace

Public Class Methods

new(to, native) click to toggle source
# File lib/v8/stack.rb, line 7
def initialize(to, native)
  @to = to
  @native = native
end

Public Instance Methods

each() { |stack_frame(to, native.GetFrame(i))| ... } click to toggle source
# File lib/v8/stack.rb, line 16
def each
  for i in 0..length - 1
    yield V8::StackFrame.new(@to, @native.GetFrame(i))
  end
end
length() click to toggle source
# File lib/v8/stack.rb, line 12
def length
  @native.GetFrameCount()
end
to_s() click to toggle source
# File lib/v8/stack.rb, line 22
def to_s
  map {|f|"at #{f}"}.join("\n")
end