class Punchout::Matcher::Klass

Matches when the candidate's class matches the class of the subject of this matcher

Public Instance Methods

matches?(candidate) click to toggle source
# File lib/punchout/matcher/class.rb, line 11
def matches?(candidate)
  @subject == candidate.class
end