simple_monads 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/simple_monads/failure_object.rb +1 -1
- data/lib/simple_monads/success_object.rb +1 -1
- data/lib/simple_monads/version.rb +1 -1
- data/lib/simple_monads.rb +2 -2
- 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: 78e5554b51686136830accd22720d81a7f38edf8d427b196d4cfe5feee9d3a15
|
4
|
+
data.tar.gz: fac5890a466f6532af1a601766738d76098d8236fbe5cc143b3bc290a4cb04a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7029c2208181904091bba7f2f0c676969e68066eb33a57945997124d746a9df0a20f6b08c17545acd8fb36681d490c2f466f8ee643ea19edb3acae48aa5ffac8
|
7
|
+
data.tar.gz: ac7b894bc4a75e108aeadb15e193a808ce527d5231a2606797f72bb315b0e6e5119cb504616da00c67e4cac1cf1bfc7c5e4e214b299e9b60f61787fe3eae9c98
|
data/lib/simple_monads.rb
CHANGED
@@ -5,11 +5,11 @@ require_relative 'simple_monads/success_object'
|
|
5
5
|
|
6
6
|
# Main module
|
7
7
|
module SimpleMonads
|
8
|
-
def Success(object) # rubocop:disable Naming/MethodName
|
8
|
+
def Success(object = nil) # rubocop:disable Naming/MethodName
|
9
9
|
SuccessObject.new(object)
|
10
10
|
end
|
11
11
|
|
12
|
-
def Failure(object) # rubocop:disable Naming/MethodName
|
12
|
+
def Failure(object = nil) # rubocop:disable Naming/MethodName
|
13
13
|
FailureObject.new(object)
|
14
14
|
end
|
15
15
|
end
|