lib/maybe.rb in zx-monads-0.0.3 vs lib/maybe.rb in zx-monads-0.0.4

- old
+ new

@@ -103,9 +103,16 @@ block.call(None[@value]) self end + def on(ontype, &block) + case ontype.to_sym + when :success then on_success(&block) + when :failure then on_failure(&block) + end + end + class Some < Maybe def self.[](...) new(...) end \ No newline at end of file