Skip to main content
  • 1573 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics