diff options
author | Mike Dalessio <[email protected]> | 2024-11-30 11:06:51 -0500 |
---|---|---|
committer | git <[email protected]> | 2024-11-30 16:06:54 +0000 |
commit | 83bd9191d8537e0c5c413841a2234552d2a3b756 (patch) | |
tree | c1a4fb3d6a88a0726f6f4df281edacf13c5b5fac /lib/rdoc/code_object/context/section.rb | |
parent | c321cf0e95c08854c02514eb2e2729da83c1dcc4 (diff) |
[ruby/rdoc] Methods are sorted symbols-first
(https://github.com/ruby/rdoc/pull/1219)
There are three distinct ranges of symbols in ASCII:
- the range below "A", 0..64 in decimal
- the range between "Z" and "a", 91..96 in decimal
- the range above "z", 123..127 in decimal
With this change, any method starting with a character in these
"symbol ranges" will be sorted before a method starting with an alpha
ASCII character. The remaining methods, all starting with alpha or
8-bit characters, will be sorted against each other exactly as before.
Specifically this addresses the issue from #1204 which is that `#[]`
and `#^` were previously sorted _after_ the alpha methods. These
methods will now be sorted before alpha methods.
Fixes https://github.com/ruby/rdoc/pull/1204
https://github.com/ruby/rdoc/commit/a4f13d242b
Diffstat (limited to 'lib/rdoc/code_object/context/section.rb')
0 files changed, 0 insertions, 0 deletions