Class: PuppetStrings::Yard::Handlers::Puppet::Base
- Inherits:
-
YARD::Handlers::Base
- Object
- YARD::Handlers::Base
- PuppetStrings::Yard::Handlers::Puppet::Base
- Defined in:
- lib/puppet-strings/yard/handlers/puppet/base.rb
Overview
Implements the base handler for Puppet language handlers.
Direct Known Subclasses
ClassHandler, DataTypeAliasHandler, DefinedTypeHandler, FunctionHandler, PlanHandler
Class Method Summary collapse
-
.handles?(statement) ⇒ Boolean
Determine sif the handler handles the given statement.
Class Method Details
.handles?(statement) ⇒ Boolean
Determine sif the handler handles the given statement.
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 |