Class: Configatron::KernelStore
- Inherits:
- BasicObject
- Includes:
- Singleton
- Defined in:
- lib/configatron/kernel.rb
Instance Attribute Summary collapse
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize ⇒ KernelStore
constructor
A new instance of KernelStore.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ KernelStore
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
#store ⇒ Object (readonly)
Returns the value of attribute store.
5 6 7 |
# File 'lib/configatron/kernel.rb', line 5 def store @store end |