Class: OllamaAgent::Security::OwnershipRuleTreeFlattener
- Inherits:
-
Object
- Object
- OllamaAgent::Security::OwnershipRuleTreeFlattener
- Defined in:
- lib/ollama_agent/security/ownership_rule_tree_flattener.rb
Overview
Walks the nested owners YAML rule tree into a flat list of rows for validation and indexing.
Instance Method Summary collapse
Instance Method Details
#flatten(rules) ⇒ Object
10 11 12 13 14 |
# File 'lib/ollama_agent/security/ownership_rule_tree_flattener.rb', line 10 def flatten(rules) flat = [] visit_rules(rules, parent: nil, flat: flat, ancestry_prefixes: []) flat end |