Skip to content
Paul Bergeron edited this page May 2, 2013 · 2 revisions

Example, open a remote reasource, fail immediately if it fails:

require 'open-uri'
require 'rhod'

Rhod.with_default { open("http://google.com").read }