class YARD::CodeObjects::Chef::DependencyObject

A DependencyObject represents a dependencies of a chef cookbook.

Public Class Methods

new(namespace, name) click to toggle source

Creates a new instance of DependencyObject.

@param namespace [NamespaceObject] namespace to which the recipe belongs @param name [String] name of the recipe

@return [DependencyObject] the newly created DependencyObject

# File lib/yard-chef/code_objects/dependency_object.rb, line 38
def initialize(namespace, name)
  super(namespace, name)
  @docstring = ''
end

Public Instance Methods

name() click to toggle source

Prefixes dependency name with the name of the cookbook.

@return [String] recipe name

# File lib/yard-chef/code_objects/dependency_object.rb, line 47
def name
  @name.to_s
end