muina 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/muina/maybe/none.rb +5 -1
- data/lib/muina/maybe/some.rb +6 -1
- data/lib/muina/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7322acdc8c2503f893db20260a561551cd9cc3350d07ccaa7c0a9b929ce7007
|
4
|
+
data.tar.gz: 29679c640cc94c29860a9237cf82bcd9fcb3c363481dbe214ccbe5b3ac8e5feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f2fec87c12b2e968d621663781b9e9e079f10fd6bda0e7d9aabadbeadbd01851de54eb1e393def47e63b066a3c0c62dcc1cf5f101e8b33bb68b9c10430c2f02
|
7
|
+
data.tar.gz: 1431602da952ac911732a3284c9a6f73383ddecb20c4b1fe2bb477a970c8724404c6097518a0ee5d8005d10cd631c03a519aebc032173f060af3fc5d4ae4ada8
|
data/lib/muina/maybe/none.rb
CHANGED
data/lib/muina/maybe/some.rb
CHANGED
@@ -45,7 +45,7 @@ module Muina
|
|
45
45
|
def map
|
46
46
|
Maybe.return yield(@value)
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def map_none
|
50
50
|
self
|
51
51
|
end
|
@@ -57,6 +57,11 @@ module Muina
|
|
57
57
|
def bind_none
|
58
58
|
self
|
59
59
|
end
|
60
|
+
|
61
|
+
def ==(other)
|
62
|
+
self.class == other.class &&
|
63
|
+
self.value! == other.value!
|
64
|
+
end
|
60
65
|
end
|
61
66
|
end
|
62
67
|
end
|
data/lib/muina/version.rb
CHANGED