On Thursday, 21 November 2002 at 14:18:12 +0900, Iain 'Spoon' Truskett wrote:
> * Daniel Carrera (dcarrera / math.umd.edu) [21 Nov 2002 16:07]:
> 
> [...]
> > In Ruby you als ohave the optino of using classes:
> 
> >   class Greeting
> >     def initialize
> >       hello
> >     end
> 
> >     def hello
> >       puts "Hi!"
> >     end
> >   end
> 
> >   Greeting.new             # -> Hi!
> 
> This seems a bit 'tacked on' and not really relevant to the rest of the
> question. Was there a specific reason classes were mentioned?
> 

Well, it shows a meethod being called before it is defined,
but he doesn't explain how methods in an explicit class
are different than methods in the Object class.


-- 
Jim Freeze
----------
F u cn rd ths u cnt spl wrth a dm!