Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/pretty_debug.rb
Instance Method Summary collapse
Instance Method Details
#expand ⇒ Object
209 |
# File 'lib/pretty_debug.rb', line 209 def ; inspect.verbatim end |
#intercept(&pr) ⇒ Object
203 204 205 206 207 208 |
# File 'lib/pretty_debug.rb', line 203 def intercept &pr tap do |x| puts \ "[Debug] #{caller_location(3).chain{|l| "#{l.path}:#{l.lineno}"}}".color(:yellow), (pr ? pr.call(x) : x).inspect.unchomp.verbatim end end |
#verbatim ⇒ Object
210 211 212 |
# File 'lib/pretty_debug.rb', line 210 def verbatim bg(:cyan) end |