From: Jingjing Duan Date: 2012-08-01T07:49:13+09:00 Subject: Re: rubeque: Unidentified X Object Brian Candler wrote in post #1070831: > Let Ruby tell you: > > Fixnum.instance_methods.find_all { |op| "X" * 2.send(op,2) == "" rescue > nil} > > Then repeat for the other case, and see which operator is common to > both. Good trick. Forgot the spaceship operator returns an integer instead of a boolean... -- Posted via http://www.ruby-forum.com/.