2015-02-27 00:03:21 +00:00
|
|
|
require 'puppet_x/puppetlabs/strings/yard/core_ext/yard'
|
|
|
|
|
2015-02-03 23:06:30 +00:00
|
|
|
class PuppetX::PuppetLabs::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.
|
2015-02-03 23:06:30 +00:00
|
|
|
include PuppetX::PuppetLabs::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
|