We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cd8c07 commit 53507c6Copy full SHA for 53507c6
lib/puppet-strings/yard/handlers/ruby/type_extras_handler.rb
@@ -32,7 +32,7 @@ class PuppetStrings::Yard::Handlers::Ruby::TypeExtrasHandler < PuppetStrings::Ya
32
33
return unless (statement.count > 1) && (statement[0].children.count > 2)
34
module_name = statement[0].children[0].source
35
- method1_name = statement[0].children[1].source
+ method1_name = statement[0].children.drop(1).find{ |c| c.type == :ident }.source
36
return unless (module_name == 'Puppet::Type' || module_name == 'Type') && method1_name == 'type'
37
38
typename = get_name(statement[0], 'Puppet::Type.type')
0 commit comments