Method: Handle#on_fail

Defined in:
lib/handle.rb

#on_fail(&block) ⇒ Object



51
52
53
54
# File 'lib/handle.rb', line 51

def on_fail(&block)
  block.call(@result.error, **options = {}) unless success?
  self
end