Module: Evilution::MCP::InfoTool::ConfigFactory
- Defined in:
- lib/evilution/mcp/info_tool/config_factory.rb
Class Method Summary collapse
- .subjects(files:, line_ranges:, target:, integration:, skip_config:) ⇒ Object
- .tests(files:, spec:, integration:, skip_config:) ⇒ Object
Class Method Details
.subjects(files:, line_ranges:, target:, integration:, skip_config:) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/evilution/mcp/info_tool/config_factory.rb', line 9 def subjects(files:, line_ranges:, target:, integration:, skip_config:) opts = { target_files: files, line_ranges: line_ranges || {} } opts[:skip_config_file] = true if skip_config opts[:target] = target if target opts[:integration] = integration if integration Evilution::Config.new(**opts) end |
.tests(files:, spec:, integration:, skip_config:) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/evilution/mcp/info_tool/config_factory.rb', line 17 def tests(files:, spec:, integration:, skip_config:) opts = { target_files: files } opts[:skip_config_file] = true if skip_config opts[:spec_files] = spec if spec opts[:integration] = integration if integration Evilution::Config.new(**opts) end |