mikezaby/my_data

View on GitHub
lib/my_data.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require "active_model"
require "active_support/all"
require "faraday"
require "nokogiri"
require "zeitwerk"

module MyData
  LOADER = Zeitwerk::Loader.for_gem
  LOADER.enable_reloading
  LOADER.setup

  class Error < StandardError; end

  def self.root
    File.expand_path "..", __dir__
  end

  def self.reload!
    MyData::LOADER.reload
  end
end