lib/yzz.rb in yzz-2.0.5 vs lib/yzz.rb in yzz-2.0.7

- old
+ new

@@ -65,9 +65,15 @@ # def towards other connectivity.select { |side| side.neighbor == other } end + # Prints the labels of the sides facing towards a given zz object. + # + def tw other + puts towards( other ).map &:label + end + # Short string describing the object. # def to_s "#<Yzz, #{connections.size} conn.>" end