From: usa@... Date: 2014-02-05T03:04:57+00:00 Subject: [ruby-core:60473] [ruby-trunk - Bug #9387] Documentation for Range#size is incomplete Issue #9387 has been updated by Usaku NAKAMURA. 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 ---------------------------------------- Bug #9387: Documentation for Range#size is incomplete https://bugs.ruby-lang.org/issues/9387#change-44939 * Author: Florian Gilcher * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.0 * Backport: 1.9.3: DONTNEED, 2.0.0: REQUIRED, 2.1: REQUIRED ---------------------------------------- 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 -- http://bugs.ruby-lang.org/