Project

General

Profile

Actions

Bug #9387

closed

Documentation for Range#size is incomplete

Added by Skade (Florian Gilcher) almost 11 years ago. Updated almost 11 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

Updated by hsbt (Hiroshi SHIBATA) almost 11 years ago

  • Status changed from Open to Closed

fixed by r44549

Updated by usa (Usaku NAKAMURA) almost 11 years ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

  • Backport changed from 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: REQUIRED

r44549 was backported to ruby_2_0_0 at r45013.

Updated by naruse (Yui NARUSE) almost 11 years ago

  • Backport changed from 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONE, 2.1: DONE

r45118

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0