Class: Configatron::KernelStore

Inherits:
BasicObject
Includes:
Singleton
Defined in:
lib/configatron/kernel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeKernelStore

Returns a new instance of KernelStore.



7
8
9
# File 'lib/configatron/kernel.rb', line 7

def initialize
  @store = ::Configatron::Store.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



11
12
13
# File 'lib/configatron/kernel.rb', line 11

def method_missing(name, *args, &block)
  store.send(name, *args, &block)
end

Instance Attribute Details

#storeObject (readonly)

Returns the value of attribute store.



5
6
7
# File 'lib/configatron/kernel.rb', line 5

def store
  @store
end