Class: AncestorsTool
- Inherits:
-
FastMcp::Tool
- Object
- FastMcp::Tool
- AncestorsTool
- Defined in:
- lib/yardmcp.rb
Overview
Tool: Fetch the full ancestor chain (superclasses and included modules) for a class/module in YARD
Instance Method Summary collapse
Instance Method Details
#call(path:) ⇒ Object
449 450 451 452 |
# File 'lib/yardmcp.rb', line 449 def call(path:) ancestors = YardUtils.instance.ancestors(path) { content: ancestors.map { |ancestor| { text: ancestor, type: 'ancestor' } } } end |