diff --git a/lib/puppet_x/puppetlabs/strings/yard/tags/directives.rb b/lib/puppet_x/puppetlabs/strings/yard/tags/directives.rb index dcb60e0..0b94793 100644 --- a/lib/puppet_x/puppetlabs/strings/yard/tags/directives.rb +++ b/lib/puppet_x/puppetlabs/strings/yard/tags/directives.rb @@ -3,7 +3,7 @@ require 'puppet_x/puppetlabs/strings/yard/core_ext/yard' class PuppetX::PuppetLabs::Strings::YARD::Tags::PuppetTypeParameterDirective < YARD::Tags::Directive def call return if object.nil? - object.parameters << ([tag.text] + tag.types) + object.parameters << ([tag.text, tag.types].flatten) object.parameter_details << {:name => tag.name, :desc => tag.text, :exists? => true, :puppet_type => true} end end