Class: ManaMana::Runner
- Inherits:
-
Object
- Object
- ManaMana::Runner
- Defined in:
- lib/manamana/runner.rb
Instance Method Summary collapse
Instance Method Details
#recursive_require(in_dir) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/manamana/runner.rb', line 4 def recursive_require(in_dir) Dir.entries(in_dir).each do |entry| next if ['.', '..'].include? entry path = File.join(in_dir, entry) if File.directory?(path) recursive_require(path) elsif File.extname(path) == '.rb' require path end end end |
#start ⇒ Object
18 19 20 21 22 23 |
# File 'lib/manamana/runner.rb', line 18 def start require 'minitest/autorun' recursive_require File.join(Dir.pwd, LIB_PATH) require File.join(Dir.pwd, '__spec__.rb') end |