End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
PStore#in_transaction
in_transaction
lib/pstore.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/pstore.rb, line 137
def in_transaction
raise PStore::Error, "not in transaction" unless @lock.locked?
end
Raises PStore::Error if the calling code is not in a PStore#transaction.