[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Passing info to classes and methods

seebs

5/9/2007 1:13:00 AM

In message <2007050818053316807-email@linkLINEcom>, Greg writes:
>I want to pass numToPick to pick_an_orange via 'tree.pick_an_orange
>user_input.to_i' but it's not happening.

Well, what does happen? Do you get nothing?

What happens if you just write "tree.pick_an_orange 5"?

-s