Class: HashPipe::GlobalConfiguration
- Inherits:
-
Object
- Object
- HashPipe::GlobalConfiguration
- Includes:
- Singleton
- Defined in:
- lib/hashpipe/global_configuration.rb
Overview
Singleton class for reading the defaults archived attribute configuration for this environment.
Constant Summary collapse
- DEFAULTS =
HashWithIndifferentAccess.new({ :moneta_klass => 'Moneta::Memory', :marshal => false, :compress => false })
Instance Method Summary collapse
Instance Method Details
#[](val) ⇒ Object
14 15 16 |
# File 'lib/hashpipe/global_configuration.rb', line 14 def [](val) config[val] end |
#to_hash ⇒ Object
18 19 20 |
# File 'lib/hashpipe/global_configuration.rb', line 18 def to_hash config end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/hashpipe/global_configuration.rb', line 22 def to_s config.inspect end |