Class: Punchout::Matcher::Progeny

Inherits:
Punchout::Matcher show all
Defined in:
lib/punchout/matcher/progeny.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/progeny.rb', line 6

def conflicts?(matcher)

end

#matches?(candidate) ⇒ Boolean

Returns:

  • (Boolean)


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

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