Sha256: 4ee7736f8f0ec42abd094bbae7a3ba2136ca234f5fc0850fcbf72a0da0f82e43
Contents?: true
Size: 306 Bytes
Versions: 8
Compression:
Stored size: 306 Bytes
Contents
require 'debugging' module Debugging private def at(label = nil) caller[0].rindex( /:(\d+)(:in (`.*'))?$/ ) puts "#{ label && Paint["#{label} ", :yellow] }@"\ " #{ $3 && "method #{ Paint[$3, :red] }, " }line "\ "#{ Paint[$1, :blue]} of file #{ Paint[$`, :green]}" end end
Version data entries
8 entries across 8 versions & 1 rubygems