Sha256: 4157920a649212ec9e1e92021f59564df4b5bc7031547fc6fed9643b0e8bac06
Contents?: true
Size: 370 Bytes
Versions: 27
Compression:
Stored size: 370 Bytes
Contents
require 'trace_tree/gem_paths' class TraceTree module ShortGemPath def source_location #"#{shorten_gem_path current.file}:#{current.line}" "#{shorten_gem_path path}:#{lineno}" end private def shorten_gem_path loc return '' if loc.nil? GemPaths.each{|name, path| loc = loc.gsub(path, "$#{name}")} loc end end end
Version data entries
27 entries across 27 versions & 1 rubygems