Class: Dcha::Config

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/dcha/config.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



19
20
21
22
# File 'lib/dcha/config.rb', line 19

def initialize
  @digest = Digest::SHA256
  @store = Store::Memory.new
end

Instance Attribute Details

#digestObject

Returns the value of attribute digest.



17
18
19
# File 'lib/dcha/config.rb', line 17

def digest
  @digest
end

#storeObject

Returns the value of attribute store.



17
18
19
# File 'lib/dcha/config.rb', line 17

def store
  @store
end

Class Method Details

.method_missing(name, *args, &block) ⇒ Object



9
10
11
12
# File 'lib/dcha/config.rb', line 9

def method_missing(name, *args, &block)
  return instance.send(name, *args, &block) if instance.respond_to?(name)
  super
end

.respond_to_missing?(name) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/dcha/config.rb', line 5

def respond_to_missing?(name)
  instance.respond_to_missing?(name)
end