The Fantastically Honest RDoc

Posted by Paul Ingles
Wednesday, September 12, 2007 19:59:00 GMT

Whilst working on a bit of code the other day we found this little nugget in the RDoc for Object#instance_variable_set:

Sets the instance variable names by symbol to object, thereby frustrating the efforts of the class‘s author to attempt to provide proper encapsulation.

Brilliant!

Comments

Leave a response

  1. Carl PorthSeptember 12, 2007 @ 09:16 PM

    Kernel#method_missing

    Provides yet another way of dynamically simulating method calls while thwarting any attempt of a reasonably documented API.