Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ffxiv-lodestone.rb
Overview
Nokogiri changes entities to 302240. This may be OK in most instances, but at the very least, it makes #inspect() look like shit, which is a headache for people trying to troubleshoot.
Instance Method Summary collapse
Instance Method Details
#strip_nbsp ⇒ Object
10 11 12 |
# File 'lib/ffxiv-lodestone.rb', line 10 def strip_nbsp self.strip.gsub("\302\240",' ') end |
#strip_nbsp! ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ffxiv-lodestone.rb', line 14 def strip_nbsp! before = self.reverse.reverse self.strip! self.gsub!("\302\240",' ') before == self ? nil : self end |