Class: Sublayer::Agents::A11yAgent

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

Instance Method Summary collapse

Constructor Details

#initialize(file:) ⇒ A11yAgent

Returns a new instance of A11yAgent.



29
30
31
32
33
34
35
36
# File 'lib/agents/a11y_agent.rb', line 29

def initialize(file:)
  @accessibility_issues = []
  @issue_types = []
  @file = file
  @file_contents = File.read(@file)
  @source_code = @file_contents
  @prompt = TTY::Prompt.new
end