Parent

Methods

Class/Module Index [+]

Quicksearch

RSpec::Core::Formatters::TextMateFormatter

Formats backtraces so they're clickable by TextMate

Public Instance Methods

backtrace_line(line) click to toggle source
# File lib/rspec/core/formatters/text_mate_formatter.rb, line 8
def backtrace_line(line)
  if line = super(line)
    line.sub!(/([^:]*\.e?rb):(\d*)/) do
      "<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "
    end

    line
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.