From 752b5e9d0f8ce18fe687b99f963ac766407f7cf9 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 19 Jun 2014 16:32:28 -0700 Subject: [PATCH] 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. --- lib/puppetx/yardoc/yard/handlers/parser_function_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppetx/yardoc/yard/handlers/parser_function_handler.rb b/lib/puppetx/yardoc/yard/handlers/parser_function_handler.rb index e53fda4..15e60af 100644 --- a/lib/puppetx/yardoc/yard/handlers/parser_function_handler.rb +++ b/lib/puppetx/yardoc/yard/handlers/parser_function_handler.rb @@ -47,7 +47,7 @@ module Puppetx::Yardoc::YARD::Handlers namespace_obj = PuppetNamespaceObject.new(:root, 'ParserFunctions') namespace_obj.add_tag YARD::Tags::Tag.new(:api, 'public') - ::YARD::Registry.register namespace_obj + register namespace_obj end obj