lib/yzz/side.rb in yzz-2.0.0 vs lib/yzz/side.rb in yzz-2.0.1
- old
+ new
@@ -32,10 +32,10 @@
raise TypeError, "Zz object or nil expected!" unless new_neighbor.is_a_zz?
conflicter = opposite_side( of: new_neighbor ).neighbor # have concerns
return new_neighbor if conflicter == self # no neighbor change
raise TypeError, "Suggested new neighbor (#{new_neighbor}) already " +
- "has a conflicting #{direction.opposite} link along dimension " +
+ "has a conflicting #{OPPOSITE[ direction ]} link along dimension " +
"#{dimension} !" if conflicter.is_a_zz?
begin # FIXME: This should be an atomic transaction.
old_neighbor = set_neighbor! new_neighbor
opposite_side( of: new_neighbor ).set_neighbor! zz