kleisli 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kleisli/maybe.rb +2 -2
- data/lib/kleisli/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: e5a46d7eddb131b8c719366a3236447925698c9d
|
4
|
+
data.tar.gz: 6ae4c0940c4f2277dfc28b0310c2f9e5b69c10b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fcaf5ea5e682a2f0050c65b56b53f6ddd7ccffee4ea1201586bd17ecd2d8e5ba24b8a6d67fdcf82d87a1e400b12569d3a1947b5695f29ba2e6e4a109e07fff0
|
7
|
+
data.tar.gz: 5633da971c9b9b889fdd8fb87eec05ecdff82ae3f51d8e1ee4c220eaef040daa53832343ecf5be356edbbc551fb2234c344b3b0bda8d36152a38b5b084691ec7
|
data/lib/kleisli/maybe.rb
CHANGED
@@ -33,7 +33,7 @@ module Kleisli
|
|
33
33
|
self
|
34
34
|
end
|
35
35
|
|
36
|
-
def or(other, &other_blk)
|
36
|
+
def or(other=None(), &other_blk)
|
37
37
|
if other_blk
|
38
38
|
other_blk.call
|
39
39
|
else
|
@@ -60,7 +60,7 @@ module Kleisli
|
|
60
60
|
block.call(@value)
|
61
61
|
end
|
62
62
|
|
63
|
-
def or(other, &other_blk)
|
63
|
+
def or(other=None(), &other_blk)
|
64
64
|
self
|
65
65
|
end
|
66
66
|
|
data/lib/kleisli/version.rb
CHANGED