End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PStore#root?
root?(name)
lib/pstore.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/pstore.rb, line 233
def root?(name)
in_transaction
@table.key? name
end
Returns true if the supplied name is currently in the data store.
WARNING: This method is only valid in a PStore#transaction. It will raise PStore::Error if called at any other time.