Project

General

Profile

Actions

Feature #11917

open

Add Range#length as an alias for size

Added by dougo (Doug Orleans) almost 9 years ago. Updated almost 9 years ago.

Status:
Open
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

Like0
Like0