Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/rdoc/code_object/method_attr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def <=>(other)
return unless other.respond_to?(:singleton) &&
other.respond_to?(:name)

[@singleton ? 0 : 1, name_codepoint_range, name] <=>
[other.singleton ? 0 : 1, other.name_codepoint_range, other.name]
[@singleton ? 0 : 1, name_ord_range, name] <=>
[other.singleton ? 0 : 1, other.name_ord_range, other.name]
end

def == other # :nodoc:
Expand Down Expand Up @@ -415,8 +415,8 @@ def to_s # :nodoc:
end
end

def name_codepoint_range # :nodoc:
case name.codepoints[0]
def name_ord_range # :nodoc:
case name.ord
when 0..64 # anything below "A"
1
when 91..96 # the symbols between "Z" and "a"
Expand Down