Issue #11917 has been updated by Andrew Vit.

File 0001-Make-Range-size-an-alias-of-Range-length.patch added

Attached patch for consideration. I made the aliases the same as Array.

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

* 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?

---Files--------------------------------
0001-Make-Range-size-an-alias-of-Range-length.patch (1.34 KB)


-- 
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>