Class: Axe::API::A11yCheck

Inherits:
Object
  • Object
show all
Extended by:
ChainMail::Chainable, Forwardable, Gem::Deprecate
Defined in:
lib/axe/api/a11y_check.rb

Constant Summary collapse

JS_NAME =
"run"
METHOD_NAME =
"#{Core::JS_NAME}.#{JS_NAME}"

Instance Method Summary collapse

Methods included from ChainMail::Chainable

chainable

Constructor Details

#initializeA11yCheck

Returns a new instance of A11yCheck.



36
37
38
39
# File 'lib/axe/api/a11y_check.rb', line 36

def initialize
  @context = Context.new
  @options = Options.new
end

Instance Method Details

#call(page) ⇒ Object



41
42
43
44
45
# File 'lib/axe/api/a11y_check.rb', line 41

def call(page)
  audit page do |results|
    Audit.new to_js, Results.new(results)
  end
end