Class: Axe::Configuration
- Inherits:
-
Object
- Object
- Axe::Configuration
- Extended by:
- Forwardable
- Includes:
- Common::Hooks, Singleton
- Defined in:
- lib/axe/configuration.rb
Constant Summary
Constants included from Common::Hooks
Instance Attribute Summary collapse
-
#jslib ⇒ Object
jslib.
-
#jslib_path ⇒ Object
Returns the value of attribute jslib_path.
-
#legacy_mode ⇒ Object
Returns the value of attribute legacy_mode.
-
#page ⇒ Object
Returns the value of attribute page.
-
#skip_iframes ⇒ Object
Returns the value of attribute skip_iframes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
init.
Methods included from Common::Hooks
Constructor Details
#initialize ⇒ Configuration
init
28 29 30 31 32 |
# File 'lib/axe/configuration.rb', line 28 def initialize @page = :page @skip_iframes = nil @jslib_path = get_root + "/node_modules/axe-core/axe.min.js" end |
Instance Attribute Details
#jslib ⇒ Object
jslib
35 36 37 |
# File 'lib/axe/configuration.rb', line 35 def jslib @jslib ||= Pathname.new(@jslib_path).read end |
#jslib_path ⇒ Object
Returns the value of attribute jslib_path.
15 16 17 |
# File 'lib/axe/configuration.rb', line 15 def jslib_path @jslib_path end |
#legacy_mode ⇒ Object
Returns the value of attribute legacy_mode.
15 16 17 |
# File 'lib/axe/configuration.rb', line 15 def legacy_mode @legacy_mode end |
#page ⇒ Object
Returns the value of attribute page.
15 16 17 |
# File 'lib/axe/configuration.rb', line 15 def page @page end |
#skip_iframes ⇒ Object
Returns the value of attribute skip_iframes.
15 16 17 |
# File 'lib/axe/configuration.rb', line 15 def skip_iframes @skip_iframes end |