Module: Loader::Api
- Defined in:
- lib/modules/loader.rb
Class Method Summary collapse
- .config(opts) ⇒ Object
- .delete(id) ⇒ Object
- .export(name = nil, value = nil) ⇒ Object
- .import(id, type = nil) ⇒ Object
Class Method Details
.config(opts) ⇒ Object
80 81 82 83 84 85 86 87 |
# File 'lib/modules/loader.rb', line 80 def self.config(opts) [ :basepath, :save_the_environment, ].each do |opt| Loader.instance_variable_set("@#{opt}", opts[opt]) if opts.include?(opt) end end |
.delete(id) ⇒ Object
76 77 78 |
# File 'lib/modules/loader.rb', line 76 def self.delete(id) Loader.delete(id) end |