From: "Jesús Gabriel y Galán" Date: 2010-07-26T15:37:09+09:00 Subject: Re: syntax On Mon, Jul 26, 2010 at 7:06 AM, Raghu Maddali wrote: >> from outside the object, you must use a method. > > Hey Josh, > > My declaration will be something like > > Class Web class Web >     Private $conf >     Private $database You don't need to declare the instance variables. And in any case Private is not a Ruby keyword. And $var is a global variable. Just remove all the $. >     def __construct() If you want this to be your class' constructor, the method is called initialize, so def initialize > >      @config = parse_ini_file('web/display.ini', true) >      @database = @config['Catalog']['database'] >     end > end This would be fine. > > Will this be a correct Ruby syntax Summary: class Web def initialize @config = parse_ini_file('web/display.ini', true) @database = @config['Catalog']['database'] end end Jesus.