class Object

Public Instance Methods

require_all(pattern) click to toggle source
# File lib/redshift_copier.rb, line 5
def require_all(pattern)
  root = File.expand_path("../", File.dirname(__FILE__))
  Dir.glob("#{root}/#{pattern}/**/*.rb").sort.each { |path| require path }
end