From: shibata.hiroshi@... Date: 2014-01-18T12:20:09+00:00 Subject: [ruby-core:59839] [ruby-trunk - Bug #9387] [Closed] Documentation for Range#size is incomplete Issue #9387 has been updated by Hiroshi SHIBATA. Status changed from Open to Closed fixed by r44549 ---------------------------------------- Bug #9387: Documentation for Range#size is incomplete https://bugs.ruby-lang.org/issues/9387#change-44407 * Author: Florian Gilcher * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.1.0 * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- 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/