Class: YARD::CodeObjects::Chef::Action
- Inherits:
-
Object
- Object
- YARD::CodeObjects::Chef::Action
- Defined in:
- lib/yard-chefdoc/code_objects/resource.rb
Overview
Simple class to handle actions
Instance Attribute Summary collapse
-
#docstring ⇒ Object
The name of the action.
-
#identifier ⇒ Object
The name of the action.
-
#line ⇒ Object
The name of the action.
-
#source ⇒ Object
The name of the action.
Instance Method Summary collapse
-
#initialize(h) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(h) ⇒ Action
Returns a new instance of Action.
65 66 67 |
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 65 def initialize(h) h.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#docstring ⇒ Object
The name of the action
60 61 62 |
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60 def docstring @docstring end |
#identifier ⇒ Object
The name of the action
60 61 62 |
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60 def identifier @identifier end |
#line ⇒ Object
The name of the action
60 61 62 |
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60 def line @line end |
#source ⇒ Object
The name of the action
60 61 62 |
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60 def source @source end |