Method: Magic::Loader.require_all

Defined in:
lib/magic/loader.rb

.require_all(scope = caller_locations[0].path) ⇒ Object



9
10
11
12
13
14
# File 'lib/magic/loader.rb', line 9

def require_all scope = caller_locations[0].path
  Pathname(scope)
      .sub_ext('')
      .glob('*.rb')
      .each { require _1 }
end