Class: Genit::HeadLinkBuilder
- Inherits:
-
Relativizer
- Object
- BuilderBase
- Relativizer
- Genit::HeadLinkBuilder
- Defined in:
- lib/genit/builders/head_link_builder.rb
Overview
Modify head link tags.
Instance Method Summary collapse
-
#build_for_page(page_name) ⇒ Object
Public: Build the document head link tags of a particular page.
Methods inherited from Relativizer
Methods inherited from BuilderBase
#build, get_number_of_base_dirs, #initialize
Constructor Details
This class inherits a constructor from Genit::BuilderBase
Instance Method Details
#build_for_page(page_name) ⇒ Object
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
13 14 15 |
# File 'lib/genit/builders/head_link_builder.rb', line 13 def build_for_page page_name build page_name, @document.css("head link") end |