Sha256: 80aa65c7f9bef1fcc447004bd09a10bf175e29f0d8bbe0af23bdd8029effdddd

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Anyway
  module Loaders
    class Base
      include Tracing

      class << self
        def call(local: Anyway::Settings.use_local_files, **opts)
          new(local: local).call(**opts)
        end
      end

      def initialize(local:)
        @local = local
      end

      def use_local?
        @local == true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
anyway_config-2.0.2 lib/anyway/loaders/base.rb
anyway_config-2.0.1 lib/anyway/loaders/base.rb
anyway_config-2.0.0 lib/anyway/loaders/base.rb
anyway_config-2.0.0.rc1 lib/anyway/loaders/base.rb