Heel

Constants

VERSION

Public Class Methods

require_all_libs_relative_to_me() click to toggle source

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
def self.require_all_libs_relative_to_me
  remove_parent = File.dirname(File.expand_path(__FILE__)) + File::SEPARATOR
  descend_dir   = File.join(remove_parent,File.basename(__FILE__, ".rb"))

  Dir.glob("#{descend_dir}/**/*.rb").each do |rb|
    lib = rb.gsub(remove_parent,'')
    require lib
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.