Module: Chem::Db
- Defined in:
- lib/chem/db.rb
Class Method Summary collapse
-
.load ⇒ Object
Load type files User would not call this method.
Class Method Details
.load ⇒ Object
Load type files User would not call this method
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/chem/db.rb', line 20 def load # :nodoc $LOAD_PATH.each do |path| dir = File.join(path, 'chem/db/types') next unless File.directory?(dir) Dir.entries(dir).each do |entry| if File.extname(entry) == ".rb" and not /^_/.match(entry) begin require(File.join(dir, entry)) rescue LoadError => e end end end end end |