Exception: Exception
- Defined in:
- lib/textmate_backtracer.rb
Instance Method Summary collapse
- #add_links_to_backtrace(lines) ⇒ Object
- #clean_backtrace ⇒ Object
- #original_clean_backtrace ⇒ Object
Instance Method Details
#add_links_to_backtrace(lines) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/textmate_backtracer.rb', line 49 def add_links_to_backtrace(lines) lines.collect do |line| = line.gsub '#{RAILS_ROOT}', RAILS_ROOT if match = .match(/^(.+):(\d+):in/) or match = .match(/^(.+):(\d+)\s*$/) file = File.(match[1]) line_number = match[2] html = "<a href='txmt://open?url=file://#{file}&line=#{line_number}'>#{line}</a>" else line end end end |
#clean_backtrace ⇒ Object
62 63 64 |
# File 'lib/textmate_backtracer.rb', line 62 def clean_backtrace add_links_to_backtrace(original_clean_backtrace) end |
#original_clean_backtrace ⇒ Object
47 |
# File 'lib/textmate_backtracer.rb', line 47 alias :original_clean_backtrace :clean_backtrace |