From: dblack@... Date: 2006-03-23T08:55:58+09:00 Subject: Re: specify a mandatory block parameter Hi -- On Thu, 23 Mar 2006, Eric Schwartz wrote: > 13 writes: >> Blocks are actually objects of class Proc > > Are you sure? I did a lot of reading up on blocks lately, and from > what I learned, blocks are one of the very few things in Ruby that are > not objects. You can, however, automatically convert them to Proc > objects if you need to; maybe that's what you're noticing? That's correct; the block is a syntactic construct (like argument list, which also isn't an object). I think there may have once been a Block class in CVS once for a day or two, as part of the evolution of the whole block/lambda/Proc sphere, but if so it was just an experiment and not pursued. David -- David A. Black (dblack@wobblini.net) Ruby Power and Light, LLC (http://www.rubypowerandlight.com) "Ruby for Rails" chapters now available from Manning Early Access Program! http://www.manning.com/books/black