Add Range#length as an alias for size
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?
Updated by avit (Andrew Vit) over 6 years ago
- File 0001-Make-Range-size-an-alias-of-Range-length.patch 0001-Make-Range-size-an-alias-of-Range-length.patch added
Attached patch for consideration. I made the aliases the same as Array.