From: Hans Mackowiak Date: 2013-03-17T23:04:20+09:00 Subject: Re: Confusion with `nil` output from the method Symbol#<=> both the functions return nil because :x <=> "x" , "x" is not a symbol, so return nil "x" <=> :x , :x does not respond to to_str, so return nil if you "couldn't understand" C code, stop reading it and look at more easier tutorials -- Posted via http://www.ruby-forum.com/.