Class: BuildGemDocsTool

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

Overview

Tool: Explicitly build YARD docs for an installed gem

Instance Method Summary collapse

Methods inherited from YardTool

returns

Instance Method Details

#call(gem_name:) ⇒ Object



846
847
848
849
850
851
# File 'lib/yardmcp.rb', line 846

def call(gem_name:)
  with_yard_errors do
    YardUtils.instance.build_docs(gem_name)
    ok({ gem_name:, indexed: true }, text: "Indexed #{gem_name}")
  end
end