Hacker News new | ask | show | jobs
by nagnatron 5003 days ago
Didn't check the code out but it looks like p is something like:

    obj.tap { |x| puts x }
1 comments

That's the base case. It takes arguments, too, and if you give it a block, it prints out the result of the block called in the receiver's scope.
Why `p` though? That's a method on Kernel already and does puts(args.inspect)
Just changed it. I was hoping people wouldn't mix and match, but I don't mind using `o` instead:

https://github.com/davejacobs/letters/issues/6

Thank you very much.
Cool, looks like a useful library.