Class: Punchout::Matcher::Equal

Inherits:
Object
  • Object
show all
Includes:
Punchout::Matcher
Defined in:
lib/punchout/matcher/equal.rb

Overview

Matches when the candidate matches the subject of this matcher, or any ancestor of that subject.

Instance Method Summary collapse

Methods included from Punchout::Matcher

#conflicts?, #initialize, #punches

Instance Method Details

#matches?(candidate) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/punchout/matcher/equal.rb', line 11

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