citizen428.blog()

Try to learn something about everything

Clever Documentation

Playing with Squeak‘s Method Finder, I discovered a really neat feature that I wish would be available for Ruby documentation. Here’s the description from the built-in help:

[…] use an example to find a method in the system. Type receiver, args, and answer in the top pane with periods between the items. 3. 4. 7

Yes, this means that if you want to know how to do modulo in Smalltalk, you can open the Method Finder, type 7. 3. 1 and see that the answer is Number>>\, whereas ‘abc’ . ‘ABC will tell us about String>>asUppercase.

Comments