def content
      case resource_name(resource)
      when :template
        content_from_template(chef_run, resource)
      when :file
        content_from_file(chef_run, resource)
      when :cookbook_file
        content_from_cookbook_file(chef_run, resource)
      else
        nil
      end
    end
def content
      case resource_name(resource)
      when :template
        content_from_template(chef_run, resource)
      when :file
        content_from_file(chef_run, resource)
      when :cookbook_file
        content_from_cookbook_file(chef_run, resource)
      else
        nil
      end
    end
Create a new Renderer for the given Chef run and resource.

 @param [Chef::Runner] chef_run
   the Chef run containing the resources
 @param [Chef::Resource] resource
   the resource to render content from


 The content of the resource (this method delegates to the)
 various private rendering methods.

 @return [String, nil]
   the contents of the file as a string, or nil if the resource
   does not contain or respond to a content renderer.