Class: Transaction::Simple::ThreadSafe::Group

### Home Classes Methods

### In Files

- lib/transaction/simple/threadsafe/group.rb

### Parent

Transaction::Simple::Group

### Methods

- ::new

### Files

- History.rdoc
- Manifest.txt
- README.rdoc

### Class/Module Index

Quicksearch

- Transaction
- Transaction::Simple
- Transaction::Simple::Group
- Transaction::Simple::ThreadSafe
- Transaction::Simple::ThreadSafe::Group
- Transaction::TransactionAborted
- Transaction::TransactionCommitted
- Transaction::TransactionError
- Transaction::TransactionThreadError

No matching classes.

# Transaction::Simple::ThreadSafe::Group

A transaction group is an object wrapper that manages a group of objects as if they were a single object for the purpose of transaction management. All transactions for this group of objects should be performed against the transaction group object, not against individual objects in the group. This is the threadsafe version of a transaction group.

### Public Class Methods

new(*objects) click to toggle source

    # File lib/transaction/simple/threadsafe/group.rb, line 10
    def initialize(*objects)
      @objects = objects || []
      @objects.freeze
      @objects.each { |obj| obj.extend(Transaction::Simple::ThreadSafe) }

      if block_given?
        begin
          yield self
        ensure
          self.clear
        end
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.