Class: YARD::CodeObjects::Chef::Attribute

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

Overview

Simple class to handle Attributes and their specifics

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultObject

The default value



33
34
35
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33

def default
  @default
end

#docstringObject

The default value



33
34
35
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33

def docstring
  @docstring
end

#pathObject

The default value



33
34
35
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33

def path
  @path
end

#precedenceObject

The default value



33
34
35
# File 'lib/yard-chefdoc/code_objects/attribute.rb', line 33

def precedence
  @precedence
end