lib/option.rb in option-0.6.0 vs lib/option.rb in option-1.0.0

- old
+ new

@@ -70,10 +70,14 @@ def exists?(&blk) !! blk.call(get) end + def include?(value) + get == value + end + def filter(&blk) exists?(&blk) ? self : None end def inside(&blk) @@ -134,9 +138,13 @@ def fold(if_empty, &blk) if_empty.call end def exists?(&blk) + false + end + + def include?(value) false end def filter(&blk) self