1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Literal

By

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.

  1. About.com
  2. Technology
  3. Ruby
  4. Glossary
  5. G - L
  6. Literal

©2014 About.com. All rights reserved.