Class: OpenvoxStrings::Yard::Handlers::Puppet::Base

Inherits:
YARD::Handlers::Base
  • Object
show all
Defined in:
lib/openvox-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.



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

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