StackDeck::Frame::Ruby

Public Class Methods

extract(backtrace) click to toggle source
# File lib/stackdeck/frame.rb, line 68
def self.extract(backtrace)
  backtrace.map {|s| StackDeck::Frame::Ruby.parse(s) }
end
parse(str) click to toggle source
# File lib/stackdeck/frame.rb, line 63
def self.parse(str)
  if str =~ /(.*?):(\d+)(:in `(.*)')?/
    new($4, $1, $2.to_i)
  end
end

Public Instance Methods

boundary?() click to toggle source
# File lib/stackdeck/frame.rb, line 72
def boundary?
  filename == __FILE__ && function == 'boundary'
end
to_s() click to toggle source
# File lib/stackdeck/frame.rb, line 75
def to_s
  if function && function != ''
    "#{filename}:#{lineno}:in `#{function}'"
  else
    "#{filename}:#{lineno}"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.