Unified · Split
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | 4 | ||
| 5 | def call | 5 | def call |
| 6 | html.strip! | 6 | html.strip! |
| 7 | while html.remove!(EMPTY_NODES_RGX); end | 7 | while html.gsub!(EMPTY_NODES_RGX, ''); end |
| 8 | html | 8 | html |
| 9 | end | 9 | end |
| 10 | end | 10 | end |
| @@ -54,7 +54,7 @@ module Docs · 53 unmodified lines | |||
| 54 | end | 54 | end |
| 55 | 55 | ||
| 56 | # Classes | 56 | # Classes |
| 57 | if name.remove! 'Class: ' | 57 | if name.gsub! 'Class: ', '' |
| 58 | name.remove! 'events.' # EventEmitter | 58 | name.remove! 'events.' # EventEmitter |
| 59 | klass = name | 59 | klass = name |
| 60 | entries << [name, node['id']] | 60 | entries << [name, node['id']] |
| @@ -129,7 +129,7 @@ module Docs · 128 unmodified lines | |||
| 129 | end | 129 | end |
| 130 | 130 | ||
| 131 | def additional_entry_prefix | 131 | def additional_entry_prefix |
| 132 | type.dup.remove!('Functions: ') || self.name | 132 | type.dup.gsub!('Functions: ', '') || self.name |
| 133 | end | 133 | end |
| 134 | 134 | ||
| 135 | def skip_additional_entries? | 135 | def skip_additional_entries? |
| @@ -11,7 +11,7 @@ module Docs · 10 unmodified lines | |||
| 11 | def get_type | 11 | def get_type |
| 12 | type = name.dup | 12 | type = name.dup |
| 13 | 13 | ||
| 14 | unless type.remove! %r{::.*\z} | 14 | unless type.gsub! %r{::.*\z}, '' |
| 15 | parent = at_css('.meta-parent').try(:content).to_s | 15 | parent = at_css('.meta-parent').try(:content).to_s |
| 16 | return 'Errors' if type.end_with?('Error') || parent.end_with?('Error') || parent.end_with?('Exception') | 16 | return 'Errors' if type.end_with?('Error') || parent.end_with?('Error') || parent.end_with?('Exception') |
| 17 | end | 17 | end |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | def get_name | 4 | def get_name |
| 5 | name = super | 5 | name = super |
| 6 | name.remove!('Axes.') | 6 | name.remove!('Axes.') |
| 7 | name << '()' if name.remove!('Functions.') | 7 | name << '()' if name.gsub!('Functions.', '') |
| 8 | name | 8 | name |
| 9 | end | 9 | end |
| 10 | 10 | ||