diff --git a/lib/puppet_x/puppetlabs/strings/yard/handlers/host_class_handler.rb b/lib/puppet_x/puppetlabs/strings/yard/handlers/host_class_handler.rb index 0f7343b..4589203 100644 --- a/lib/puppet_x/puppetlabs/strings/yard/handlers/host_class_handler.rb +++ b/lib/puppet_x/puppetlabs/strings/yard/handlers/host_class_handler.rb @@ -21,7 +21,7 @@ class PuppetX::PuppetLabs::Strings::YARD::Handlers::HostClassHandler < PuppetX:: if Puppet::Pops::Types::TypeParser.instance_method(:interpret_any).arity == 2 param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_expr, nil) else - param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_exp) + param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_expr) end rescue Puppet::ParseError => e # If the type could not be interpreted insert a prominent warning