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 hn newest 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) load replies (1) nagnatron|13 years ago Cool, looks like a useful library.
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) load replies (1) nagnatron|13 years ago Cool, looks like a useful library.
manveru|13 years ago Why `p` though? That's a method on Kernel already and does puts(args.inspect) load replies (1)
djacobs|13 years ago
manveru|13 years ago
nagnatron|13 years ago