Class: Totes::Resolver
- Inherits:
-
Object
- Object
- Totes::Resolver
- Defined in:
- lib/totes/resolver.rb
Instance Method Summary collapse
-
#initialize(sources) ⇒ Resolver
constructor
A new instance of Resolver.
- #require_all ⇒ Object
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_all ⇒ Object
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 |