From: ts Date: 2003-01-08T23:12:45+09:00 Subject: Re: Can you detect if a method takes a block argument? >>>>> "G" == Gavin Sinclair writes: G> i.e. any method *can* take a block. So the answer is always yes. You can do that ? >>>>> "M" == Martin Hart writes: M> The bit that I don't know how to do is: M> 1. If client detects that the requested method takes a block argument, it M> should: M> a) pass the block given to it (if there was one), or M> b) create a dummy block that fills a return array, because the caller M> didn't provide a block. See b) Try to call Array#sort with a dummy block just to see the result ... Guy Decoux