Class: PuppetStrings::Yard::Handlers::JSON::Base

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

Overview

Implements the base class for all JSON handlers.

Direct Known Subclasses

TaskHandler

Class Method Summary collapse

Class Method Details

.handles?(statement) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/puppet-strings/yard/handlers/json/base.rb', line 5

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