| @@ -68,11 +68,12 @@ module Docs · 67 unmodified lines |
| 68 | 68 | next |
| 69 | 69 | end |
| 70 | 70 | |
| 71 | | − # Skip all that start with an uppercase letter ("Example", "How It Works", etc.) |
| 72 | | − next unless name.first.upcase! || name.start_with?('Class Method') |
| 73 | | − |
| 74 | 71 | name.gsub! %r{\(.*?\)}, '()' |
| 75 | 72 | name.gsub! %r{\[.+?\]}, '[]' |
| 73 | + name.sub! 'assert(), ', '' # assert/assert.ok |
| 74 | + |
| 75 | + # Skip all that start with an uppercase letter ("Example") or include a space ("exports alias") |
| 76 | + next unless (name.first.upcase! && !name.include?(' ')) || name.start_with?('Class Method') |
| 76 | 77 | |
| 77 | 78 | # Differentiate server classes (http, https, net, etc.) |
| 78 | 79 | name.sub!('server.') { "#{(klass || 'https').sub('.', '_').downcase!}." } |
| @@ -80,7 +81,6 @@ module Docs · 1 unmodified line |
| 80 | 81 | name.sub!('socket.') { "#{klass.sub('.', '_').downcase!}." } |
| 81 | 82 | |
| 82 | 83 | name.sub! 'Class Method:', '' |
| 83 | | − name.sub! 'assert(), ', '' # assert/assert.ok |
| 84 | 84 | name.sub! 'buf.', 'buffer.' |
| 85 | 85 | name.sub! 'buf[', 'buffer[' |
| 86 | 86 | name.sub! 'child.', 'childprocess.' |