Class: HierarchyTool

Inherits:
YardTool
  • Object
show all
Defined in:
lib/yardmcp.rb

Overview

Tool: Return inheritance and inclusion info

Instance Method Summary collapse

Methods inherited from YardTool

returns

Instance Method Details

#call(path:, gem_name: nil) ⇒ Object



736
737
738
739
740
741
# File 'lib/yardmcp.rb', line 736

def call(path:, gem_name: nil)
  with_yard_errors do
    hierarchy = YardUtils.instance.hierarchy(path, gem_name)
    ok({ path:, gem_name:, resource_uris: resource_uris(gem_name, path), hierarchy: })
  end
end