From: Brian Candler Date: 2008-10-23T18:57:24+09:00 Subject: Re: Is there a method_eval or similar thing ? > askyn("Do you wish to proceed?", "n", > :yes => lambda { puts "user pressed yes" } > :no => lambda { puts "user pressed no" } > ) Oops, I missed a comma from the end of the second line. -- Posted via http://www.ruby-forum.com/.