method
links
Ruby on Rails latest stable (v6.1.7.7)
-
0 notes -
Class: RecursiveHTTPFetcher
links(base_url, contents)
public
Hide source
# File railties/lib/rails/commands/plugin.rb, line 506 def links(base_url, contents) links = [] contents.scan(/href\s*=\s*\"*[^\">]*/) do |link| link = link.sub(/href="/, "") next if link =~ /svnindex.xsl$/ next if link =~ /^(\w*:|)\/\// || link =~ /^\./ links << File.join(base_url, link) end links end