mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
range.c: Documentation on endless ranges.
Based on patch by Victor Shepelev [DOC] [#7552] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
103e8d5bc7
commit
296bd00e02
2 changed files with 29 additions and 0 deletions
|
@ -333,6 +333,7 @@ its ending value.
|
|||
|
||||
(1..2) # includes its ending value
|
||||
(1...2) # excludes its ending value
|
||||
(1..) # endless range, representing infinite sequence from 1 to Infinity
|
||||
|
||||
You may create a range of any object. See the Range documentation for details
|
||||
on the methods you need to implement.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue