# File lib/juicer.rb, line 55 def self.require_all_libs dir = File.dirname(File.expand_path(__FILE__)) glob = File.join(dir, "juicer", '**', '*.rb') # Unexpand paths (avoids requiring the same file twice) paths = Dir.glob(glob).map { |path| path.sub("#{dir}/", '').sub(/\.rb$/, "") } paths.each { |rb| require rb } end