Sha256: 7fa242e10b49cccd9a58bc4d1549a91d6f00286a8f478778e7ae81d1ff82e819
Contents?: true
Size: 409 Bytes
Versions: 31
Compression:
Stored size: 409 Bytes
Contents
module ROM # @api private class Transaction # @api private Rollback = Class.new(StandardError) # @api private def run(opts = EMPTY_HASH) 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
31 entries across 31 versions & 2 rubygems