# File lib_core/rucy/loadlib.rb, line 9 def load_lib(path) unless (File.directory? path) then raise "not a directory: #{path.inspect}" end unless ($:.include? path) then $:.push(path) end Find.find(path) do |lib| if (lib =~ /\.rb$/ && (File.file? lib)) then name = lib[(path.length + 1)..-1] begin require(name) rescue StandardError, ScriptError LOAD_ERROR.push([ name, $! ]) end end end nil end