Class: Totes::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/totes/resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(sources) ⇒ Resolver

Returns a new instance of Resolver.



4
5
6
# File 'lib/totes/resolver.rb', line 4

def initialize(sources)
  @sources = sources
end

Instance Method Details

#require_allObject



8
9
10
11
12
13
14
15
# File 'lib/totes/resolver.rb', line 8

def require_all
  add_to_load_path('lib', 'test')
  require_spec_helpers

  Dir[*clean_dirs_list].each do |filename|
    require "#{Dir.pwd}/#{filename}"
  end
end