class HTML::Pipeline::HttpsFilter
HTML
Filter
for replacing http github urls with https versions.
Public Instance Methods
call()
click to toggle source
# File lib/html/pipeline/https_filter.rb, line 5 def call doc.css('a[href^="http://github.com"]').each do |element| element['href'] = element['href'].sub(/^http:/,'https:') end doc end