stasis-aries-wal/lang/ruby/stasis.rb

23 lines
419 B
Ruby
Raw Normal View History

2010-09-20 16:09:44 +00:00
require 'stasis/string'
require 'stasis/hash'
require 'stasis/string_iterator'
class Stasis
Stasis.init_count = 0;
def initialize(xid=nil, rid=nil)
if Stasis.init_count == 0 then
Raw.Tinit
end
Stasis.init_count++;
if rid == nil then
rid = Raw.ROOT_RID
end
if xid == nil then
@xid = -1
@autoxact = true
else
@xid = xid
@autoxact = false
end
end