method

links

rails latest stable - Class: RecursiveHTTPFetcher

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

links(base_url, contents)
public

No documentation available.

# 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