From: Saji Jaooon on
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
Thanks to u all =D
i'll read a bit more about ruby to undersand everything
Hugs!

--
Posted via http://www.ruby-forum.com/.