Class: Object

Inherits:
BasicObject
Defined in:
lib/modules.rb

Instance Method Summary collapse

Instance Method Details

#export(name = nil, value = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/modules.rb', line 4

def export(name=nil, value=nil)
  if name.nil?
    value = yield
  else
    value = {name => value}
  end

  Loader.export(value)
end

#import(id, type = nil) ⇒ Object



14
15
16
# File 'lib/modules.rb', line 14

def import(id, type=nil)
  Loader.import(id, type)
end

#modulesObject



18
19
20
# File 'lib/modules.rb', line 18

def modules
  Loader::Api
end