4 ms·
{ x }, depending on where you put it, could be a block that returns the value of x. 5.times { x } This could either call the given block 5 times, or pass a
by ljm 5y ago
{ x }, depending on where you put it, could be a block that returns the value of x.
5.times { x }
This could either call the given block 5 times, or pass a hash of :x => x as the first argument.
- soheil 5y agoAh thanks that answers my other question.