top | item 4593418

(no title)

nagnatron | 13 years ago

Didn't check the code out but it looks like p is something like:

    obj.tap { |x| puts x }

discuss

order

djacobs|13 years ago

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.

manveru|13 years ago

Why `p` though? That's a method on Kernel already and does puts(args.inspect)

nagnatron|13 years ago

Cool, looks like a useful library.