Project

General

Profile

Actions

Bug #9387

closed

Documentation for Range#size is incomplete

Added by Skade (Florian Gilcher) over 10 years ago. Updated about 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:59664]

Description

The documentation for Range#size does not mention the case where not all arguments are instances of Numeric, in which case it returns nil.

I created a patch here: https://github.com/ruby/ruby/pull/501

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0