PuppetResource holds a puppet resource It is mapped to a HTMLPuppetResource for display A resource is defined by its "normal" form Type
# File lib/puppet/util/rdoc/code_objects.rb, line 254 def initialize(type, title, comment, params) super() @type = type @title = title @comment = comment @params = params end
# File lib/puppet/util/rdoc/code_objects.rb, line 262 def <=>(other) full_name <=> other.full_name end
# File lib/puppet/util/rdoc/code_objects.rb, line 266 def full_name @type + "[#{@title}]" end
# File lib/puppet/util/rdoc/code_objects.rb, line 270 def name full_name end
# File lib/puppet/util/rdoc/code_objects.rb, line 274 def to_s res = @type + "[#{@title}]\n" res << @comment.to_s res end