Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/pretty_debug.rb,
lib/pretty_debug.rb
Overview
Terminal
Instance Method Summary collapse
Instance Method Details
#expand ⇒ Object
211 |
# File 'lib/pretty_debug.rb', line 211 def ; inspect.verbatim end |
#intercept(&pr) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/pretty_debug.rb', line 28 def intercept &pr l = caller_location tap do |x| puts \ "[Debug] #{"#{l.path}:#{l.lineno}"}".color(:yellow), (pr ? pr.call(x) : x).inspect.verbatim.unchomp end end |