Skip to content

Commit

Permalink
on_unknown return self
Browse files Browse the repository at this point in the history
  • Loading branch information
thadeu committed Sep 20, 2023
1 parent 2a653a9 commit 6b60b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/zx/result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def deconstruct_keys(_)

def on_unknown(&block)
__execute__(nil, &block)

self
end

def on_success(tag = nil, &block)
Expand Down
2 changes: 1 addition & 1 deletion lib/zx/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Zx
VERSION = '0.0.2'
VERSION = '0.0.3'
end

0 comments on commit 6b60b1c

Please sign in to comment.