Sha256: 405397901d98c86837d647a588defb5323ca11cb5cefebea6023e63417842e2d

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

module IdentityParade
  module Matchers
    # This matcher checks the similarity of booleans
    class BooleanMatcher < Matcher
      def score
        @left.class == @right.class ? 1 : 0
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
identity_parade-1.0.1 lib/identity_parade/matchers/boolean_matcher.rb
identity_parade-1.0.0 lib/identity_parade/matchers/boolean_matcher.rb