URI:HTTP and read()

Hi All,

I’m new to ruby and running 1.8.7 on Mac OSX 10.6. From the Ruby docs
(http://rdoc.info/docs/ruby-stdlib/1.8.7/URI/HTTP) , I gather that
URI::HTTP should mixin OpenURI::OpenRead, yet when I call read on my URI
object, I get the error:

undefined method `read’ for #URI::HTTP:0x10171e1f0

Is there something I’m missing?

MacBookPro:~ jason$ ruby --version
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs