[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

net/http question

Fabian Boucsein

3/29/2005 12:22:00 PM

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


1 Answer

Minero Aoki

3/29/2005 1:01:00 PM

0