Ross Bamford wrote:
> Do you mean something like:
> 
> class InitMe
>   def self.complex_init
>     puts "Initializing #{self}"
>   end
> 
>   complex_init
> end
> #(p) Initializing InitMe
> # => nil
> 

I'm so dim. I didn't realise I could just call a method from inside the
class body.

Robert Klemme wrote:
> Often one needs to inform a super class of a new child.  This can be
> done with #inherited:
>
> class Base
>   def self.inherited(cl)
>     print Base, " was inherited by ", cl, "\n"
>   end
> end
>
>  >> class Foo < Base
>  >> end
> Base was inherited by Foo
> => nil
>

Whoa, that's very neat!

Thanks.