|
|
|
|
|
by Skoofoo
4858 days ago
|
|
You have a valid question, you didn't have to ask it so sneeringly. I am a fan of Ruby in big part because of how it handles objects. In Ruby, everything is an object. Objects' only public interface is their methods. These methods don't require a pair of parenthesis to call them, so you can call them as you would access a public variable in other languages. You can easily set up getter/setter methods for an instance variable via an "attr_accessor :instance_variable" call within the class definition, or you can define its "instance_variable" and "instance_variable=" methods yourself. This combination of things is I think Ruby's killer feature and makes for a very elegant workflow. You should give Ruby a chance :) |
|