Class: Svn::Transaction

Inherits:
Root
  • Object
show all
Defined in:
lib/svn/transactions.rb

Defined Under Namespace

Modules: C

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Root

#pool

Constructor Details

#initialize(txn_ptr, pool) ⇒ Transaction

Returns a new instance of Transaction.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/svn/transactions.rb', line 8

def initialize( txn_ptr, pool )
  # using the transaction object, get it's root
  out_ptr = FFI::MemoryPointer.new(:pointer)
  Error.check_and_raise(
      C.root( out_ptr, txn_ptr, pool )
    )

  # call super with the root pointer, rather than the transaction pointer.
  # this is so Transactions can be used as Roots in external calls:
  super( out_ptr.read_pointer )

  # save off the others
  @txn_ptr = txn_ptr
  @pool = pool
end

Class Method Details

.releaseObject



25
26
# File 'lib/svn/transactions.rb', line 25

def release
end