Class: Range
Overview
Range
is extended with a few methods
Instance Method Summary collapse
-
#size ⇒ Integer
Compute the size of a range.
Instance Method Details
#size ⇒ Integer
Compute the size of a range
562 563 564 |
# File 'docs/multiarray/lib/multiarray.rb', line 562 def size max + 1 - min end |