(PDOC-35) Dispatch handlers in correct order

Subclasses have their superclass as part of their namespace and objects in the
subclass's namespace must be registered first.
Reverse the list of parsed objects so
that the classes will be handled and registered in the correct order.
This commit is contained in:
Ian Kronquist 2015-07-21 15:15:30 -07:00
parent bd319f3c82
commit 4dc6bc429a
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class PuppetX::PuppetLabs::Strings::YARD::PuppetParser < YARD::Parser::Base
statements = @transformer.transform(@parse_result)
# Ensure an array is returned and prune any nil values.
Array(statements).compact
Array(statements).compact.reverse
end
end