From: 13 Date: 2006-04-26T16:45:33+09:00 Subject: Re: x.times dont work Hi, And how about this ? irb(main):005:0> 3.times { puts("Hello!") } Hello! Hello! Hello! => 3 -- Martins On 4/26/06, Dawid Skomski wrote: > Hi > > In irb i wrote 3.time(puts "dsds") and it doesn't work why? > Here i pasted log: > > irb(main):027:0> 3.times(puts "Hello!") > (irb):27: warning: parenthesize argument(s) for future version > Hello! > ArgumentError: wrong number of arguments (1 for 0) > from (irb):27:in `times' > from (irb):27 > > -- > Posted via http://www.ruby-forum.com/. > >