Class: YARD::CodeObjects::Chef::Attribute
- Inherits:
-
Object
- Object
- YARD::CodeObjects::Chef::Attribute
- Defined in:
- lib/yard-chefdoc/code_objects/attribute.rb
Overview
Simple class to handle Attributes and their specifics
Instance Attribute Summary collapse
-
#default ⇒ Object
The default value.
-
#docstring ⇒ Object
The default value.
-
#path ⇒ Object
The default value.
-
#precedence ⇒ Object
The default value.
Instance Method Summary collapse
-
#initialize(h) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(h) ⇒ Attribute
Returns a new instance of Attribute.
38 39 40 |
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 38 def initialize(h) h.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#default ⇒ Object
The default value
33 34 35 |
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33 def default @default end |
#docstring ⇒ Object
The default value
33 34 35 |
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33 def docstring @docstring end |
#path ⇒ Object
The default value
33 34 35 |
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33 def path @path end |
#precedence ⇒ Object
The default value
33 34 35 |
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33 def precedence @precedence end |