From: Robert Dober Date: 2008-04-15T06:15:42+09:00 Subject: Re: Deleting first lines of Array On Mon, Apr 14, 2008 at 1:41 AM, David A. Black wrote: > Hi -- > > > > Actually, class dpkg won't run: > > $ ruby -e "class dpkg; end" > -e:1: class/module name must be CONSTANT > > The class keyword will work with either a constant, or a "<< object" > expression (for singleton classes). dpkg = Class::new{...} will work but is a little bit against convention. However very useful in testing (allowing you to define your classes in the test methods see e.g. my alltime favorite RubyQuiz http://www.rubyquiz.com/quiz67.html) Cheers Robert > > > David > > -- > Rails training from David A. Black and Ruby Power and Light: > ADVANCING WITH RAILS April 14-17 New York City > INTRO TO RAILS June 9-12 Berlin > ADVANCING WITH RAILS June 16-19 Berlin > See http://www.rubypal.com for details and updates! > > -- http://ruby-smalltalk.blogspot.com/ --- Whereof one cannot speak, thereof one must be silent. Ludwig Wittgenstein