Method: Longbow.json_object_from_url
- Defined in:
- lib/longbow/json.rb
.json_object_from_url(url) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/longbow/json.rb', line 25 def self.json_object_from_url url return nil unless url contents = '' open(url) {|io| contents = io.read} return json_object_from_string contents end |