# File lib/structures.rb, line 136 136: def rewrite_relative_links(text, url) 137: if host = url_host(url) 138: text.to_s.gsub(/(href|src)=('|")\//, '\1=\2http://' + host + '/') 139: else 140: text 141: end 142: end
# File lib/structures.rb, line 145 145: def url_host(url) 146: URI.parse(url).host rescue nil 147: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.