Sha256: ab695b81d77bc4f5f00e90430a56b5f376fd80399671960caa4bcc31f4a2d165

Contents?: true

Size: 243 Bytes

Versions: 8

Compression:

Stored size: 243 Bytes

Contents

# 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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
statesman-12.1.0 lib/statesman/guard.rb
statesman-12.0.0 lib/statesman/guard.rb
statesman-11.0.0 lib/statesman/guard.rb
statesman-10.2.3 lib/statesman/guard.rb
statesman-10.2.2 lib/statesman/guard.rb
statesman-10.2.1 lib/statesman/guard.rb
statesman-10.2.0 lib/statesman/guard.rb
statesman-10.1.0 lib/statesman/guard.rb