lib/zx/result.rb in zx-result-0.0.2 vs lib/zx/result.rb in zx-result-0.0.3
- old
+ new
@@ -37,9 +37,11 @@
{ type: type, value: value, error: error }
end
def on_unknown(&block)
__execute__(nil, &block)
+
+ self
end
def on_success(tag = nil, &block)
return self if failure?