rdoc/rdoc — Issue #85: <=> method name gets mangled in rdoc 3.10
Author: eclectic923
Created: 2011-10-31 17:47:51+00:00
State: open

The ruby code:

# :call-seq:
# <=>( OtherStuff ) -> Integer
#
# Make sure we can sort an array.
#
def <=>( other )
@stuff <=> other.stuff()
end # def <=>(other)

gets mangled by rdoc. Specifically, <=> becomes <&rarr.

This is method that many classes need to create so that they can be sorted. It shouldn't be mangled.