From: "David A. Black" Date: 2009-09-25T08:49:41+09:00 Subject: Re: Redefining hat operator for Proc --1926193751-1112235402-1253836166=:30340 Content-Type: MULTIPART/MIXED; BOUNDARY="1926193751-1112235402-1253836166=:30340" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1926193751-1112235402-1253836166=:30340 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Hi -- On Fri, 25 Sep 2009, bparanj wrote: > >> >> If you do Proc.instance_method(:<=>), what do you get? �If nil, then >> it's not overridden. >> >> Cheers >> >> � � � � robert > > irb(main):005:0> p = Proc.instance_method(:<=>) > NameError: undefined method `<=>' for class `Proc' > from (irb):5:in `instance_method' > from (irb):5 > from /usr/local/bin/irb:12:in `
' > > Looks like it is safe to redefine it. Thanks. You just have to hope that no one else comes to the same conclusion :-) David -- David A. Black, Director Ruby Power and Light, LLC (http://www.rubypal.com) Ruby/Rails training, consulting, mentoring, code review Book: The Well-Grounded Rubyist (http://www.manning.com/black2) --1926193751-1112235402-1253836166=:30340-- --1926193751-1112235402-1253836166=:30340--