Publisher: O'Reilly Media Released: January 2008 Pages: 448
The Ruby Programming Language is the authoritative guide to Ruby and provides comprehensive coverage of versions 1.8 and 1.9 of the language. It was written (and illustrated!) by an all-star team: - David Flanagan, bestselling author of programming language "bibles" (including JavaScript: The Definitive Guide and Java in a Nutshell) and committer to the Ruby Subversion repository.
- Yukihiro "Matz" Matsumoto, creator, designer and lead developer of Ruby and author of Ruby in a Nutshell, which has been expanded and revised to become this book.
- why the lucky stiff, artist and Ruby programmer extraordinaire.
This book begins with a quick-start tutorial to the language, and then explains the language in detail from the bottom up: from lexical and syntactic structure to datatypes to expressions and statements and on through methods, blocks, lambdas, closures, classes and modules. The book also includes a long and thorough introduction to the rich API of the Ruby platform, demonstrating -- with heavily-commented example code -- Ruby's facilities for text processing, numeric manipulation, collections, input/output, networking, and concurrency. An entire chapter is devoted to Ruby's metaprogramming capabilities. The Ruby Programming Language documents the Ruby language definitively but without the formality of a language specification. It is written for experienced programmers who are new to Ruby, and for current Ruby programmers who want to challenge their understanding and increase their mastery of the language. |
-
Chapter 1 Introduction -
A Tour of Ruby -
Try Ruby -
About This Book -
A Sudoku Solver in Ruby -
Chapter 2 The Structure and Execution of Ruby Programs -
Lexical Structure -
Syntactic Structure -
File Structure -
Program Encoding -
Program Execution -
Chapter 3 Datatypes and Objects -
Numbers -
Text -
Arrays -
Hashes -
Ranges -
Symbols -
True, False, and Nil -
Objects -
Chapter 4 Expressions and Operators -
Literals and Keyword Literals -
Variable References -
Constant References -
Method Invocations -
Assignments -
Operators -
Chapter 5 Statements and Control Structures -
Conditionals -
Loops -
Iterators and Enumerable Objects -
Blocks -
Altering Control Flow -
Exceptions and Exception Handling -
BEGIN and END -
Threads, Fibers, and Continuations -
Chapter 6 Methods, Procs, Lambdas, and Closures -
Defining Simple Methods -
Method Names -
Methods and Parentheses -
Method Arguments -
Procs and Lambdas -
Closures -
Method Objects -
Functional Programming -
Chapter 7 Classes and Modules -
Defining a Simple Class -
Method Visibility: Public, Protected, Private -
Subclassing and Inheritance -
Object Creation and Initialization -
Modules -
Loading and Requiring Modules -
Singleton Methods and the Eigenclass -
Method Lookup -
Constant Lookup -
Chapter 8 Reflection and Metaprogramming -
Types, Classes, and Modules -
Evaluating Strings and Blocks -
Variables and Constants -
Methods -
Hooks -
Tracing -
ObjectSpace and GC -
Custom Control Structures -
Missing Methods and Missing Constants -
Dynamically Creating Methods -
Alias Chaining -
Domain-Specific Languages -
Chapter 9 The Ruby Platform -
Strings -
Regular Expressions -
Numbers and Math -
Dates and Times -
Collections -
Files and Directories -
Input/Output -
Networking -
Threads and Concurrency -
Chapter 10 The Ruby Environment -
Invoking the Ruby Interpreter -
The Top-Level Environment -
Practical Extraction and Reporting Shortcuts -
Calling the OS -
Security -
Colophon |
- Title:
- The Ruby Programming Language
- By:
- David Flanagan, Yukihiro Matsumoto
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- January 2008
- Ebook:
- December 2008
- Pages:
- 448
- Print ISBN:
- 978-0-596-51617-8
- | ISBN 10:
- 0-596-51617-7
- Ebook ISBN:
- 978-0-596-15840-8
- | ISBN 10:
- 0-596-15840-8
|
-
David Flanagan David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include JavaScript: The Definitive Guide, JavaScript Pocket Reference, Java in a Nutshell, Java Examples in a Nutshell, and Java Foundation Classes in a Nutshell. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and children in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a blog at www.davidflanagan.com. View David Flanagan's full profile page. -
Yukihiro Matsumoto Yukihiro Matsumoto ("Matz"), the creator of Ruby, is a professional programmer who worked for the Japanese open source company, netlab.jp. Matz is also known as one of the open source evangelists in Japan. He's released several open source products, including cmail, the emacs-based mail user agent, written entirely in emacs lisp. Ruby is his first piece of software that has become known outside of Japan. View Yukihiro Matsumoto's full profile page. |
Colophon The animals on the cover of The Ruby Programming Language are Horned Sungem hummingbirds (Heliactin bilophus). These small birds are native to South America, living mainly in Brazil and Bolivia. They prefer dry, open habitats such as grasslands, and they avoid dense or humid forests. Hummingbirds have the fastest wingbeat of all birds, and the Horned Sungem is capable of 90 wingbeats per second. (Contrast that with the vulture, the slowest of all birds, capable of just 1 wingbeat per second.) Because hummingbirds are so fast and light, they are able to hover in mid-air by rapidly flapping their wings. They can also fly backward (the only birds who can do so) in order to keep position as they drink nectar from flowers. Their long, thin bills allow them to reach deep within blossoms. Fittingly, the Portuguese word for hummingbird is beija-flor, or "the bird that kisses flowers." The English word, of course, comes from the hum made by its fast-moving wings. The male Horned Sungem has tufts of red, blue, and gold feathers on either side of its head. Its back is iridescent green, its throat and breast are black, and its belly is white. It has a long, pointed tail. The female looks similar to the male but lacks the dramatic crown pattern. Because of the hummingbird's vibrant colors, early Spanish explorers named it Joyas voladoras, or "flying jewel." There are many myths about hummingbirds. In Brazil, a black hummingbird is a sign of a death in the family. The ancient Aztecs honored them, and priests used staffs covered with their feathers to remove curses. The hummingbird is also a symbol of resurrection, as Aztecs believed that dead warriors were reincarnated as these birds. The Aztec god of the Sun and war, Huitzilopochtli, was represented as one; his name means "Hummingbird from the south," the south being the location of the spirit world. The cover image is from J. G. Wood's Animate Creation. The cover font is Adobe's ITC Garamond. The text font is Linotype Birka, the heading font is Adobe Myriad Condensed, and the code font is LucasFont's TheSans Mono Condensed. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Hugh E. Williams, David Lane
May 2004
Ebook: $39.99
Print & Ebook: $54.99
Print: $49.99
By Colin Moock
December 2002
Ebook: $43.99
Print & Ebook: $60.45
Print: $54.95
By Derrick Story
May 2004
|
Customer Reviews
3/20/2010 (2 of 2 customers found this review helpful) 5.0Your definitive source for Ruby By Alfred R. Baudisch from São José dos Pinhais, Brazil About Me Developer, Sys Admin - Accurate
- Concise
- Easy to understand
- Helpful examples
- Well-written
8/3/2009 (1 of 1 customers found this review helpful) 5.0One of the best books O'Reilly ever published! By Anonymous from Undisclosed 4/3/2009 (2 of 2 customers found this review helpful) 5.0A Fine Piece Of Technical Writing By Andrew Garber from Undisclosed By Dave Walz-Burkett from Undisclosed 3/21/2008 5.0re: Horrible font issue in the PDF Version 3/4/2008 5.0A Must-Have For Serious Ruby Developers 2/29/2008 (3 of 3 customers found this review helpful) 5.0Horrible font issue in the PDF Version By Anonymous from Undisclosed
|
|
|