Path: | lib/more/facets/capsule.rb |
Last Update: | Tue Mar 09 07:46:46 -0700 2010 |
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.
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.