Ruby Programming

Ruby Programming

Ruby is an object-oriented scripting language developed by Yukihiro Matsumoto ("Matz"). The main web site for Ruby is ruby-lang.org. Development began in February 1993 and the first alpha version of Ruby was released in December 1994. It was developed to be an alternative to scripting languages such as Perl and Python. Ruby borrows heavily from Perl and the class library is essentially an object-oriented reorganization of Perl's functionality. Ruby also borrows from Lisp and Smalltalk. While Ruby does not borrow many features from Python, reading the code for Python helped Matz develop Ruby.
Mac OS X comes with Ruby already installed. Most Linux distributions either come with Ruby preinstalled or allow you to easily install Ruby from the distribution's repository of free software.
You can also download and install Ruby on Windows. The more technically adept can download the Ruby source code and compile it for most operating systems, including Unix, DOS, BeOS, OS/2, Windows, and Linux.

Autor

Idioma

English

Índice

  • 1 Overview
  • 2 Installing Ruby
  • 3 Ruby editors
  • 4 Notation conventions
  • 5 Interactive Ruby
  • 6 Mailing List FAQ
  • 7 Basic Ruby - Hello world
  • 8 Basic Ruby - Strings
  • 9 Basic Ruby - Alternate quotes
  • 10 Basic Ruby - Here documents
  • 11 Basic Ruby - Introduction to objects
  • 12 Basic Ruby - Ruby basics
  • 13 Dealing with variables
  • 14 Program flow
  • 15 Writing functions
  • 16 Blocks
  • 17 Ruby is really, really object-oriented
  • 18 Basic Ruby - Data types
  • 19 Basic Ruby - Writing methods
  • 20 Basic Ruby - Classes and objects
  • 21 Basic Ruby - Exceptions
  • 22 Syntax - Lexicology
  • 23 Syntax - Variables and Constants
  • 24 Syntax - Literals
  • 25 Syntax - Operators
  • 26 Syntax - Control Structures
  • 27 Syntax - Method Calls
  • 28 Syntax - Classes
  • 29 Syntax - Hooks
  • 30 References
  • 31 Built-In Functions
  • 32 Predefined Variables
  • 33 Predefined Classes
  • 34 Objects
  • 35 Array
  • 36 Class
  • 37 Comparable
  • 38 Encoding
  • 39 Enumerable
  • 40 Forms of Enumerator
  • 41 Lazy evaluation
  • 42 Methods which return Enumerators
  • 43 More Enumerator readings
  • 44 Exception
  • 45 FalseClass
  • 46 IO - Fiber
  • 47 IO
  • 48 IO - File
  • 49 File
  • 50 IO - File::Stat
  • 51 File::Stat
  • 52 IO - GC
  • 53 GC
  • 54 IO - GC - Profiler
  • 55 Marshal
  • 56 Marshal
  • 57 Method
  • 58 Math
  • 59 Module
  • 60 Module - Class
  • 61 NilClass
  • 62 Numeric
  • 63 Numeric - Integer
  • 64 Numeric - Integer - Bignum
  • 65 Numeric - Integer - Fixnum
  • 66 Numeric - Float
  • 67 Range
  • 68 Regexp
  • 69 Regexp Regular Expressions
  • 70 RubyVM
  • 71 String
  • 72 Struct
  • 73 Struct
  • 74 Struct - Struct::Tms
  • 75 Symbol
  • 76 Time
  • 77 Thread
  • 78 Thread
  • 79 TrueClass
  • 80 Contributors
  • 81 Licenses