Marco Lange
1/22/2006 2:55:00 AM
Hi,
>> There is a subtle difference: While private fields are limited to a
>> single instance of a class, protected fields in an instance of a class
>> can be accessed from other instances of that class or its subclasses.
>
> AFAIK there is no such thing as "private" and "protected" fields in Ruby.
> Fields are always private. You can of course access them via
> instance_variables(), instance_variable_get() and _set().
>
> You probably meant the same as David but got the wording wrong. :-)
Yep, I meant "methods", not "fields". Dunno why I wrote "fields".
Regards,
Marco