The Ruby Programming Language

by
Format: Paperback
Pub. Date: 2008-01-01
Publisher(s): Oreilly & Associates Inc
  • eCampus.com Device Compatibility Matrix

    Click the device icon to install or view instructions

    Apple iOS | iPad, iPhone, iPod
    Apple iOS | iPad, iPhone, iPod
    Android Devices | Android Tables & Phones OS 2.2 or higher | *Kindle Fire
    Android Devices | Android Tables & Phones OS 2.2 or higher | *Kindle Fire
    Windows 10 / 8 / 7 / Vista / XP
    Windows 10 / 8 / 7 / Vista / XP
    Mac OS X | **iMac / Macbook
    Mac OS X | **iMac / Macbook
    Enjoy offline reading with these devices
    Apple Devices
    Android Devices
    Windows Devices
    Mac Devices
    iPad, iPhone, iPod
    Our reader is compatible
     
     
     
    Android 2.2 +
     
    Our reader is compatible
     
     
    Kindle Fire
     
    Our reader is compatible
     
     
    Windows
    10 / 8 / 7 / Vista / XP
     
     
    Our reader is compatible
     
    Mac
     
     
     
    Our reader is compatible
List Price: $80.29

Buy New

Usually Ships in 2-3 Business Days
$76.47

Rent Book

Select for Price
There was a problem. Please try again later.

Rent Digital

Rent Digital Options
Online:1825 Days access
Downloadable:Lifetime Access
$38.39
*To support the delivery of the digital material to you, a digital delivery fee of $3.99 will be charged on each digital item.
$38.39*

Used Book

We're Sorry
Sold Out

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

This book is a comprehensive and definitive explanation of the Ruby programming language, which has become the basis for the extremely popular Ruby on Rails web development framework. The book itself is not about web development or the framework, but helps experienced programmers look at the language in depth, including the structure of a Ruby program and its values, expressions, statements, classes, methods, and more.

Author Biography

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.

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.

Table of Contents

Prefacep. ix
Introductionp. 1
A Tour of Rubyp. 2
Try Rubyp. 11
About This Bookp. 15
A Sudoku Solver in Rubyp. 17
The Structure and Execution of Ruby Programsp. 25
Lexical Structurep. 26
Syntactic Structurep. 33
File Structurep. 35
Program Encodingp. 36
Program Executionp. 39
Datatypes and Objectsp. 41
Numbersp. 42
Textp. 46
Arraysp. 64
Hashesp. 67
Rangesp. 68
Symbolsp. 71
True, False, and Nilp. 72
Objectsp. 72
Expressions and Operatorsp. 85
Literals and Keyword Literalsp. 86
Variable Referencesp. 87
Constant Referencesp. 88
Method Invocationsp. 89
Assignmentsp. 92
Operatorsp. 100
Statements and Control Structuresp. 117
Conditionalsp. 118
Loopsp. 127
Iterators and Enumerable Objectsp. 130
Blocksp. 140
Altering Control Flowp. 146
Exceptions and Exception Handlingp. 154
BEGIN and ENDp. 165
Threads, Fibers, and Continuationsp. 166
Methods, Procs, Lambdas, and Closuresp. 175
Defining Simple Methodsp. 177
Method Namesp. 180
Methods and Parenthesesp. 183
Method Argumentsp. 185
Procs and Lambdasp. 192
Closuresp. 200
Method Objectsp. 203
Functional Programmingp. 205
Classes and Modulesp. 213
Defining a Simple Classp. 214
Method Visibility: Public, Protected, Privatep. 232
Subclassing and Inheritancep. 234
Object Creation and Initializationp. 241
Modulesp. 247
Loading and Requiring Modulesp. 252
Singleton Methods and the Eigenclassp. 257
Method Lookupp. 258
Constant Lookupp. 261
Reflection and Metaprogrammingp. 265
Types, Classes, and Modulesp. 266
Evaluating Strings and Blocksp. 268
Variables and Constantsp. 271
Methodsp. 272
Hooksp. 277
Tracingp. 279
ObjectSpace and GCp. 281
Custom Control Structuresp. 281
Missing Methods and Missing Constantsp. 284
Dynamically Creating Methodsp. 287
Alias Chainingp. 290
Domain-Specific Languagesp. 296
The Ruby Platformp. 303
Stringsp. 304
Regular Expressionsp. 310
Numbers and Mathp. 321
Dates and Timesp. 325
Collectionsp. 328
Files and Directoriesp. 350
Input/Outputp. 356
Networkingp. 366
Threads and Concurrencyp. 372
The Ruby Environmentp. 389
Invoking the Ruby Interpreterp. 390
The Top-Level Environmentp. 394
Practical Extraction and Reporting Shortcutsp. 403
Calling the OSp. 405
Securityp. 409
Indexp. 413
Table of Contents provided by Ingram. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.