From: Brian Candler Date: 2012-09-02T03:46:24+09:00 Subject: Re: Constructor or a Method Bob Hutchison wrote in post #1074214: > You've got a terminology thing going on and this is confusing you I > think. There are no such thing as 'properties' in Ruby (google it and > you can read about the magical healing properties of the ruby gemstone > :-) > > Generally speaking you've got attributes and methods. IMO it would be clearer and more accurate to say "instance variables" and "methods", but otherwise this is correct. @name is an instance variable, which you can only access in the context of a specific object (usually within an instance method of the class of that object) Methods like 'name' and 'name=' are just methods, which in simple classes might just return the value of @name and set the value of @name. If that's all you need, then attr_* will write those methods for you. But they are still normal methods. -- Posted via http://www.ruby-forum.com/.