Class: AncestorsTool

Inherits:
FastMcp::Tool
  • Object
show all
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



414
415
416
# File 'lib/yardmcp.rb', line 414

def call(path:)
  { content: YardUtils.instance.ancestors(path) }
end