From: Barun Singh Date: 2009-04-29T09:32:02+09:00 Subject: dynamically calling methods that require a block Is it possible to call methods that require block inputs dynamically without resorting to "eval"? For example, consider: a = [1,2,3] a.detect{|x| x > 2} I want to know if it's possible to do something like the following (this doesn't work): a.send(:detect, {|x| x > 2}) I'm using Ruby 1.8.6 Thanks.. -- Posted via http://www.ruby-forum.com/.