Google
 

The Little Book Of Ruby ©2006 (Huw Collingbourne)

Table of Contents

Introduction: Welcome To The Little Book Of Ruby

- Learn Ruby In Ten Chapters
- What Is Ruby?
- What Is Rails?
- Download Ruby plus an Editor
- Get The Source Code Of The Sample Programs
- Running Ruby Programs
- How To Use This Book
- Making Sense Of The Text

Chapter One: Strings and Methods

- Strings and Embedded Evaluation
- Methods
- Numbers
- Testing a Condition: if … then

Chapter Two: Classes and Objects

- Instances and Instance Variables
- Constructors – new and initialize
- Inspecting Objects

Chapter Three: Class Hierarchies

- Superclasses and Subclasses

Chapter Four: Accessors, Attributes, Class Variables

- Accessor Methods
- Attribute Readers and Writers
- Attributes Create Variables
- Calling Methods of a Superclass
- Class Variables

Chapter Five: Arrays

- Using Arrays
- Creating Arrays
- Multi-Dimensional Arrays
- Iterating Over Arrays
- Indexing Into Arrays

Chapter Six: Hashes

- Creating Hashes
- Indexing Into A Hash
- Hash Operations

Chapter Seven: Loops and Iterators

- For Loops
- Blocks
- While Loops
- While Modifiers
- Until Loops

Chapter Eight: Conditional Statements

- If..Then..Else
- And..Or..Not
- If..Elsif
- Unless
- If and Unless Modifiers
- Case Statements

Chapter Nine: Modules and Mixins

- A Module Is Like A Class…
- Module Methods
- Modules as Namespaces
- Module ‘Instance Methods’
- Included Modules or ‘Mixins’
- Including Modules From Files
- Pre-Defined Modules

Chapter Ten: Saving Files, Moving On…

- Saving Data
- YAML
- Files
- Moving On…

To Download this E-Book Click Here.

Reply

The content of this field is kept private and will not be shown publicly.