End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PStore#[]
[](name)
lib/pstore.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/pstore.rb, line 157
def [](name)
in_transaction
@table[name]
end
Retrieves a value from the PStore file data, by name. The hierarchy of Ruby objects stored under that root name will be returned.
WARNING: This method is only valid in a PStore#transaction. It will raise PStore::Error if called at any other time.