class DotMe::Loader
Public Class Methods
load!()
click to toggle source
# File lib/dotme/loader.rb, line 3 def self.load! Dir[ ::File.join ::File.dirname(__FILE__), 'incubators/*.rb' ].each do |file| begin require file clazz = DotMe.const_get file.gsub( /^.*incubators\/(.+)\.rb$/, '\1' ).capitalize DotMe::Incubator.register! clazz rescue; end end end