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:
Charlie Sharpsteen 2014-06-19 16:32:28 -07:00
parent 918e3bc9cc
commit 752b5e9d0f
1 changed files with 1 additions and 1 deletions

View File

@ -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