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
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
On 4/26/06, Dawid Skomski <dskomski@gmail.com> 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