Method: Interval#sentinels
- Defined in:
- lib/mega/interval.rb
#sentinels ⇒ Object
Returns a two element array of first and last sentinels.
(0..10).sentinels #=> [0,10]
90 91 92 |
# File 'lib/mega/interval.rb', line 90 def sentinels return [@first, @last] end |