Class: UrlFinder::StringReader
- Inherits:
-
BaseReader
- Object
- BaseReader
- UrlFinder::StringReader
- Defined in:
- lib/url_finder/readers/string_reader.rb
Overview
Find URLs in strings
Instance Attribute Summary
Attributes inherited from BaseReader
Instance Method Summary collapse
-
#urls ⇒ Array<String>
Returns the found URLs.
Methods inherited from BaseReader
#each, #empty?, #initialize, #to_a, urls
Constructor Details
This class inherits a constructor from UrlFinder::BaseReader
Instance Method Details
#urls ⇒ Array<String>
Returns the found URLs
11 12 13 |
# File 'lib/url_finder/readers/string_reader.rb', line 11 def urls @urls ||= URI.extract(content) end |