IndexedDB::KVS class of PicoRuby
Singleton methods
new
IndexedDB::KVS.new(db_like database, String store_name) -> void
open
IndexedDB::KVS.open(String name, ?store: String | Symbol, ?fallback: bool) -> KVS
Instance methods
[]
instance.[](String | Symbol key) -> untyped
[]=
instance.[]=(String | Symbol key, untyped value) -> untyped
clear
instance.clear() -> nil
close
instance.close() -> void
database
instance.database() -> db_like
delete
instance.delete(String | Symbol key) -> nil
each
instance.each() ?{ ([untyped, untyped]) -> void } -> (Enumerator[[untyped, untyped], void] | void)
empty?
instance.empty?() -> bool
has_key?
instance.has_key?(String | Symbol key) -> bool
keys
instance.keys() -> Array[String]
size
instance.size() -> Integer
to_h
instance.to_h() -> Hash[String, untyped]
values
instance.values() -> Array[untyped]
Attr accessors
name (reader)
instance.name -> String