Tables of Contents for Programming Ruby
Ruby Is an Object-Oriented Language
5
2
Classes, Objects, and Variables
19
16
Inheritance and Messages
21
3
Objects and Attributes
24
2
Class Variables and Class Methods
26
4
Containers, Blocks, and Iterators
35
14
Miscellaneous Expressions
75
1
Variable Scope and Loops
89
2
Exceptions, Catch, and Throw
91
8
Iterators and the Enumerable Module
104
1
Including Other Files
105
2
Basic Input and Output
107
6
What Is an IO Object?
107
1
Opening and Closing Files
108
1
Reading and Writing Files
108
3
Threads and Processes
113
12
Controlling the Thread Scheduler
117
1
Running Multiple Processes
120
5
When Trouble Strikes
125
12
Part II---Ruby in its Setting
Command-Line Arguments
137
3
Environment Variables
140
1
Where Ruby Finds Its Modules
141
1
Embedding Ruby in HTML
149
3
Improving Performance
152
1
Simple Tk Application
153
1
Translating from Perl/Tk Documentation
162
3
Ruby and Microsoft Windows
165
6
Running Ruby Under Windows
165
1
Sharing Data Between Ruby and C
175
7
Creating an Extension
183
4
Embedding a Ruby Interpreter
187
1
Bridging Ruby to Other Languages
188
1
Part III---Ruby Crystallized
Variables and Constants
213
7
if and unless Expressions
224
1
Blocks, Closures, and Proc Objects
236
1
How Classes and Objects Interact
241
7
Class and Module Definitions
248
5
Top-Level Execution Environment
253
1
Inheritance and Visibility
254
1
Locking Ruby in the Safe
257
6
Reflection, ObjectSpace, and Distributed Ruby
263
16
Calling Methods Dynamically
266
3
Tracing Your Program's Execution
271
1
Marshaling and Distributed Ruby
272
4
Compile Time? Runtime? Anytime!
276
3
Part IV---Ruby Library Reference
Alphabetical Listing
280
125
Alphabetical Listing
405
36
Object-Oriented Design Libraries
467
6
Network and Web Libraries
473
36
Microsoft Windows Support
509
28
A Embedded Documentation
517
6
Including Other Files
522
1
B Interactive Ruby Shell
523
8
rtags, xmp, and the Frame Class
528
3