Method: Kernel#debug__
- Defined in:
- lib/debugging.rb
#debug__(subject = nil, msg: nil, rtrn: nil, debug:) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/debugging.rb', line 4 def debug__(subject=nil, msg: nil, rtrn: nil, debug:) return rtrn || subject unless debug $stderr.puts(msg) if msg $stderr.puts(subject.inspect) if subject rtrn || subject end |