lib/kleisli/maybe.rb in kleisli-0.2.4 vs lib/kleisli/maybe.rb in kleisli-0.2.5

- old
+ new

@@ -32,11 +32,11 @@ def >(block) self end - def or(other=None(), &other_blk) + def or(other=self, &other_blk) if other_blk other_blk.call else other end @@ -59,10 +59,10 @@ def >(block) block.call(@value) end - def or(other=None(), &other_blk) + def or(other=nil, &other_blk) self end def to_s "Some(#{@value})"