class YARD::CodeObjects::Chef::RecipeObject

Public Class Methods

new(namespace, name) click to toggle source

Creates a new instance of RecipeObject.

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

@return [RecipeObject] the newly created RecipeObject

# File lib/yard-chefdoc/code_objects/recipe.rb, line 15
def initialize(namespace, name)
  super(namespace, name)
end

Public Instance Methods

line() click to toggle source

Needed by the template to render recipe source code. Since we always display the full source we start with 1

@return [Integer] 1

# File lib/yard-chefdoc/code_objects/recipe.rb, line 24
def line
  1
end