lib/muina/maybe/some.rb in muina-0.4.0 vs lib/muina/maybe/some.rb in muina-0.5.0
- old
+ new
@@ -43,20 +43,25 @@
end
def map
Maybe.return yield(@value)
end
-
+
def map_none
self
end
def bind
yield(@value)
end
def bind_none
self
+ end
+
+ def ==(other)
+ self.class == other.class &&
+ self.value! == other.value!
end
end
end
end