Sha256: 45dc32eea64fd82eeaf3cf788ac169048fc721fcd89ab4e48db8b4c018235f4e

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

# frozen_string_literal: true

module Speculation
  # @private
  class SpecImpl
    attr_accessor :name, :gen
    attr_reader :id

    def conform(_x)
      raise NotImplementedError
    end

    def explain(_path, _via, _inn, _value)
      raise NotImplementedError
    end

    def gen(_overrides, _path, _rmap)
      raise NotImplementedError
    end

    def inspect
      "#{self.class}(#{name})"
    end
  end
end

require_relative "spec_impl/hash_spec"
require_relative "spec_impl/spec"
require_relative "spec_impl/tuple_spec"
require_relative "spec_impl/or_spec"
require_relative "spec_impl/and_spec"
require_relative "spec_impl/merge_spec"
require_relative "spec_impl/every_spec"
require_relative "spec_impl/regex_spec"
require_relative "spec_impl/f_spec"
require_relative "spec_impl/nilable_spec"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
speculation-0.2.0 lib/speculation/spec_impl.rb
speculation-0.1.0 lib/speculation/spec_impl.rb