Create bookmark
Learning Ruby
The Language that Powers Rails
Notes
Please login to add notes
- Table of Contents
- + Preface
-
+
Ruby Basics
-
+
Hello, Matz
- A Very Short Ruby Program
- Shebang!
- Issue a System Command
- Appending a String
- Multiply
- Inserting a Shell Command
- Using a Variable
- Expression Substitution
- Formatting a String
- The eval Method and -e Option
- Getting Input from the Keyboard
- Methods
- The block
- The each Method
- The proc
- XML
- The Class
- The Tk Toolkit
- Editing and Running Ruby in TextMate
- Interactive Ruby
- Resources
- + Installing Ruby
- Permission Denied
- Associating File Types on Windows
- Review Questions
-
+
Hello, Matz
- + A Quick Tour of Ruby
-
+
Conditional Love
- + Strings
-
+
Math
- + Arrays
-
+
Hashes
-
+
Working with Files
- + Classes
-
+
More Fun with Ruby
-
+
A Short Guide to Ruby on Rails
- + Ruby Reference
- + Answers to Review Questions
- Glossary
- Index
You don't have to know everything about a car to drive one, and you don't need to know everything about Ruby to start programming with it. Written for both experienced and new programmers alike, Learning Ruby is a just-get-in-and- drive book -- a hands-on tutorial that offers lots of Ruby programs and lets you know how and why they work, just enough to get you rolling down the road. Interest in Ruby stems from the popularity of Rails, the web development framework that's attracting new devotees and refugees from Java and PHP. But there are plenty of other uses for this versatile language. The best way to learn is to just try the code! You'll find examples on nearly every page of this book that you can imitate and hack. Briefly, this book:Outlines many of the most important features of Ruby Demonstrates how to use conditionals, and how to manipulate strings in Ruby. Includes a section on regular expressions Describes how to use operators, basic math, functions from the Math module, rational numbers, etc. Talks you through Ruby arrays, and demonstrates hashes in detail Explains how to process files with Ruby Discusses Ruby classes and modules (mixins) in detail, including a brief introduction to object-oriented programming (OOP) Introduces processing XML, the Tk toolkit, RubyGems, reflection, RDoc, embedded Ruby, metaprogramming, exception handling, and other topics Acquaints you with some of the essentials of Rails, and includes a short Rails tutorial. Each chapter concludes with a set of review questions, and appendices provide you with a glossary of terms related to Ruby programming, plus reference material from the book in one convenient location. If you want to take Ruby out for a drive, Learning Ruby holds the keys.
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > General
Publishers
Publication year : 2007
License: All rights reserved ©
Times read: 1,311

