--000e0cd1744ed87b9704633ff740 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Actually it's completely unrelated. str.to_s would become: s(:call_with_namespace, nil, :str, s(:arglist)), :to_s, s(:arglist), s(:namespaces, :Merb)) -- Yehuda 2009/2/18 Tom Link <micathom / gmail.com> > > use Merb::String > > > > class Foo > > def bar(str) > > str.to_s > > end > > end > > Just out of curiosity: Wouldn't the problem with your examples be that > the String class is hard-wired in the ruby parser -- see eg > > http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/2a0ad2d4a78f499d/ > > I'm not sure though if this is still true for ruby 1.9. > > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --000e0cd1744ed87b9704633ff740 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Actually it's completely unrelated.<br><br>str.to_s would become:<br><br>s(:call_with_namespace, nil, :str, s(:arglist)), :to_s, s(:arglist), s(:namespaces, :Merb))<br><br>-- Yehuda<br><br><div class="gmail_quote">2009/2/18 Tom Link <span dir="ltr"><micathom / gmail.com></span><br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">> use Merb::String<br> ><br> > class Foo<br> > def bar(str)<br> > str.to_s<br> > end<br> > end<br> <br> </div>Just out of curiosity: Wouldn't the problem with your examples behat<br> the String class is hard-wired in the ruby parser -- see eg<br> <a href="http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/2a0ad2d4a78f499d/" target="_blank">http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/2a0ad2d4a78f499d/</a><br> <br> I'm not sure though if this is still true for ruby 1.9.<br> <br> </blockquote></div><br><br clear="all"><br>-- <br>Yehuda Katz<br>Developer | Engine Yard<br>(ph) 718.877.1325<br> --000e0cd1744ed87b9704633ff740--