From: John Firebaugh Date: 2011-12-10T06:17:17+09:00 Subject: [ruby-core:41576] [ruby-trunk - Bug #5736] Numeric#quo should convert with #to_r Issue #5736 has been updated by John Firebaugh. File 0001-numeric.c-num_quo-Convert-to-Rational-using-to_r.patch added ---------------------------------------- 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