module TraceTree::ShortGemPath
Public Instance Methods
source_location()
click to toggle source
# File lib/trace_tree/short_gem_path.rb, line 6 def source_location #"#{shorten_gem_path current.file}:#{current.line}" "#{shorten_gem_path path}:#{lineno}" end
Private Instance Methods
shorten_gem_path(loc)
click to toggle source
# File lib/trace_tree/short_gem_path.rb, line 13 def shorten_gem_path loc return '' if loc.nil? GemPaths.each{|name, path| loc = loc.gsub(path, "$#{name}")} loc end