From: Saji Jaooon on 29 Dec 2009 21:15 Eduardo Rocha wrote: > Thanks for the help =D > And i'll try to understand how this works... couse i'm a beginner in > ruby! hehehe > Bye! >> def to_s >> [ >> "Lista Telefonica", >> "Numero de Contatos: #{@qtContatos}", >> @persons.map { |pessoa| >> pessoa.to_s >> } >> ].join("\n") >> end class x def y(@y1,@y2) end def to_s @y1 @y2 end end -- Posted via http://www.ruby-forum.com/.
From: Eduardo Rocha on 30 Dec 2009 13:45 Thanks to u all =D i'll read a bit more about ruby to undersand everything Hugs! -- Posted via http://www.ruby-forum.com/.
First
|
Prev
|
Pages: 1 2 Prev: SoLVED Re: rest-client headers or cookies Next: log4r unpack problems |