class Anyway::Loaders::Env

Public Instance Methods

call(env_prefix:, **_options) click to toggle source
# File lib/anyway/loaders/env.rb, line 8
def call(env_prefix:, **_options)
  env = ::Anyway::Env.new(type_cast: ::Anyway::NoCast)

  env.fetch_with_trace(env_prefix).then do |(conf, trace)|
    Tracing.current_trace&.merge!(trace)
    conf
  end
end