My Account
View Cart
Home
Community
Books & Videos
Safari Books Online
Conferences
Training
School of Technology
About
Complete List
Bestsellers
New Releases
Rough Cuts
Upcoming Titles
Ebooks
By Publisher
By Series
Out of Print
Order Info
Search
Search Tips
Tell a friend
Learning Ruby
By
Michael Fitzgerald
May 2007
Pages: 255
|
Table of Contents
|
Index
|
Sample Chapter
|
Colophon
Table of Contents
Chapter 1
Ruby Basics
Hello, Matz
Interactive Ruby
Resources
Installing Ruby
Permission Denied
Associating File Types on Windows
Review Questions
Chapter 2
A Quick Tour of Ruby
Ruby Is Object-Oriented
Ruby's Reserved Words
Comments
Variables
Strings
Numbers and Operators
Conditional Statements
Arrays and Hashes
Methods
Blocks
Symbols
Exception Handling
Ruby Documentation
Review Questions
Chapter 3
Conditional Love
The if Statement
The case Statement
The while Loop
The loop Method
The for loop
Execution Before or After a Program
Review Questions
Chapter 4
Strings
Creating Strings
Concatenating Strings
Accessing Strings
Comparing Strings
Manipulating Strings
Case Conversion
Managing Whitespace, etc.
Incrementing Strings
Converting Strings
Regular Expressions
1.9 and Beyond
Review Questions
Chapter 5
Math
Class Hierarchy and Included Modules
Converting Numbers
Basic Math Operations
Ranges
Inquiring About Numbers
More Math Methods
Math Functions
Rational Numbers
Prime Numbers
Review Questions
Chapter 6
Arrays
Creating Arrays
Accessing Elements
Concatenation
Set Operations
Unique Elements
Blow Your Stack
Comparing Arrays
Changing Elements
Deleting Elements
Arrays and Blocks
Sorting Things and About Face
Multidimensional Arrays
1.9 and Beyond
Other Array Methods
Review Questions
Chapter 7
Hashes
Creating Hashes
Accessing Hashes
Iterating over Hashes
Changing Hashes
Converting Hashes to Other Classes
1.9 and Beyond
Other Hash Methods
Review Questions
Chapter 8
Working with Files
Directories
Creating a New File
Opening an Existing File
Deleting and Renaming Files
File Inquiries
Changing File Modes and Owner
The IO Class
Review Questions
Chapter 9
Classes
Defining the Class
Instance Variables
Accessors
Class Variables
Class Methods
Inheritance
Modules
public, private, or protected
Review Questions
Chapter 10
More Fun with Ruby
Formatting Output with sprintf
Processing XML
Date and Time
Reflection
Using Tk
Metaprogramming
RubyGems
Exception Handling
Creating Documentation with RDoc
Embedded Ruby
Review Questions
Chapter 11
A Short Guide to Ruby on Rails
Where Did Rails Come From
Why Rails?
What Have Other Folks Done with Rails?
Hosting Rails
Installing Rails
Learning Rails
A Brief Tutorial
Review Questions
Appendix
Ruby Reference
Ruby Interpreter
Ruby's Reserved Words
Operators
Escape Characters
Predefined Variables
Global Constants
Regular Expressions
String Unpack Directives
Array Pack Directives
Sprintf Flags and Field Types
File Tests
Time Formatting Directives
RDoc Options
Rake
Appendix
Answers to Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Review Questions
Glossary
Colophon
Return to
Learning Ruby