class Genit::HeadLinkBuilder

Modify head link tags.

Public Instance Methods

build_for_page(page_name) click to toggle source

Public: Build the document head link tags of a particular page.

page_name - The string filename of the page.

Returns the modified Nokogiri::XML::Document

# File lib/genit/builders/head_link_builder.rb, line 12
def build_for_page page_name
  build page_name, @document.css("head link")
end

Private Instance Methods

update(link) click to toggle source
Calls superclass method
# File lib/genit/builders/head_link_builder.rb, line 18
def update link
  super link, "href"
end