Class: PuppetX::PuppetLabs::Strings::YARD::Handlers::PuppetProviderHandler

Inherits:
YARD::Handlers::Ruby::Base
  • Object
show all
Includes:
CodeObjects
Defined in:
lib/puppet_x/puppetlabs/strings/yard/handlers/provider_handler.rb

Overview

Handles ‘dispatch` calls within a future parser function declaration. For now, it just treats any docstring as an `@overlaod` tag and attaches the overload to the parent function.

Instance Method Summary collapse

Instance Method Details

#is_a_func_call_named?(name, node) ⇒ Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/puppet_x/puppetlabs/strings/yard/handlers/provider_handler.rb', line 92

def is_a_func_call_named?(name, node)
  (node.type == :fcall || node.type == :command || node.type == :vcall) && node.children.first.source == name
end