From: SASADA Koichi Date: 2011-09-13T08:14:42+09:00 Subject: [ruby-core:39491] Re: [ruby-core:39184] [Ruby 1.9 - Bug #1792][Closed] Fixnum#& 等が、Rational などを受けつける Is it intentional? ### class IntegerMimic def initialize n @n = n end def to_int @n end end obj = IntegerMimic.new(10) %w(& | ^).each{|sym| p sym begin p(3.send(sym, obj)) rescue => e p e end } #=> ruby 1.9.4dev (2011-09-11 trunk 33248) [i386-mswin32_100] "&" # "|" # "^" # (2011/08/29 7:25), Kenta Murata wrote: > > Issue #1792 has been updated by Kenta Murata. > > Status changed from Assigned to Closed > > ��������������������������������������� > r33113 ������������������������ > > ---------------------------------------- > Bug #1792: Fixnum#& ���������Rational ������������������������ > http://redmine.ruby-lang.org/issues/1792 > > Author: tadayoshi funaba > Status: Closed > Priority: Normal > Assignee: Kenta Murata > Category: > Target version: 1.9.x > ruby -v: - > > > =begin > 1 & 1.5 ������������������������������ > 1 & Rational(3,2) > ��� > 1 & BigDecimal('1.5') > ������������������������������������������������ > =end > > > -- // SASADA Koichi at atdot dot net