--
-$Id: ChangeLog 31 2005-04-23 22:54:01Z tilman $
+$Id: ChangeLog 32 2005-04-24 09:18:07Z tilman $
++
2005-04-24 Tilman Sauerbeck (tilman at code-monkey de)
* lib/redact/redact.rb: Fixed exception message
+ * lib/redact/part.rb: Added Relation#set_to
2005-04-23 Tilman Sauerbeck (tilman at code-monkey de)
* lib/redact/app.rb: Comment fix
#--
-# $Id: part.rb 29 2005-04-16 15:59:07Z tilman $
+# $Id: part.rb 32 2005-04-24 09:18:07Z tilman $
#
# Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
#
end
def to=(part)
- @to_id = [].fill(part.nil? ? -1 : part.id, 0..1)
+ self.set_to(part)
+ end
+
+ def set_to(part_x, part_y = part_x)
+ @to_id = [part_x.nil? ? -1 : part_x.id,
+ part_y.nil? ? -1 : part_y.id]
end
end