Class: Govspeak::LinkExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/govspeak/link_extractor.rb

Instance Method Summary collapse

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

#callObject



8
9
10
# File 'lib/govspeak/link_extractor.rb', line 8

def call
  @call ||= extract_links
end