From: Nobuyoshi Nakada Date: 2007-07-16T11:53:22+09:00 Subject: Re: String#rindex(other) doesn't try to convert other via to_str Hi, At Mon, 16 Jul 2007 06:06:22 +0900, Florian Gross wrote in [ruby-core:11697]: > > Though rindex accepts also Regexp and Fixnum, but String should > > be prior to them? > > Hm, is there a conversion method for Regexp? to_regexp for Regexp, to_int for Integer, to_ary for Array, and to_io for IO. > If you were talking about defining Fixnum#to_str or Regexp#to_str: I > don't think we need to add support for that here. I don't think so, too. The question as just to confirm. -- Nobu Nakada