Class: Axe::Configuration

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Common::Hooks, Singleton
Defined in:
lib/axe/configuration.rb

Constant Summary

Constants included from Common::Hooks

Common::Hooks::HOOKS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common::Hooks

callbacks

Constructor Details

#initializeConfiguration

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

#jslibObject

jslib



35
36
37
# File 'lib/axe/configuration.rb', line 35

def jslib
  @jslib ||= Pathname.new(@jslib_path).read
end

#jslib_pathObject

Returns the value of attribute jslib_path.



15
16
17
# File 'lib/axe/configuration.rb', line 15

def jslib_path
  @jslib_path
end

#legacy_modeObject

Returns the value of attribute legacy_mode.



15
16
17
# File 'lib/axe/configuration.rb', line 15

def legacy_mode
  @legacy_mode
end

#pageObject

Returns the value of attribute page.



15
16
17
# File 'lib/axe/configuration.rb', line 15

def page
  @page
end

#skip_iframesObject

Returns the value of attribute skip_iframes.



15
16
17
# File 'lib/axe/configuration.rb', line 15

def skip_iframes
  @skip_iframes
end