Hello Ruby users,

i got the following question for you:

The following function:

def ret
  return [0, 1]
end

returns an array with two elements.
If i use this function like this:

ar = ret

the variable ar contains the array.
If i use the get method from the
net/http module like this:

h = Net::HTTP.get("/index.html", nil)

the h variable just contains the Request
object and not like documented the array.
Which is  given back when using irb. I can
see it there.
Is it possible to store the array given back
by the net/http get method?

---
  Fabian Boucsein