Class: SiteChecker::Parse::Page
- Inherits:
-
Object
- Object
- SiteChecker::Parse::Page
- Defined in:
- lib/site_checker/parse/page.rb
Class Method Summary collapse
Class Method Details
.parse(content, ignore_list, root) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/site_checker/parse/page.rb', line 4 def self.parse(content, ignore_list, root) links = [] page = Nokogiri(content) links.concat(get_links(page, ignore_list, root)) links.concat(get_images(page, ignore_list, root)) links.concat(get_anchors(page)) links.concat(local_pages_which_has_anchor_references(links, root)) links.uniq end |