Sha256: 7d178707548c6566d254dd87c0624066f87e17cecb8558bcf111a3b7544494fb
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
require 'singleton' require 'memoizable' require 'yamload' module PansophyAuthenticator module Local class ApplicationKeys include Singleton include Memoizable def keys content end private def pathname Pathname.new(configuration.file_path) end memoize :pathname def dirname pathname.dirname end def filename pathname.basename('.yml') end def content loader.content end memoize :content def loader Yamload::Loader.new(filename, dirname) end def configuration PansophyAuthenticator.configuration end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pansophy_authenticator-0.1.0 | lib/pansophy_authenticator/local/application_keys.rb |