2016-08-23 19:55:40 +00:00
|
|
|
require 'puppet_x/puppet/strings/yard/core_ext/yard'
|
2015-02-27 00:03:21 +00:00
|
|
|
|
2016-08-23 19:55:40 +00:00
|
|
|
class PuppetX::Puppet::Strings::YARD::Handlers::Base < ::YARD::Handlers::Base
|
2014-09-29 22:49:05 +00:00
|
|
|
# Easy access to Pops model objects for handler matching.
|
|
|
|
include Puppet::Pops::Model
|
|
|
|
# Easy access to custom code objects from which documentation is generated.
|
2016-08-23 19:55:40 +00:00
|
|
|
include PuppetX::Puppet::Strings::YARD::CodeObjects
|
2014-05-23 06:45:08 +00:00
|
|
|
|
2014-09-29 22:49:05 +00:00
|
|
|
def self.handles?(statement)
|
|
|
|
handlers.any? {|h| h == statement.type}
|
2014-05-23 06:45:08 +00:00
|
|
|
end
|
2014-09-29 22:49:05 +00:00
|
|
|
|
2014-05-23 06:45:08 +00:00
|
|
|
end
|