Issue #11917 has been reported by Doug Orleans.

----------------------------------------
Feature #11917: Add Range#length as an alias for size
https://bugs.ruby-lang.org/issues/11917

* Author: Doug Orleans
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
I noticed that `Range` has a `size` method but no `length`, unlike most other `Enumerable` classes. I propose adding `Range#length` as an alias for `Range#size`. Any reason not to?



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>