On Sun, 13 Mar 2011 06:01:31 +0900, Sean O'Halpin wrote: > On Sat, Mar 12, 2011 at 8:45 PM, 7stud -- <bbxx789_05ss / yahoo.com> > wrote: >> Why don't the ruby docs say that send() can take a block? >> >> Kernel.send(:define_method, :my_meth) do |x| >> puts x >> end >> > > It's not the send() that's consuming the block - it's the > define_method(). > But send() still bothers to pass the block around. Consider the following code: ---8<---8<--- def my_method p block_given? end def my_send # imitating send my_method end my_send # => false ---8<---8<--- -- WBR, Peter Zotov.