Class: OllamaAgent::Topology::Linker::Validate
- Inherits:
-
Object
- Object
- OllamaAgent::Topology::Linker::Validate
- Defined in:
- lib/ollama_agent/topology/linker/validate.rb
Overview
Post-link consistency: superclass reachability and include DAG cycles.
Constant Summary collapse
- STDLIB_SUPER =
%w[Object BasicObject].freeze
Instance Method Summary collapse
Instance Method Details
#call(aggregated:, linked:) ⇒ Object
10 11 12 13 14 |
# File 'lib/ollama_agent/topology/linker/validate.rb', line 10 def call(aggregated:, linked:) errors = orphan_superclasses(aggregated, linked) errors.concat(include_cycles(aggregated)) { valid: errors.empty?, errors: errors } end |