gocardless/statesman

View on GitHub
lib/statesman/guard.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

require_relative "callback"
require_relative "exceptions"

module Statesman
  class Guard < Callback
    def call(*args)
      raise GuardFailedError.new(from, to, callback) unless super(*args)
    end
  end
end