azanar/punchout

View on GitHub
lib/punchout/matcher/equal.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'punchout/matcher'

module Punchout
  module Matcher
    # Matches when the candidate matches the subject of this matcher, or any
    # ancestor of that subject.
    class Equal

      include Punchout::Matcher

      def matches?(candidate)
        @subject == candidate
      end
    end
  end
end