Sha256: 4839c0ac9cbd1d7e9800e0483237bc5aeaca3bd415512c415c117dab2ba136db
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
# -*- encoding: utf-8 -*- module Genit # Modify script tags. class ScriptBuilder < Relativizer # Public: Relativize the <script src=""> 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("script") end private def update link super link, "src" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genit-2.1 | lib/genit/builders/script_builder.rb |
genit-2.0 | lib/genit/builders/script_builder.rb |