Class: Accessibility::AbstractMatcher Abstract
- Inherits:
-
Object
- Object
- Accessibility::AbstractMatcher
- Defined in:
- lib/rspec/expectations/ax_elements.rb
Overview
This class is abstract.
Base class for RSpec matchers used with AXElements.
Direct Known Subclasses
HasChildMatcher, HasChildShortlyMatcher, HasDescendentMatcher, HasDescendentShortlyMatcher
Instance Attribute Summary collapse
- #block ⇒ Proc readonly
- #filters ⇒ Hash{Symbol=>Object} readonly
- #kind ⇒ #to_s readonly
Instance Method Summary collapse
- #does_not_match?(element) ⇒ Boolean
-
#initialize(kind, filters) { ... } ⇒ AbstractMatcher
constructor
A new instance of AbstractMatcher.
Constructor Details
#initialize(kind, filters) { ... } ⇒ AbstractMatcher
Returns a new instance of AbstractMatcher.
25 26 27 |
# File 'lib/rspec/expectations/ax_elements.rb', line 25 def initialize kind, filters, &block @kind, @filters, @block = kind, filters, block end |
Instance Attribute Details
#block ⇒ Proc (readonly)
20 21 22 |
# File 'lib/rspec/expectations/ax_elements.rb', line 20 def block @block end |
#filters ⇒ Hash{Symbol=>Object} (readonly)
17 18 19 |
# File 'lib/rspec/expectations/ax_elements.rb', line 17 def filters @filters end |
#kind ⇒ #to_s (readonly)
14 15 16 |
# File 'lib/rspec/expectations/ax_elements.rb', line 14 def kind @kind end |
Instance Method Details
#does_not_match?(element) ⇒ Boolean
30 31 32 |
# File 'lib/rspec/expectations/ax_elements.rb', line 30 def does_not_match? element !matches?(element) end |