2014-05-23 06:45:08 +00:00
|
|
|
require 'yard'
|
|
|
|
require 'puppet/pops'
|
|
|
|
|
2014-05-24 19:54:22 +00:00
|
|
|
require_relative '../../../yardoc'
|
2014-05-26 05:59:46 +00:00
|
|
|
require_relative '../code_objects'
|
2014-05-24 19:54:22 +00:00
|
|
|
|
2014-05-23 06:45:08 +00:00
|
|
|
module Puppetx::Yardoc::YARD::Handlers
|
|
|
|
class Base < YARD::Handlers::Base
|
2014-05-26 05:59:46 +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.
|
|
|
|
include Puppetx::Yardoc::YARD::CodeObjects
|
2014-05-23 06:45:08 +00:00
|
|
|
|
|
|
|
def self.handles?(statement)
|
|
|
|
handlers.any? {|h| h == statement.type}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|