El mar, 06 de ene de 2009, a las 05:20:38 -0200, Luis Lavena dijo: > 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 > > > > :)
Sí así comenzamos el año no quiero pensar como vamos a terminar manga de NERDS. Saludos a todos. > > > > Ah, es que me falto el require, por eso no lo vi. > > Gracias. > -- "I always thought Smalltalk would beat Java, I just didn't know it would be called 'Ruby' when it did." (Kent Beck) +-------------------------------------+ Gastón Ramos http://gastonramos.wordpress.com/ GNU/Linux Counter user #450312 _______________________________________________ Ruby mailing list [email protected] http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
