Class: PuppetStrings::Yard::Handlers::Puppet::Base

Inherits:
YARD::Handlers::Base
  • Object
show all
Defined in:
lib/puppet-strings/yard/handlers/puppet/base.rb

Overview

Implements the base handler for Puppet language handlers.

Class Method Summary collapse

Class Method Details

.handles?(statement) ⇒ Boolean

Determine sif the handler handles the given statement.

Parameters:

  • statement

    The statement that was parsed.

Returns:

  • (Boolean)

    Returns true if the statement is handled by this handler or false if not.



8
9
10
# File 'lib/puppet-strings/yard/handlers/puppet/base.rb', line 8

def self.handles?(statement)
  handlers.any? { |handler| statement.is_a?(handler) }
end