Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
PStore#keys
() -> ::Array[K]
keys
lib/pstore.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/pstore.rb, line 490
def keys
in_transaction
@table.keys
end
Returns an array of the existing keys:
Example
example_store do |store| store.transaction do store.keys # => [:foo, :bar, :baz] end end
Raises an exception if called outside a transaction block.