The Ruby Programming Language
By
David Flanagan,
Yukihiro Matsumoto
January 2008
Pages: 446
| Table of Contents
| Index
| Sample Chapter
| Colophon
Table of Contents
-
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
Return to The Ruby Programming Language