1. Home
  2. Computing & Technology
  3. Ruby

Module

By , About.com Guide

Definition:

Module: The word module can refer to one of two things. In the general sense, a module is a complete software subsystem that can stand on its own. Modules can be loaded into programs to extend their functionality and to be re-used in other programs.

In Ruby, a module is a collection of methods that can be used to extend a class. Modules are "included" in classes to extend their functionality. Though Ruby modules are similar to modules in other languages, they can only be used with classes. Ruby uses the keyword require to import modules into a program.

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. M - R
  6. Module

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

All rights reserved.