From: matz@... Date: 2014-10-11T13:17:57+00:00 Subject: [ruby-core:65616] [ruby-trunk - Feature #10365] [Rejected] `Rational#to_a` and `Array#to_r` Issue #10365 has been updated by Yukihiro Matsumoto. Status changed from Open to Rejected And without having Rational#to_a, Array#to_r does not mean much. So I reject this. Matz. ---------------------------------------- Feature #10365: `Rational#to_a` and `Array#to_r` https://bugs.ruby-lang.org/issues/10365#change-49353 * Author: Tsuyoshi Sawada * Status: Rejected * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- I guess people would want to extract the numerator and the denominator of an array. `to_a` would perhaps be a good name: (2/51).to_a # => [2, 51] It also might be useful if `Array#to_r` were provided as an alternative way to create a rational from an array: [4, 6].to_r #=> (2/3) This would be equivalent to `Rational(*[4, 6])`. -- https://bugs.ruby-lang.org/