class EntityCache::Controls::Store::Internal::Example
Public Instance Methods
put?(id, record=nil)
click to toggle source
# File lib/entity_cache/controls/store/internal.rb, line 14 def put?(id, record=nil) if record.nil? records.key?(id) else records[id] == record end end
records()
click to toggle source
# File lib/entity_cache/controls/store/internal.rb, line 10 def records @records ||= {} end