rb-kgy-fp 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd466fae2751a38d4024523d657941de41c887a63ad6309b90591c28a9992efe
4
- data.tar.gz: 50b30e436d163ebc5cbaf1f8b7c615c49334063962a8c590dcb9a22f7d6446c6
3
+ metadata.gz: 3697ca15bcf22fea89e6e2621f8165abf24edb989a0fb5269755834c9809dab0
4
+ data.tar.gz: 14ed08760f9c239697eb33a4461b561753bb207da4ad94d6a4dec6376a92c989
5
5
  SHA512:
6
- metadata.gz: 5d0f8273997f98caad32cbe9d933c758b7573a7c185679ae41b8809830f349aa0b4090379cb0117702d258bb5e07b9bff81296de3c9d7dee32162b9405a1d971
7
- data.tar.gz: bd2734c9d12abcbefdec6e03b2c3c59352b1ea9a07d4b07c6912c0328eb595f58720f50075c655c3501d6131d9f8c2c5524ee21baebe79646a908e69cf158507
6
+ metadata.gz: 9097a06a37b571fc51befabb6adb786fb5daf27cdde571690d01400955435e1e2e4214194235148da51370d218d484f5ee35015ec854133056288c777ea96c0c
7
+ data.tar.gz: 33e72b36d9f8a247386aea220afafdc11cc72c12c42f08b70c766e72b401ee480c77fe2e3a6c93ba3b5de6fceb9979a08e97ae26c5db6477a21b68acf3fe0670
@@ -33,7 +33,7 @@ class Maybe
33
33
  end
34
34
 
35
35
  def self.empty
36
- Nothing.new
36
+ Nothing.instance
37
37
  end
38
38
 
39
39
  def consume(other)
@@ -70,7 +70,7 @@ class Just < Maybe
70
70
  if other.just?
71
71
  of fn.(@value, other.value)
72
72
  else
73
- Nothing.new
73
+ Nothing.instance
74
74
  end
75
75
  end
76
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-kgy-fp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Lui