From: "Iñaki Baz Castillo" Date: 2008-06-30T00:36:14+09:00 Subject: Re: Is it ellegant to use a global variable to store a Logger object? El Domingo, 29 de Junio de 2008, Shot (Piotr Szotkowski) escribió: > ara.t.howard: > > ruby classes are evaluated top down at load time so, to > > achieve the effect of init you just need to delete some code > > … > > > and the 'init' code is called at load time. > > Ah, so perfect! Thanks a lot! The problem here is that those code is runned in load time, so if that code depends on other project libraries or classes you must take care of loading them first. This is not problem when calling "init" after loading all the classes or when using "normal" objects (XXXX.new). -- Iñaki Baz Castillo