From: Brian Candler Date: 2009-02-12T00:01:05+09:00 Subject: Re: Regexp ops: get rid of !=~? Gary Yngve wrote: > Or an easy way w/ Ruby to have the parser warn about it? irb(main):001:0> Regexp.class_eval{undef_method :~} => Regexp irb(main):002:0> ~/foo/ NoMethodError: undefined method `~' for /foo/:Regexp from (irb):2 -- Posted via http://www.ruby-forum.com/.