Class: Sublayer::Agents::A11yAgent

Inherits:
Base
  • Object
show all
Defined in:
lib/a11y_agent.rb

Instance Method Summary collapse

Constructor Details

#initialize(file:) ⇒ A11yAgent

Returns a new instance of A11yAgent.



28
29
30
31
32
33
# File 'lib/a11y_agent.rb', line 28

def initialize(file:)
  @accessibility_issues = []
  @issue_types = []
  @file = file
  @file_contents = File.read(@file)
end