Class: Axe::Matchers::BeAxeClean

Inherits:
Object
  • Object
show all
Extended by:
ChainMail::Chainable, Forwardable
Defined in:
lib/axe/matchers/be_axe_clean.rb

Instance Method Summary collapse

Methods included from ChainMail::Chainable

chainable

Constructor Details

#initializeBeAxeClean

Returns a new instance of BeAxeClean.



17
18
19
# File 'lib/axe/matchers/be_axe_clean.rb', line 17

def initialize
  @run = API::Run.new
end

Instance Method Details

#audit(page) ⇒ Object



21
22
23
# File 'lib/axe/matchers/be_axe_clean.rb', line 21

def audit(page)
  @audit ||= Core.new(page).call @run
end

#matches?(page) ⇒ Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/axe/matchers/be_axe_clean.rb', line 25

def matches?(page)
  audit(page).passed?
end