yzz 2.0.10 → 2.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yzz/side.rb +6 -2
- data/lib/yzz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bda3a0b18dda005b0b0d54a41dc9908c573dde80
|
4
|
+
data.tar.gz: 26f8361a80470e97fa4b834e143554f482629b10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed056ee307f1f2117d32ddb2db2f3b0b3a36afdee85b05eb22b37d04af1fbfd9da8a14568a228c530ca5b8709db346a25f24c7d3c6a629e5b88103b3ad1cecd1
|
7
|
+
data.tar.gz: 95608ce640a6c937454e0db378fe80fb1c8f8932b2896be4729ad382181caabeee451953af5b408a735ac18b5d887f24f1df35fd0df5b7d24e1f922c29f215ac
|
data/lib/yzz/side.rb
CHANGED
@@ -57,11 +57,15 @@ class Yzz::Side
|
|
57
57
|
end
|
58
58
|
alias * crossover
|
59
59
|
|
60
|
-
# Given a Yzz object, returns its side along the dimension same as the
|
60
|
+
# Given a +Yzz+ object, returns its side along the dimension same as the
|
61
61
|
# receiver's dimension, in the direction opposite to self.
|
62
62
|
#
|
63
63
|
def opposite_side( of: zz )
|
64
|
-
|
64
|
+
opposite = case direction
|
65
|
+
when :posward then :negward
|
66
|
+
when :negward then :posward
|
67
|
+
else fail "Unknown direction!" end
|
68
|
+
of.along( dimension ).send( opposite )
|
65
69
|
end
|
66
70
|
|
67
71
|
# Unlinks the neighbor, returning it.
|
data/lib/yzz/version.rb
CHANGED