10 Things Every Java Programmer Should Know About Ruby | [ Prev | Home | Next ] |
Add 1+2, then find the methods defined in Proc …
$ irb --simple-prompt >> 1 + 2 => 3 >> Proc.instance_methods(false) => ["[]", "==", "dup", "call", "binding", "to_s", "clone", "to_proc", "arity"]
O'REILLY® OSCON 2005 | Copyright 2005 by Jim Weirich (All Rights Reserved) |