Module: Nfler::Page
- Defined in:
- lib/nfler/page.rb
Overview
NFLer::Page gets the body of an HTML/XML URI
Class Method Summary collapse
-
.get(uri) ⇒ String?
Gets the body of an HTML/XML URI.
Class Method Details
.get(uri) ⇒ String?
Gets the body of an HTML/XML URI
13 14 15 16 |
# File 'lib/nfler/page.rb', line 13 def get(uri) file = OpenURI.open_uri(uri) rescue nil file.read if file end |