Register PuppetFunctions with handler method
Use the `register` method of YARD handler objects instead of calling `YARD::Registry.register` as the latter does not seem to work properly.
This commit is contained in:
parent
918e3bc9cc
commit
752b5e9d0f
|
@ -47,7 +47,7 @@ module Puppetx::Yardoc::YARD::Handlers
|
||||||
namespace_obj = PuppetNamespaceObject.new(:root, 'ParserFunctions')
|
namespace_obj = PuppetNamespaceObject.new(:root, 'ParserFunctions')
|
||||||
namespace_obj.add_tag YARD::Tags::Tag.new(:api, 'public')
|
namespace_obj.add_tag YARD::Tags::Tag.new(:api, 'public')
|
||||||
|
|
||||||
::YARD::Registry.register namespace_obj
|
register namespace_obj
|
||||||
end
|
end
|
||||||
|
|
||||||
obj
|
obj
|
||||||
|
|
Loading…
Reference in New Issue