diff --git a/lib/puppet_x/puppetlabs/strings/yard/parser.rb b/lib/puppet_x/puppetlabs/strings/yard/parser.rb index 7237425..630846d 100644 --- a/lib/puppet_x/puppetlabs/strings/yard/parser.rb +++ b/lib/puppet_x/puppetlabs/strings/yard/parser.rb @@ -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