File: capsule.rb

# capsule.rb

Path: | lib/more/facets/capsule.rb
Last Update: | Tue Aug 10 17:25:06 -0600 2010

# Capsule

A Capsule is subclass of Module. It encapsulates an extenal script as a funcitons module.

A module which is an instance of the Capsule class encapsulates in its scope the top-level methods, top-level constants, and instance variables defined in a ruby script file (and its subfiles) loaded by a ruby program. This allows use of script files to define objects that can be loaded into a program in much the same way that objects can be loaded from YAML or Marshal files.

See intro.txt for an overview.

## Authors

- Joel VanderWerf
- Thomas Sawyer

## Todo

- The name of this is rather weak. Think of a better one.

## Copying

Copyright (c) 2005 Thomas Sawyer, Joel VanderWerf

Ruby License

This module is free software. You may use, modify, and/or redistribute this software under the same terms as Ruby.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[Validate]