From: Hans Mackowiak Date: 2013-03-17T23:19:53+09:00 Subject: Re: Confusion with `nil` output from the method Symbol#<=> WHY DONT YOU GET IT? this line: https://github.com/ruby/ruby/blob/trunk/string.c#L2392 symbols does not have a to_str method, so this returns nil or maybe still the symbol then because temp is not a String, it calls rb_invcmp with tries to call symbol <=> string and you should allready know what that returns -- Posted via http://www.ruby-forum.com/.