lib/kapost/env.rb
# Exception raised when key is missing from ENV, and no default is given
Exception raised when key is missing from ENV, and no default is given
Exception raised when key is missing from ENV and no default is given
def fetch!(*args, &block)
      if production?
        begin
          @env.fetch(args.first)
        rescue ::KeyError
          raise ProductionKeyError, args.first
        end
      else
        fetch(*args, &block)
      end
    end
def fetch! ( * args , & block ) if production? begin @env . fetch ( args . first ) rescue :: KeyError raise ProductionKeyError , args . first end else fetch ( * args , & block ) end end
Exception raised when key is missing from ENV, and no default is given
Exception raised when key is missing from ENV and no default is given
args
block