Class: Svn::Transaction
- Defined in:
- lib/svn/transactions.rb
Defined Under Namespace
Modules: C
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(txn_ptr, pool) ⇒ Transaction
constructor
A new instance of Transaction.
Methods inherited from Root
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
.release ⇒ Object
25 26 |
# File 'lib/svn/transactions.rb', line 25 def release end |