On 6/9/06, Warren S. email@example.com wrote:
I have just the PDF of the pickaxe. Recently I searched for the ‘send’ method. I saw it
in some scaffold code. It took a long time for it to show up as a method because the word
is used all over and Adobe Reader doesn’t search by just the word, so it showed me every
‘sending’. If I’d started with the index I’d have been better off. But the index isn’t
in the PDF table of contents so I can’t get there with one click.
Preview.app is waaaaay faster. If you’re not on OS X that’s moot
Send is a method in Object, by the way, that calls a method by its name, so to speak.
Not sure if I’m being a nit, but it send an object a message, rather
than calling a method by name. In fact as far as I know, all method
calls are simply sending a message to an object, but that object has a
method defined somewhere to handle it.
irb(main):001:0> class Foo; def method_missing(method); puts method;
Foo doesn’t have a #chicken method, but if it gets sent a message
named chicken then method_missing picks it up (and any other message
name in this case).
On topic: I really like Rails Recipes. Check for my quote on the back
when you receive your copy