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