Sha256: d1398a2f246709a4549b0a171d2be65ddb7945898898b66d32f021157dc4c12d
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
# frozen_string_literal: true require 'addressable' require 'avm/instances/entry_keys' module Avm module Instances class Base module Production DEFAULT_PRODUCTION = true PRODUCTION_KEY = 'production' # @return [Boolean] def default_production? DEFAULT_PRODUCTION end # @return [Boolean] def production? if production_entry.found? production_entry.value.to_bool else default_production? end end # @return [Avm::Entries::Entry] def production_entry entry(PRODUCTION_KEY) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems