public Method

Kernel.__app_file_trace__

Returns an array with a stack trace of the application’s files.

Source Code

# File merb/core_ext/kernel.rb, line 129
def __app_file_trace__
  caller.select do |call| 
    call.include?(Merb.root) && !call.include?(Merb.root + "/framework")
  end.map do |call|
    file, line = call.scan(Regexp.new("#{Merb.root}/(.*):(.*)")).first
    "#{file}:#{line}"
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.