Changes

Ruby Ranges

1 byte removed, 14:15, 31 March 2009
no edit summary
Sequence ranges in Ruby are used to create a range of successive values - consisting of a start value, an end value and a range of values in between.
Two operators are available for creating such ranges, the inclusive two-dot (..) operator and the exclusive three-dot operator (...). The inclusive operator includes both the begin first and end last values in the range. The exclusive range operator excludes the end last value from the sequence. For example:
<pre>
== Ruby Ranges as Conditional Expressions ==
<google>ADSDAQBOX_FLOW</google>
Ruby Ranges can also be used as conditional expressions in looping conditions. The range start value represents the start of the of loop, which runs until the range end marker is detected.
<pre>