Top Level Namespace

Defined Under Namespace

Modules: RedshiftCopier

Instance Method Summary collapse

Instance Method Details

#require_all(pattern) ⇒ Object



5
6
7
8
# 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