Sha256: 7fef303bae50d0f1ff5e42ba9e5e1854262f981d7fbe2b42e1a8f1f5c3a0f6dc
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
# -*- encoding: utf-8 -*- module Genit # Modify head link tags. class HeadLinkBuilder < Relativizer # 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 def build_for_page page_name build page_name, @document.css("head link") 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/head_link_builder.rb |
genit-2.0 | lib/genit/builders/head_link_builder.rb |