Category: Ruby

The Book of Ruby

My image
  • Author: Huw Collingbourne
  • Format: archived PDF
  • Price: free (hard copy available on Amazon)

The Book Of Ruby (free edition) is a free tutorial to the Ruby language. It contains 425 pages in 20 chapters. It is provided in the form of a PDF document in which each chapter is accompanied by ready-to-run source code for all the examples. There is also an Introduction which explains how to use the source code in Ruby In Steel or any other editor/IDE of your choice plus appendices and an index.

Note that The Book Of Ruby is an in-depth guide to Ruby. For a much simpler guide to the principal features of the Ruby language, there is also the free eBook, The Little Book Of Ruby, by the same author.

Chapters include:

  • Strings, Numbers, Classes and Objects
  • Class Hierarchies, Attributes and Class Variables
  • Strings and Ranges
  • Arrays and Hashes
  • Loops and Iterators
  • Conditional Statements
  • Methods
  • Passing Arguments and Returning Values
  • Exception Handling
  • Blocks, Procs and Lambdas
  • Symbols
  • Modules and Mixins
  • Files and IO
  • YAML
  • Marshal
  • Regular Expressions
  • Threads
  • Debugging and Testing
  • Ruby On Rails
  • Dynamic Programming

Download The Book of Ruby at the bottom of the page:
http://www.sapphiresteel.com/ruby-programming/The-Book-Of-Ruby.html

The Little Book Of Ruby

My image
  • Author: Huw Collingbourne
  • Format: PDF
  • Price: free

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.

Chapters include:

  • Strings and Methods
  • Classes and Objects
  • Class Hierarchies
  • Accessors, Attributes, Class Variables
  • Arrays
  • Hashes
  • Loops and Iterators
  • Conditional Statements
  • Modules and Mixins
  • Saving Files, Moving On

http://www.sapphiresteel.com/Tutorials/sapphire-ruby-in-steel-tutorials/Programming/article/the-little-book-of-ruby.html

Ruby Essentials

My image
  • Author: Neil Smyth
  • Format: online HTML
  • Price: free

Ruby Essentials is a free on-line book designed to provide a concise and easy to follow guide to learning Ruby. Everything from installing Ruby and the basics of the language through to topics such as arrays, file handling and object-oriented programming are covered, all combined with easy to understand code examples which serve to bridge the gap between theory and practice.

Ruby Essentials is intended to be of equal use both to those experienced in other programming languages and to novices who have chosen Ruby as their “first programming language”.

Chapters include:

  • What is Ruby?
  • Getting and Installing Ruby
  • Simple Ruby Examples
  • Commenting Ruby Code
  • Understanding Ruby Variables
  • Ruby Variable Scope
  • Ruby Number Classes and Conversions
  • Ruby Methods
  • Ruby Ranges
  • Understanding Ruby Arrays
  • Advanced Ruby Arrays
  • Ruby Operators
  • Ruby Operator Precedence
  • Ruby Math Functions and Methods
  • Understanding Ruby Logical Operators
  • Ruby Object Oriented Programming
  • Ruby Flow Control
  • The Ruby case Statement
  • Ruby While and Until Loops
  • Looping with for and the Ruby Looping Methods
  • Ruby Strings – Creation and Basics
  • Ruby String Concatenation and Comparison
  • Ruby String Replacement, Substitution and Insertion
  • Ruby String Conversions
  • Ruby Directory Handling
  • Working with Files in Ruby
  • Working with Dates and Times in Ruby
  • Useful Ruby Links and Resources

http://www.techotopia.com/index.php/Ruby_Essentials

The Bastards Book of Ruby

My image
  • Author: Dan Nguyen
  • Format: online HTML
  • Price: free

The Bastards Book of Ruby is an introduction to programming and its practical uses for journalists, researchers, scientists, analysts, and anyone else whose job is to seek out, make sense from, and show the hard-to-find data.

This does not require being “good at computers”, having a background in programming, or the desire (yet) to be a full-fledged hacker/developer. It just takes an eagerness to be challenged.

Chapters include:

  • Installation
  • Tweet Fetching
  • Style, Conventions, and Debugging
  • Numbers
  • Strings
  • Variables
  • Methods
  • Methods Part II: RubyGems
  • If and Else
  • Loops
  • Collections
  • Enumerables
  • File input/output
  • Reviewing Tweet Fetching
  • Regular Expressions
  • An Intro to Web Scraping
  • Meet Your Web Inspector
  • Inspecting a Webpage’s Traffic
  • Parsing HTML with Nokogiri
  • Writing a Web Crawler
  • The Mechanize Gem
  • SQL
  • Using Non-Ruby Programs With Ruby
  • Image Manipulation
  • Exception and Error Handling
  • Object-Oriented Concepts
  • Recursion
  • Comparing California’s Costs of Surgery
  • Counting the Jail Logs
  • Gathering the Standard & Poor’s 500 Stock Listings

http://ruby.bastardsbook.com/

Learn Ruby the Hard Way, 3rd Edition

My image
  • Author: Zed A. Shaw
  • Format: online HTML
  • Price: free (hard copy available on Amazon)

In Learn Ruby the Hard Way, Third Edition , you’ll learn Ruby by working through 52 brilliantly crafted exercises. Read them. Type their code precisely. (No copying and pasting!) Fix your mistakes. Watch the programs run. As you do, you’ll learn how software works; what good programs look like; how to read, write, and think about code; and how to find and fix your mistakes using tricks professional programmers use.

Chapters include:

  • The Setup
  • A Good First Program
  • Comments And Pound Characters
  • Numbers And Math
  • Variables And Names
  • More Variables And Printing
  • Strings And Text
  • More Printing
  • Printing, Printing
  • Printing, Printing, Printing
  • What Was That?
  • Asking Questions
  • Prompting People
  • Parameters, Unpacking, Variables
  • Prompting And Passing
  • Reading Files
  • Reading And Writing Files
  • More Files
  • Names, Variables, Code, Functions
  • Functions And Variables
  • Functions And Files
  • Functions Can Return Something
  • What Do You Know So Far?
  • Read Some Code
  • More Practice
  • Even More Practice
  • Congratulations, Take A Test!
  • Memorizing Logic
  • Boolean Practice
  • What If
  • Else And If
  • Making Decisions
  • Loops And Arrays
  • While Loops
  • Accessing Elements Of Arrays
  • Branches and Functions
  • Designing and Debugging
  • Symbol Review
  • Doing Things To Arrays
  • Dictionaries, Oh Lovely Dictionaries
  • Modules, Classes, And Objects
  • Learning To Speak Object Oriented
  • Is-A, Has-A, Objects, and Classes
  • Gothons From Planet Percal #25
  • Inheritance Vs. Composition
  • You Make A Game
  • A Project Skeleton
  • Automated Testing
  • Advanced User Input
  • Making Sentences
  • Your First Website
  • Getting Input From A Browser
  • The Start Of Your Web Game
  • Advice From An Old Programmer
  • Next Steps
  • Command Line Crash Course

http://learnrubythehardway.org/book/