We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ced6d5 commit 09d7f35Copy full SHA for 09d7f35
lib/rdoc/code_object/method_attr.rb
@@ -114,8 +114,8 @@ def <=>(other)
114
return unless other.respond_to?(:singleton) &&
115
other.respond_to?(:name)
116
117
- [@singleton ? 0 : 1, name_codepoint_range, name] <=>
118
- [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]
119
end
120
121
def == other # :nodoc:
@@ -415,8 +415,8 @@ def to_s # :nodoc:
415
416
417
418
- def name_codepoint_range # :nodoc:
419
- case name.codepoints[0]
+ def name_ord_range # :nodoc:
+ case name.ord
420
when 0..64 # anything below "A"
421
1
422
when 91..96 # the symbols between "Z" and "a"
0 commit comments