Top Level Namespace
Defined Under Namespace
Modules: PowerIQ, RestClient
Instance Method Summary
collapse
Instance Method Details
#check_compatability ⇒ Object
#less_typing ⇒ Object
43
44
45
46
47
48
49
50
|
# File 'bin/poweriq_client', line 43
def less_typing
resources = Dir.entries(File.join(File.dirname(__FILE__), '..', 'lib','poweriq_client','resource')).select { |x| x=~%r{\.rb$} }
resources.each { |r| load File.join(File.dirname(__FILE__), '..', 'lib','poweriq_client','resource',r) }
classes = ObjectSpace.each_object(Class).map { |x| x.to_s}.select { |x| x=~/PowerIQ::Resource/ }.reject { |x| x=~/Base$/ }
classes.each { |c|
Object.const_set(c.demodulize,c.constantize)
}
end
|