Project

General

Profile

Actions

Feature #11917

open

Add Range#length as an alias for size

Added by dougo (Doug Orleans) over 6 years ago. Updated over 6 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:72581]

Description

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

Actions

Also available in: Atom PDF