Sha256: 52840492e088d574f3a17a1c6d5866bd361725b22676544e8e0bf4495aa9fe2a

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

module IdentityParade
  # The base class for all matchers implements the basic interface for all
  # matchers.
  #
  # Every matcher MUST implement a score method that returns a Number.
  class Matcher
    attr_reader :left, :right

    def initialize(left, right)
      @left = left
      @right = right
    end

    def score
      raise NotImplementedError
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
identity_parade-1.0.1 lib/identity_parade/matcher.rb
identity_parade-1.0.0 lib/identity_parade/matcher.rb