Programming

Back to -Tutorials -Ruby In Steel Tutorials -Programming

The Little Book Of Ruby

The Fastest, Easiest Way To Learn Ruby ‘by example’

Download our free eBook and Ruby source code to get up to speed with Ruby in ten easy chapters.

Note: A revised 3rd edition of The Little Book Of Ruby, to accompany an in-depth interactive course of (all-new) videos is available, by subscription, exclusively at: http://www.udemy.com/learn-ruby-programming-in-ten-easy-steps

Free eBook

10 Chapters – 87 pages…

PDF - 565.1 kb
Download The Little Book of Ruby - 1.1MB

The Little Book Of Ruby is a PDF eBook which will guide you through the fundamentals of Ruby programming. Starting with the basics (strings, numbers, objects and methods) it quickly moves on to explain all you need to know to create your own class hierarchies, use arrays, hashes, iterators, modules, mixins and much more besides…


- See also: The Book Of Ruby


Free Source Code

More than 50 little sample programs demonstrate every topic in the book…

Download this Zip file for use with Ruby In Steel 2008 or any other editor/IDE...

Zip - 34.5 kb
Source Archive (compatible with Ruby In Steel in VS2008)

(Or, if you are using Ruby In Steel with Visual Studio 2005, download this one...)

Zip - 30.9 kb
Source Archive (compatible with Ruby In Steel in VS2005)

You can load these source files into any Ruby editor or IDE. If you are using Ruby In Steel you may be able to load the entire project as a solution (depending on which version of the software you are using). Or you can import it to a new directory (File/New Project/Import) or, using Ruby In Steel Developer, you may Convert it ’in place’ (File/Open/Convert). Each program can be run in Ruby In Steel’s interactive console just by pressing CTRL-F5.

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…

Bookmark and Share   Keywords:  downloads  ruby
© SapphireSteel Software 2013
information about buy iressa 250mg fluticasone propionate cream cost more info amlodipine 0.625 mg capsule info about ciprofloxacin apo buy extra super p force tenofovir cream information anabrez lowest price buy letrozole online in usa about where can i buy tenofovir gel http://www.afriscope.fr/?buy=616947 buy modafinil baclofen 10mg buy xenical 120 mg cialis super active plus more bimatoprost prices us pharmacy buy generic avanafil in france buy cheap soranib in california http://www.afriscope.fr/?buy=25332 diclofenac buy http://www.afriscope.fr/?buy=734759 info about generic form of prilosec http://www.afriscope.fr/?buy=250087 antibotic bactrim nexium 40 mg orlistat online in mayami buy silagra uk in new york generic rifagut buy cabergoline nexium from usa http://www.afriscope.fr/?buy=22752 viread hong kong more info about buy liquid accutane lasix 12.5mg information generic bupropion cost doxycycline 100mg in france eriacta pills in mayami cost of doxycycline over the counter bupropion sustanon 250 uk pharma gleevec 400 mg oral tab in canada prilosec capsules in mexico http://www.afriscope.fr/?buy=323674 more bupropion online rx cheap uk apcalis order mirtaz flagyl price diclofenac 50 mg more omeprazole price prednisolone herpes pharmacy dilantin fluconazole cost fluticasone 50mcg buy xtane without a prescription buy generic sildisoft