Class: YARD::CodeObjects::Chef::Action

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

Overview

Simple class to handle actions

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#docstringObject

The name of the action



60
61
62
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60

def docstring
  @docstring
end

#identifierObject

The name of the action



60
61
62
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60

def identifier
  @identifier
end

#lineObject

The name of the action



60
61
62
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60

def line
  @line
end

#sourceObject

The name of the action



60
61
62
# File 'lib/yard-chefdoc/code_objects/resource.rb', line 60

def source
  @source
end