Module: NumberMuncher::Loader
- Defined in:
- lib/number_muncher/loader.rb
Class Method Summary collapse
Class Method Details
.instance ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/number_muncher/loader.rb', line 5 def self.instance @instance ||= begin called_from = caller_locations(1, 1).first.path Zeitwerk::Registry.loader_for_gem(called_from).tap do |loader| # rubocop:disable Style/SymbolProc loader.enable_reloading # loader.logger = method(:puts) end end end |