2009/1/6 Emmanuel Oga <[email protected]>:
> On Tue, Jan 6, 2009 at 7:08 PM, Luis Lavena <[email protected]> wrote:
>>
>> 2009/1/6 Robert Bellorin <[email protected]>:
>> > FelizAmio.times 1000
>> >
>>
>> 1_000.times { puts "Feliz Año!" }
>>
>> Asi?
>
> Bah, yo lo entendi. Le falto la implementacion nomas:
>
> class FelizAmio
>   def self.times(n)
>     n.times { puts "Feliz año!" }
>   end
> end
>
> FelizAmio.times 1000
>
> :)
>

Ah, es que me falto el require, por eso no lo vi.

Gracias.

-- 
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a