Module: Kernel
- Defined in:
- lib/kernel.rb
Instance Method Summary collapse
Instance Method Details
#p(*args) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/kernel.rb', line 2 def p(*args) Betterp::Output.new(caller(1..1).first).format(args).each do |output| STDOUT.write(output + "\n") end args.size > 1 ? args : args.first end |