Class: Ccp::Data::KVS::Default
- Inherits:
-
Object
- Object
- Ccp::Data::KVS::Default
- Defined in:
- lib/ccp/data.rb
Instance Method Summary collapse
- #[]=(key, val) ⇒ Object
-
#initialize(kvs) ⇒ Default
constructor
A new instance of Default.
- #regsiter_lazy(key, block) ⇒ Object
Constructor Details
#initialize(kvs) ⇒ Default
Returns a new instance of Default.
15 16 17 |
# File 'lib/ccp/data.rb', line 15 def initialize(kvs) @kvs = kvs end |
Instance Method Details
#[]=(key, val) ⇒ Object
19 20 21 22 |
# File 'lib/ccp/data.rb', line 19 def []=(key, val) return if @kvs.exist?(key) @kvs[key] = val end |