method
backtrace_line
1.3.0 -
Show latest stable
- Class:
Spec::Runner::Formatter::TextMateFormatter
backtrace_line(line)public
No documentation available.
# File lib/spec/runner/formatter/text_mate_formatter.rb, line 8
def backtrace_line(line)
line.gsub(/([^:]*\.rb):(\d*)/) do
"<a href=\"txmt://open?url=file://#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "
end
end