7 ms·
Didn't check the code out but it looks like p is something like: obj.tap { |x| puts x }
by nagnatron 14y ago
Didn't check the code out but it looks like p is something like:
obj.tap { |x| puts x }
- djacobs 14y agoThat'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.