Project

General

Profile

Bug #9387

Documentation for Range#size is incomplete

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

Status:
Closed
Priority:
Normal
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

Associated revisions

Revision 9d6dd894
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) r44549: [Backport #9387]

* range.c (Range#size): [DOC] improve description and add examples.
  Patch by @skade. [Fixes GH-501]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision f1161c93
Added by naruse (Yui NARUSE) over 4 years ago

merge revision(s) 44549: [Backport #9387]

* range.c (Range#size): [DOC] improve description and add examples.
  Patch by @skade. [Fixes GH-501]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1 [ruby-core:59839] Updated by hsbt (Hiroshi SHIBATA) over 4 years ago

  • Status changed from Open to Closed

fixed by r44549

#2 [ruby-core:60473] Updated by usa (Usaku NAKAMURA) over 4 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

#3 [ruby-core:60792] Updated by nagachika (Tomoyuki Chikanaga) over 4 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.

#4 [ruby-core:60985] Updated by naruse (Yui NARUSE) over 4 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

Also available in: Atom PDF