class PuppetX::PuppetLabs::Strings::YARD::Handlers::PuppetProviderHandler

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.

Public Instance Methods

is_a_func_call_named?(name, node) click to toggle source
# 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