about ruby range?

Posted by why_ on Stack Overflow See other posts from Stack Overflow or by why_
Published on 2010-04-06T09:01:58Z Indexed on 2010/04/06 9:03 UTC
Read the original article Hit count: 306

Filed under:
|
|
|
like this

range = (0..10)

how can I get number like this:

0 5 10 

plus five every time but less than 10

if range = (0..20) then i should get this:

0 5 10 15 20

© Stack Overflow or respective owner

Related posts about ruby

Related posts about range