Quote:
Originally Posted by ghoti
Alright, I should have done my homework. It seems to be a rather nice OOP language, I just don't like the weak typing. And since you can write functions outside of classes, the "everything is an object" description isn't quite true.
|
That's not true. You can write methods outside of a distinct class, however, they are still methods, but they're added onto the base object (I forget the name at the moment). The call to "self." can be omitted in Ruby, hence giving the illusion of functions, however, they're still methods.
So actually, everything /is/ an object. (Even language Keywords!)