class Dry::System::Plugins::Env

@api public

Constants

DEFAULT_INFERRER

Attributes

options[R]

Public Class Methods

new(options) click to toggle source

@api private

# File lib/dry/system/plugins/env.rb, line 13
def initialize(options)
  @options = options
end

Public Instance Methods

extended(system) click to toggle source

@api private

Calls superclass method
# File lib/dry/system/plugins/env.rb, line 22
def extended(system)
  system.setting :env, default: inferrer.(), reader: true
  super
end
inferrer() click to toggle source
# File lib/dry/system/plugins/env.rb, line 17
def inferrer
  options.fetch(:inferrer, DEFAULT_INFERRER)
end