module Arachnid::Resource::HTML
Overview
TODO Create enumerable methods for the methods that take a block
Direct including types
Defined in:
arachnid/resource/html.crInstance Method Summary
-
#each(&block)
Enumerates over every URL in the resource.
- #each_image(&block : URI -> )
-
#each_link(&block : URI -> )
Enumerates over every link in the resource.
-
#each_mailto(&block)
Enumerates over every
mailto:
link in the resource. -
#each_meta_redirect(&block : URI -> )
Enumerates over the meta-redirect links in the resource.
-
#each_redirect(&block : URI -> )
Enumerates over every HTTP or meta-redirect link in the resource.
- #each_resource(&block : URI -> )
- #each_script(&block : URI -> )
-
#each_url(&block : URI -> )
Enumerates over every URL in the resource.
- #each_video(&block : URI -> )
-
#links
The links from within the resource.
-
#mailtos
mailto:
links in the resource. -
#meta_redirect?
Returns a boolean indicating whether or not resource-level meta redirects are present in this resource.
-
#meta_redirects
The meta-redirect links of the resource.
-
#redirects_to
URLs that this document redirects to.
-
#title
The title of the HTML resource.
-
#to_absolute(link)
Normalizes and expands a given link into a proper URI.
-
#urls
Absolute URIs from within the resource.
Instance Method Detail
Enumerates over the meta-redirect links in the resource.
Enumerates over every HTTP or meta-redirect link in the resource.
Returns a boolean indicating whether or not resource-level meta redirects are present in this resource.