Class: YARD::CodeObjects::Chef::DependencyObject
- Inherits:
-
ChefObject
- Object
- YARD::CodeObjects::ClassObject
- ChefObject
- YARD::CodeObjects::Chef::DependencyObject
- Defined in:
- lib/yard-chef/code_objects/dependency_object.rb
Overview
A DependencyObject represents a dependencies of a chef cookbook.
Instance Attribute Summary
Attributes inherited from ChefObject
Instance Method Summary collapse
-
#initialize(namespace, name) ⇒ DependencyObject
constructor
Creates a new instance of DependencyObject.
-
#name ⇒ String
Prefixes dependency name with the name of the cookbook.
Methods inherited from ChefObject
#children_by_type, #cookbooks, register, register_element
Constructor Details
#initialize(namespace, name) ⇒ DependencyObject
Creates a new instance of DependencyObject.
38 39 40 41 |
# File 'lib/yard-chef/code_objects/dependency_object.rb', line 38 def initialize(namespace, name) super(namespace, name) @docstring = '' end |
Instance Method Details
#name ⇒ String
Prefixes dependency name with the name of the cookbook.
47 48 49 |
# File 'lib/yard-chef/code_objects/dependency_object.rb', line 47 def name @name.to_s end |