From 94e4efa6fae02dc5062a7fb5953dae6b63203100 Mon Sep 17 00:00:00 2001 From: Hailee Kenney Date: Tue, 29 Mar 2016 11:36:21 -0700 Subject: [PATCH] (maint) Fix 'type_expr' typo Fix a typo where we were calling 'pop_param.type_exp' when we meant to call 'pop_param.type_expr'. --- .../puppetlabs/strings/yard/handlers/host_class_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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