Sha256: 1cc266ebe2feee6aa66af770863c4958e937dd44ed48659e11aef5afffbc398a
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
module Shhh # Application configuration Singleton class. # It's values are requested by the library upon encryption or # decryption, or any other operation. class Configuration class << self attr_accessor :config def configure self.config ||= Configuration.new yield config if block_given? end def property(name) self.config.send(name) end end attr_accessor :data_cipher, :password_cipher, :private_key_cipher attr_accessor :compression_enabled, :compression_level end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shhh-1.3.0 | lib/shhh/configuration.rb |