Class: Dynaload::Exported

Inherits:
Hash
  • Object
show all
Defined in:
lib/dynaload.rb,
lib/dynaload-0.1.0.rb

Instance Method Summary collapse

Constructor Details

#initialize(*a, &b) ⇒ Exported

–{{{



7
8
9
10
11
12
13
14
# File 'lib/dynaload.rb', line 7

def initialize(*a, &b)
#--{{{
  super
  self['classes'] = []
  self['modules'] = []
  self['objects'] = []
#--}}}
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *a, &b) ⇒ Object

–}}}



15
16
17
18
19
# File 'lib/dynaload.rb', line 15

def method_missing(m,*a,&b)
#--{{{
  self[m] || self["#{ m }"] || super
#--}}}
end