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/.