Sha256: 4c53b6bb54682bbcf8f510364d3d74754e4a31d8d9adf0df53c6f23dfa19076f
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 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-1.0.1 | lib/genit/builders/body_link_builder.rb |
genit-1.0 | lib/genit/builders/body_link_builder.rb |