From: John Firebaugh Date: 2011-12-10T06:06:51+09:00 Subject: [ruby-core:41575] [ruby-trunk - Bug #5736][Open] Numeric#quo should convert with #to_r Issue #5736 has been reported by John Firebaugh. ---------------------------------------- Bug #5736: Numeric#quo should convert with #to_r http://redmine.ruby-lang.org/issues/5736 Author: John Firebaugh Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin10.8.0] Numeric#quo currently constructs a Rational with self as the raw numerator, doing no coercion, before dividing. Instead it should follow the same pattern as Numeric#{numerator,denominator}, and convert self with #to_r. This allows any Numeric subclass to participate in the type conversion. -- http://redmine.ruby-lang.org