Class: Genit::BodyLinkBuilder
- Inherits:
-
Relativizer
- Object
- BuilderBase
- Relativizer
- Genit::BodyLinkBuilder
- Defined in:
- lib/genit/builders/body_link_builder.rb
Overview
Modify links.
Instance Method Summary collapse
-
#build_for_page(page_name) ⇒ Object
Public: Relativize links.
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: Relativize links.
page_name - The string filename of the page.
Returns the modified Nokogiri::XML::Document
13 14 15 |
# File 'lib/genit/builders/body_link_builder.rb', line 13 def build_for_page page_name build page_name, @document.css("body a") end |