Ruby/Failo nuskaitymas iš interneto

Iš Wikibooks.
Jump to navigation Jump to search
require 'open-uri'
path = 'http://www.example-page.com/example-path/'
open(path, 'rb') { |file|
    puts file.read
end