lib/verdict.rb in verdict-0.10.0 vs lib/verdict.rb in verdict-0.11.0
- old
+ new
@@ -13,9 +13,13 @@
def repository
discovery if @repository.nil?
@repository
end
+ def eager_load!
+ discovery
+ end
+
def discovery
@repository = {}
Dir[File.join(Verdict.directory, '**', '*.rb')].each { |f| load f } if @directory
end