Class: Axe::API::A11yCheck
- Inherits:
-
Object
- Object
- Axe::API::A11yCheck
- 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
- #call(page) ⇒ Object
-
#initialize ⇒ A11yCheck
constructor
A new instance of A11yCheck.
Methods included from ChainMail::Chainable
Constructor Details
#initialize ⇒ A11yCheck
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.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 |