Class: Requestor
- Inherits:
-
Object
- Object
- Requestor
- Defined in:
- lib/requestor.rb
Defined Under Namespace
Classes: RequireX
Class Method Summary collapse
Class Method Details
.read(url, debug: false) {|req| ... } ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/requestor.rb', line 33 def self.read(url, debug: false) req = RequireX.new(url.sub(/^(?!http|dfs)/,'http://'), debug) yield(req) req.code end |