Question on OpenURI

Hello,

For the following piece of code:

#! /usr/bin/ruby

require ‘open-uri’
require ‘rexml/document’
require ‘rexml/xpath’

doc1 = open(“Cricinfo Live Scores”)
puts doc1.class

doc2 =
open(“http://ws.audioscrobbler.com/1.0/artist/Autechre/toptags.xml”)
puts doc2.class

I get the following output:

moonwolf@trantor:~/ruby/lastfm$ ./scrape.rb
StringIO
Tempfile

The question I have is why openuri treats two similar entities as two
different classes?

Thank you,

Jayanth

On May 26, 2008, at 11:38 PM, Srijayanth S. wrote:

moonwolf@trantor:~/ruby/lastfm$ ./scrape.rb
StringIO
Tempfile

The question I have is why openuri treats two similar entities as two
different classes?

How big is the second one?

The question I have is why openuri treats two similar entities as two
different classes?

How big is the second one?

Large.

Thanks. That was it.

Jayanth