Ninguno

Páginas: 21 (5228 palabras) Publicado: 9 de octubre de 2012
2nd Edition

YOUR FREE GUIDE TO PROGRAMMING RUBY FROM SAPPHIRESTEEL SOFTWARE WWW.SAPPHIRESTEEL.COM

The Little Book Of Ruby :: :: www.sapphiresteel.com :: page 2

The Little Book Of Ruby Copyright © 2008 Dark Neon Ltd. All rights reserved.

written by Huw Collingbourne Download source code from:
http://www.sapphiresteel.com/The-Little-Book-Of-Ruby

You may freely copy anddistribute this eBook as long as you do not modify the text or remove this copyright notice. You must not make any charge for this eBook. The Little Book of Ruby is produced in association with SapphireSteel Software, makers of the Ruby In Steel IDE for Visual Studio (www.sapphiresteel.com).

(First edition: June 2006) Second edition: March 2008

The Little Book Of Ruby :: ::www.sapphiresteel.com :: page 3

Table of Contents
Welcome To The Little Book Of Ruby....................................................................................5 Learn Ruby In Ten Chapters< .......................................................................................... 5 What Is Ruby?...................................................................................................................... 5 What Is Rails? ....................................................................................................................... 5 Installing And Using Ruby With Ruby In Steel .............................................................. 6 Installing Ruby Yourself..................................................................................................... 6 Get The Source Code Of The Sample Programs ............................................................. 6 Running Ruby Programs .................................................................................................... 7 How To Use This Book ....................................................................................................... 7 Making Sense Of TheText.................................................................................................. 7 Chapter One ..............................................................................................................................9 Strings and Embedded Evaluation ................................................................................. 12 Methods.............................................................................................................................. 13 Numbers ............................................................................................................................. 15 Testing a Condition: if < then ......................................................................................... 16 Chapter Two............................................................................................................................18 Instances and Instance Variables ..................................................................................... 19 Constructors – new and initialize.................................................................................... 22 InspectingObjects.............................................................................................................. 24 Chapter Three..........................................................................................................................26 Superclasses and Subclasses ............................................................................................ 29 Chapter Four...........................................................................................................................31 Accessor Methods .............................................................................................................. 31 Attribute Readers and Writers ......................................................................................... 33 Attributes Create Variables...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Ninguno
  • Ninguno
  • Ninguno
  • Ninguno
  • Ninguno
  • Ninguno
  • Ninguno
  • Ninguno

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS