OpenURI is an easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP. Example¶ ↑ It is possible to open an http, https or ftp URL as though it were a file: open("http://www.ruby-lang.org/") {|f| f.each_line {|line| p line} } The opened file has several getter methods for its meta-information, as follows, since it is extended by OpenURI::Meta. open("http://www.ruby-lang.org/en") {|f| f.each_lin