1. Home
  2. Computing & Technology
  3. Ruby

Literal

By Amanda & Michael Morin, About.com

Definition:

Literal: An object that can be constructed using special syntax. The most basic types of literals are numbers and strings. A number or string in a Ruby program will automatically construct Numeric or String objects. More complex examples are the regular expression literal which will generate a Regexp object and the hash literal which will generate a Hash object. Literals must be programmed directly into the language syntax, so only literals for the language's included types can exist.

Explore Ruby
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Glossary
  5. G - L
  6. Literal

©2009 About.com, a part of The New York Times Company.

All rights reserved.