1. Home
  2. Computing & Technology
  3. Ruby

Literal

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.