diff --git a/lib/puppetx/yardoc/yard/code_objects/defined_type_object.rb b/lib/puppetx/yardoc/yard/code_objects/defined_type_object.rb index 00d2a7f..8be8817 100644 --- a/lib/puppetx/yardoc/yard/code_objects/defined_type_object.rb +++ b/lib/puppetx/yardoc/yard/code_objects/defined_type_object.rb @@ -9,6 +9,12 @@ module Puppetx::Yardoc::YARD::CodeObjects # @return [Array] attr_accessor :parameters + # NOTE: `YARD::Registry#resolve` requires a method with this signature to + # be present on all subclasses of `NamespaceObject`. + def inheritance_tree(include_mods = false) + [self] + end + # FIXME: We used to override `self.new` to ensure no YARD proxies were # created for namespaces segments that did not map to a host class or # defined type. Fighting the system in this way turned out to be