Class: Aidp::ToolingDetector::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/aidp/tooling_detector.rb

Overview

Enhanced result with framework information

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#formatter_commandsObject

Returns the value of attribute formatter_commands

Returns:

  • (Object)

    the current value of formatter_commands



30
31
32
# File 'lib/aidp/tooling_detector.rb', line 30

def formatter_commands
  @formatter_commands
end

#frameworksObject

Returns the value of attribute frameworks

Returns:

  • (Object)

    the current value of frameworks



30
31
32
# File 'lib/aidp/tooling_detector.rb', line 30

def frameworks
  @frameworks
end

#lint_commandsObject

Returns the value of attribute lint_commands

Returns:

  • (Object)

    the current value of lint_commands



30
31
32
# File 'lib/aidp/tooling_detector.rb', line 30

def lint_commands
  @lint_commands
end

#test_commandsObject

Returns the value of attribute test_commands

Returns:

  • (Object)

    the current value of test_commands



30
31
32
# File 'lib/aidp/tooling_detector.rb', line 30

def test_commands
  @test_commands
end

Instance Method Details

#framework_for_command(command) ⇒ Object

Get the framework for a specific command



38
39
40
# File 'lib/aidp/tooling_detector.rb', line 38

def framework_for_command(command)
  test_command_frameworks[command] || :unknown
end

#test_command_frameworksObject

Get test commands with their detected framework



33
34
35
# File 'lib/aidp/tooling_detector.rb', line 33

def test_command_frameworks
  @test_command_frameworks ||= {}
end