From: stackoverflow.com/questions/7578898/is-there-a-unified-way-to-get-content-at-a-file-or-http-uri-scheme-in-ruby
Classes: File