From: "Skade (Florian Gilcher)" Date: 2014-01-09T22:40:04+09:00 Subject: [ruby-core:59664] [ruby-trunk - Bug #9387][Open] Documentation for Range#size is incomplete Issue #9387 has been reported by Skade (Florian Gilcher). ---------------------------------------- Bug #9387: Documentation for Range#size is incomplete https://bugs.ruby-lang.org/issues/9387 Author: Skade (Florian Gilcher) Status: Open 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/