On Sat, Sep 28, 2013 at 2:39 AM, shugo (Shugo Maeda)
<redmine / ruby-lang.org>wrote:

> For example, bootstraptest/test_block.rb uses the last value of a class
> definition as follows:


The only time I've ever used the return value of a class definition it's
been to get the class itself, by making `self` the last statement in the
class definition.

That said, if you really wanted to preserve the ability to return something
other from a class definition, could you make `break <SOME_VALUE>` override
the return, as it does in blocks?

-- 
Avdi Grimm
http://avdi.org

I only check email twice a day. to reach me sooner, go to
http://awayfind.com/avdi