Class: YARD::CodeObjects::Chef::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/yard-chefdoc/code_objects/resource.rb

Overview

Simple class to handle Properties and their specifics Full docs here www.rubydoc.info/gems/chef/Chef%2FMixin%2FProperties%2FClassMethods:property

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ Property

Returns a new instance of Property.



53
54
55
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 53

def initialize(h)
  h.each { |k, v| instance_variable_set("@#{k}", v) }
end

Instance Attribute Details

#docstringObject

The name of the property



48
49
50
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 48

def docstring
  @docstring
end

#identifierObject

The name of the property



48
49
50
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 48

def identifier
  @identifier
end

#optionsObject

The name of the property



48
49
50
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 48

def options
  @options
end

#typeObject

The name of the property



48
49
50
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 48

def type
  @type
end