Content area

Abstract

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.

Details

1007133
Title
The beauty of Ruby
Publication title
Network World; Southborough
Volume
21
Issue
51
Pages
30
Number of pages
1
Publication year
2004
Publication date
Dec 20, 2004
Section
Technology Update
Publisher
Foundry
Place of publication
Southborough
Country of publication
United States
ISSN
08877661
Source type
Trade Journal
Language of publication
English
Document type
Commentary
ProQuest document ID
215970554
Document URL
https://www.proquest.com/trade-journals/beauty-ruby/docview/215970554/se-2?accountid=208611
Copyright
Copyright Network World Inc. Dec 20, 2004
Last updated
2024-08-24
Database
ProQuest One Academic