Sha256: 9c33d88db7bbc987406872695a177420073008f6c78abdcf20c9e7bdd74b1218
Contents?: true
Size: 425 Bytes
Versions: 1
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module ROM # @api private class Transaction # @api private Rollback = Class.new(StandardError) # @api private def run(**) yield(self) rescue Rollback # noop end # Unconditionally roll back the current transaction # # @api public def rollback! raise Rollback end # @api private NoOp = Transaction.new.freeze end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-6.0.0.alpha1 | lib/rom/transaction.rb |