Abstract
In Chapter 1 the Ruby programming language is introduced. Ruby is installed using the Ruby Installer for Windows. The Irb (Interactive Ruby shell) is used to run Ruby scripts. The syntax of the Ruby language is discussed. Ruby provides identifiers and comments, strings, arrays, hashes and ranges, variables, constants and operators, classes, methods, procs and blocks. Ruby also provides modules with which multiple inheritance may be added to Ruby with mixins. Ruby also provides exception handling. Ruby is similar to PHP and Java as Ruby, PHP and Java are object-oriented languages. Ruby is different from PHP and Java in some respects too.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2007 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
(2007). Ruby. In: Ruby on Rails for PHP and Java Developers. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73145-0_1
Download citation
DOI: https://doi.org/10.1007/978-3-540-73145-0_1
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-73144-3
Online ISBN: 978-3-540-73145-0
eBook Packages: Computer ScienceComputer Science (R0)