Sha256: 6a5e6ed81be0a5424e9959e887650df36d875a215e60c1575a8cabf5accf8bdc
Contents?: true
Size: 521 Bytes
Versions: 1
Compression:
Stored size: 521 Bytes
Contents
require "figaro/error" require "figaro/env" require "figaro/application" require "figaro/settings" module Figaro extend self attr_writer :adapter, :application def env Figaro::ENV end def adapter @adapter ||= Figaro::Application end def application @application ||= adapter.new end def load application.load end def require_keys(*keys) missing_keys = keys.flatten - ::ENV.keys raise MissingKeys.new(missing_keys) if missing_keys.any? end end require "figaro/rails"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
seielit-figaro-1.1.2 | lib/figaro.rb |