Method: Jazzy::DocIndex::Scope#lookup_path
- Defined in:
- lib/jazzy/doc_index.rb
#lookup_path(parts) ⇒ Object
Get an array of scopes matching the name parts.
74 75 76 77 |
# File 'lib/jazzy/doc_index.rb', line 74 def lookup_path(parts) [self] + (children[parts.first]&.lookup_path(parts[1...]) || []) end |