Class Anemone::PageStore
In: lib/anemone/page_store.rb
Parent: Object

Methods

Public Class methods

Public Instance methods

We typically index the hash with a URI, but convert it to a String for easier retrieval

Does this PageStore contain the specified URL? HTTP and HTTPS versions of a URL are considered to be the same page.

If given a single URL (as a String or URI), returns an Array of Pages which link to that URL If given an Array of URLs, returns a Hash (URI => [Page, Page…]) of Pages linking to those URLs

Use a breadth-first search to calculate the single-source shortest paths from root to all pages in the PageStore

Removes all Pages from storage where redirect? is true

If given a single URL (as a String or URI), returns an Array of URLs which link to that URL If given an Array of URLs, returns a Hash (URI => [URI, URI…]) of URLs linking to those URLs

[Validate]