From: Sebastian Hungerecker Date: 2008-05-23T06:12:33+09:00 Subject: Re: Prevent ruby constant variables from changing? Jeremy Hinegardner wrote: > I didn't know that what > is returned from the end of a class ... end and module .. end block is > NilClass. It's not. A class/module ... end block returns the value of the last expression in it. So module C X = 42 end.freeze calls freeze on 42 HTH, Sebastian -- NP: Depeche Mode - Master And Servant Jabber: sepp2k@jabber.org ICQ: 205544826