Sha256: f1c3af34ab5397b60cd256bfd59a8750605ce46e339632a606db29c27489e013
Contents?: true
Size: 578 Bytes
Versions: 16
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true module Dry module System module Plugins # @api public class Env < Module DEFAULT_INFERRER = -> { :development } attr_reader :options # @api private def initialize(**options) @options = options super() end def inferrer options.fetch(:inferrer, DEFAULT_INFERRER) end # @api private def extended(system) system.setting :env, default: inferrer.(), reader: true super end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems