S
Sam'l B
Pickaxe Book (2nd Ed.), P. 49, 2nd example, line 3:
@songs.find {|song| title == song.name }
I can't find a definition of the "|song|" construction in the book.
It is intuitively obvious that it is a variable, and a sort of
"catcher's mitt" for the output of the method "@songs.find" -- and acts
that way for all other example in the book that I can find.
What I _can't_ find, though, is a discussion of the construction -- or
did I miss it somewhere?
Sam Bassett
@songs.find {|song| title == song.name }
I can't find a definition of the "|song|" construction in the book.
It is intuitively obvious that it is a variable, and a sort of
"catcher's mitt" for the output of the method "@songs.find" -- and acts
that way for all other example in the book that I can find.
What I _can't_ find, though, is a discussion of the construction -- or
did I miss it somewhere?
Sam Bassett