Class: Govspeak::LinkExtractor
- Inherits:
-
Object
- Object
- Govspeak::LinkExtractor
- Defined in:
- lib/govspeak/link_extractor.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(document, website_root: nil) ⇒ LinkExtractor
constructor
A new instance of LinkExtractor.
Constructor Details
#initialize(document, website_root: nil) ⇒ LinkExtractor
Returns a new instance of LinkExtractor.
3 4 5 6 |
# File 'lib/govspeak/link_extractor.rb', line 3 def initialize(document, website_root: nil) @document = document @website_root = website_root end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/govspeak/link_extractor.rb', line 8 def call @call ||= extract_links end |