Content area
Last week Network World promised a quick tour of the Ruby language. First, they define a method. Next, the %w, that is a shortcut for creating arrays that lets you leave the quotes and commas out. The "each" method applied to the array extracts each element from the array, and the code in braces is a block that is associated with the "each" method and gets executed once for each element. If this all sounds a little convoluted they suggest you buy a copy of Programming Ruby, The Pragmatic Programmer's Guide, Second Edition, by Dave Thomas.
