Class: Punchout::Matcher::Klass

Inherits:
Punchout::Matcher show all
Defined in:
lib/punchout/matcher/class.rb

Instance Method Summary collapse

Methods inherited from Punchout::Matcher

#initialize, #punches

Constructor Details

This class inherits a constructor from Punchout::Matcher

Instance Method Details

#conflicts?(matcher) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/punchout/matcher/class.rb', line 6

def conflicts?(matcher)
  false
end

#matches?(candidate) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/punchout/matcher/class.rb', line 10

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