Class: Syntropy::Module
- Inherits:
-
Object
- Object
- Syntropy::Module
- Defined in:
- lib/syntropy/module.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env) ⇒ Module
constructor
A new instance of Module.
Constructor Details
#initialize(env) ⇒ Module
Returns a new instance of Module.
44 45 46 |
# File 'lib/syntropy/module.rb', line 44 def initialize(env) @env = env end |
Class Method Details
.__export_value__ ⇒ Object
60 61 62 |
# File 'lib/syntropy/module.rb', line 60 def self.__export_value__ @__export_value__ end |
.export(ref) ⇒ Object
56 57 58 |
# File 'lib/syntropy/module.rb', line 56 def self.export(ref) @__export_value__ = ref end |
.import(ref) ⇒ Object
52 53 54 |
# File 'lib/syntropy/module.rb', line 52 def self.import(ref) @loader.load(ref) end |
.loader=(loader) ⇒ Object
48 49 50 |
# File 'lib/syntropy/module.rb', line 48 def self.loader=(loader) @loader = loader end |