class DocumentingLWRPBase

Constants

NOT_PASSED

Public Class Methods

attribute(attr_name, validation_opts={}) click to toggle source
Calls superclass method
# File lib/knife_cookbook_doc/documenting_lwrp_base.rb, line 25
def self.attribute(attr_name, validation_opts={})
  result = super(attr_name, validation_opts)
  attribute_specifications[attr_name] = validation_opts
  result
end
attribute_specifications() click to toggle source
# File lib/knife_cookbook_doc/documenting_lwrp_base.rb, line 6
def attribute_specifications
  @attribute_specifications ||= {}
end
desc(description) click to toggle source
# File lib/knife_cookbook_doc/documenting_lwrp_base.rb, line 10
def desc(description)
  @description = "#{@description}#{description}\n"
end
description() click to toggle source
# File lib/knife_cookbook_doc/documenting_lwrp_base.rb, line 14
def description
  @description || ""
end
property(name, type = NOT_PASSED, **options) click to toggle source
Calls superclass method
# File lib/knife_cookbook_doc/documenting_lwrp_base.rb, line 19
def property(name, type = NOT_PASSED, **options)
  attribute_specifications[name] = options
  super(name, type, **options) if defined?(super)
end