From: ts Date: 2004-10-24T22:37:52+09:00 Subject: Re: [rcr] String#first / String#last >>>>> "S" == Simon Strandgaard writes: S> raise TypeError, "cannot convert #{n.class} to Integer" unless n.kind_of? S> (Integer) svg% ruby -e 'class A; def to_int() 2 end; end; p [1,2,3].first(A.new)' [1, 2] svg% Guy Decoux