Class: Asynchronic::DataStore::LazyStore

Inherits:
TransparentProxy
  • Object
show all
Includes:
Helper
Defined in:
lib/asynchronic/data_store/lazy_store.rb

Instance Method Summary collapse

Methods included from Helper

#clear, #each, #lazy, #merge, #no_lazy, #readonly, #readonly?, #scoped

Instance Method Details

#[](key) ⇒ Object



7
8
9
# File 'lib/asynchronic/data_store/lazy_store.rb', line 7

def [](key)
  LazyValue.new __getobj__, key
end

#lazy?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/asynchronic/data_store/lazy_store.rb', line 11

def lazy?
  true
end