--------------010103040904090202090100
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

Have you tried it like this?


---

def initialize(attributes  il)

   super attributes

   step                 

   national_debt        

   sum_of_income        

   sum_of_taxes         

   sum_of_happiness     

   sum_of_investments   

end

---


'self' is the default receiver inside a method

HTH

-- 
Andrea Dallera
http://github.com/bolthar/freightrain
http://usingimho.wordpress.com



Il 16/06/2010 11.31, Ralph Shnelvar ha scritto:
>
> Consider
>
>
> ---
>
> def initialize(attributes  il)
>
>   super attributes
>
>   self.step                 
>
>   self.national_debt        
>
>   self.sum_of_income        
>
>   self.sum_of_taxes         
>
>   self.sum_of_happiness     
>
>   self.sum_of_investments   
>
>   self
>
> end
>
> ---
>
>
>
> Please focus on the repeated use of self.
>
>
> Is there some way to set the, uh, environment so that "self" need not 
> be repeated?
>
>
> (Joke: Hmm, if you get rid of your self, do you commit suicide?)
>
>
>
>


--------------010103040904090202090100--