19 lines
541 B
Ruby
Raw Normal View History

2023-04-05 10:06:45 -07:00
# typed: true
# frozen_string_literal: true
def init
2023-04-05 10:06:45 -07:00
# `sorbet` is available transitively through the `yard-sorbet` plugin, but we're
# outside of the standalone sorbet config, so `checked` is enabled by default
2023-11-05 08:55:58 -08:00
T.bind(self, T.all(Class, YARD::Templates::Template), checked: false)
super
return if sections.empty?
sections[:index].place(:internal).before(:private)
end
def internal
2023-04-05 10:06:45 -07:00
T.bind(self, YARD::Templates::Template, checked: false)
erb(:internal) if object.has_tag?(:api) && object.tag(:api).text == "internal"
end