Class: TestPatinfo::StubSequence

Inherits:
Object
  • Object
show all
Includes:
ODDB::Persistence
Defined in:
test/test_model/patinfo.rb

Constant Summary

Constants included from ODDB::Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Method Summary (collapse)

Methods included from ODDB::Persistence

#initialize

Methods included from ODDB::PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Constructor Details

This class inherits a constructor from ODDB::Persistence

Instance Method Details

- (Object) patinfo=(patinfo)



23
24
25
26
27
28
29
# File 'test/test_model/patinfo.rb', line 23

def patinfo=(patinfo)
  if(@patinfo.respond_to?(:remove_sequence))
    @patinfo.remove_sequence(self)
  end
  patinfo.add_sequence(self)
  @patinfo = patinfo
end