From: Raghu Maddali Date: 2010-07-28T02:37:29+09:00 Subject: Re: syntax I've conf and database as class variables which I access in some other methods too...So can I write it as class Web @@config @@database def initialize @@config = parse_ini_file('web/display.ini', true) @@database = @@config['Catalog']['database'] end def methodA() @@database=...... end end Raghu -- Posted via http://www.ruby-forum.com/.