jonatasdaniel/interaptor

Add the ability to return a block on `call` method

Closed this issue · 0 comments

Add the ability to return a block on call method.

MyInteractorClass.new.call do |result|
  if result.success?
    # do something
  else
    # show errors
  end
end