Method: ImportRuby.require_all

Defined in:
lib/importRuby.rb

.require_all(_dir) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/importRuby.rb', line 2

def ImportRuby.require_all(_dir)
    puts "start import"
    Dir[File.expand_path(_dir, Dir.pwd) + "/**/*.rb"].each do |file|
        puts "require #{file}"
        require file
    end
end