Class: OllamaAgent::Topology::Linker::Extract
- Inherits:
-
Object
- Object
- OllamaAgent::Topology::Linker::Extract
- Defined in:
- lib/ollama_agent/topology/linker/extract.rb
Overview
Runs RubySemanticExtractor across discovered files; captures parse diagnostics.
Instance Method Summary collapse
- #call(files:) ⇒ Object
-
#initialize(extractor:) ⇒ Extract
constructor
A new instance of Extract.
Constructor Details
#initialize(extractor:) ⇒ Extract
Returns a new instance of Extract.
8 9 10 |
# File 'lib/ollama_agent/topology/linker/extract.rb', line 8 def initialize(extractor:) @extractor = extractor end |
Instance Method Details
#call(files:) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/ollama_agent/topology/linker/extract.rb', line 12 def call(files:) by_file = {} errors = {} Array(files).each { |path| extract_one(path, by_file, errors) } { ir_by_file: by_file, parse_errors: errors } end |