Sha256: 43ec6b8cb6c0ac9b1f3a590db026682548c356d63d928dc789c3084c9df5fa1e
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
# -*- encoding: utf-8 -*- module Genit # Modify links. class BodyLinkBuilder < Relativizer # Public: Relativize links. # # page_name - The string filename of the page. # # Returns the modified Nokogiri::XML::Document def build_for_page page_name build page_name, @document.css("body a") end private def update link super link, "href" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genit-2.1 | lib/genit/builders/body_link_builder.rb |
genit-2.0 | lib/genit/builders/body_link_builder.rb |