Class: Asynchronic::DataStore::NoLazyStore

Inherits:
TransparentProxy
  • Object
show all
Includes:
Helper
Defined in:
lib/asynchronic/data_store/no_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
10
# File 'lib/asynchronic/data_store/no_lazy_store.rb', line 7

def [](key)
  value = __getobj__[key]
  value.respond_to?(:proxy?) ? value.reload.to_value : value
end

#lazy?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/asynchronic/data_store/no_lazy_store.rb', line 12

def lazy?
  false
end