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-23 06:45:08 +00:00
|
|
|
module Puppetx::Yardoc::YARD::Handlers
|
|
|
|
class Base < YARD::Handlers::Base
|
|
|
|
include Puppet::Pops::Model # This allows handlers to match based on model classes.
|
|
|
|
|
|
|
|
def self.handles?(statement)
|
|
|
|
handlers.any? {|h| h == statement.type}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|