maybe.rb 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maybe/pollute.rb +3 -3
- data/lib/maybe/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: 98e4683c2300b32ac4cca4f5167e63d1868b33d4
|
4
|
+
data.tar.gz: 691340f59ab77c643453e3e33e223927055fd740
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d000ace1ab0e0a275634db84b07dc5b5754075952c7e58f1713daf06f89a3541c3241d7689289a0fbfe303f5f21ef63c43113f39d47e5b54969ad056848d722a
|
7
|
+
data.tar.gz: 3eb924956e87df7044ad23af83dbc74efdafba52b68f8c910f14bc3809b717274eab867206607d6e3936c269c1b130b9773945a0127a09e5f183c754e8b2d364
|
data/lib/maybe/pollute.rb
CHANGED
@@ -9,13 +9,13 @@ class Object
|
|
9
9
|
#
|
10
10
|
# @see [Maybe#get]
|
11
11
|
#
|
12
|
-
def maybe(*args)
|
12
|
+
def maybe(*args, &block)
|
13
13
|
retval = Maybe.new(self)
|
14
14
|
|
15
15
|
if !args.empty?
|
16
|
-
retval = retval.maybe(*args)
|
16
|
+
retval = retval.maybe(*args, &block)
|
17
17
|
elsif block_given?
|
18
|
-
retval = retval.maybe(&
|
18
|
+
retval = retval.maybe(&block)
|
19
19
|
end
|
20
20
|
|
21
21
|
return retval
|
data/lib/maybe/version.rb
CHANGED