Sha256: 76f1680fdd48bb80ae43f297afb818db59ead958d00293f8cd9b0351d7c3fb44

Contents?: true

Size: 188 Bytes

Versions: 4

Compression:

Stored size: 188 Bytes

Contents

# frozen_string_literal: true

module Kind
  class Error < TypeError
    def initialize(klass, object)
      super("#{object.inspect} expected to be a kind of #{klass}")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kind-1.5.0 lib/kind/error.rb
kind-1.4.0 lib/kind/error.rb
kind-1.3.0 lib/kind/error.rb
kind-1.2.0 lib/kind/error.rb