Sha256: 3dcb3c1cd37e7a8ffee6c8f24fc8e831294109a7b7b54d3b97634aec91d0e7bb

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 Bytes

Contents

# frozen_string_literal: true

module Speculation
  # @private
  class Spec
    attr_accessor :name
    attr_reader :id

    def conform(_x)
      raise NotImplementedError
    end

    def unform(_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/hash_spec"
require_relative "spec/predicate_spec"
require_relative "spec/tuple_spec"
require_relative "spec/or_spec"
require_relative "spec/and_spec"
require_relative "spec/merge_spec"
require_relative "spec/every_spec"
require_relative "spec/regex_spec"
require_relative "spec/f_spec"
require_relative "spec/nilable_spec"
require_relative "spec/nonconforming_spec"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
speculation-0.4.2 lib/speculation/spec.rb