recursively descend the directory with the same name as this file and do a require ‘heel/path/to/file‘
# File lib/heel.rb, line 10 10: def self.require_all_libs_relative_to_me 11: remove_parent = File.dirname(File.expand_path(__FILE__)) + File::SEPARATOR 12: descend_dir = File.join(remove_parent,File.basename(__FILE__, ".rb")) 13: 14: Dir.glob("#{descend_dir}/**/*.rb").each do |rb| 15: lib = rb.gsub(remove_parent,'') 16: require lib 17: end 18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.