class Utils::LineBlamer
def self.blame(line)
def self.blame(line) blamer = for_line(line) if blame = blamer.perform blame.sub!(/^[0-9a-f^]+/) { Term::ANSIColor.yellow($&) } blame.sub!(/\(([^)]+)\)/) { "(#{Term::ANSIColor.red($1)})" } end end
def self.blame(line) blamer = for_line(line) if blame = blamer.perform blame.sub!(/^[0-9a-f^]+/) { Term::ANSIColor.yellow($&) } blame.sub!(/\(([^)]+)\)/) { "(#{Term::ANSIColor.red($1)})" } end end