class String

Public Instance Methods

significant() click to toggle source
The following is overkill right now, as the only necessarily insignificant characters are whitespace.

def significant; chars.select(&:significant?).join; end def significant; gsub(/s+/, ”); end # whoa that does not have the effect i want it to have.

# File lib/significance/core_ext/string.rb, line 5
def significant
  strip
end
strictly_significant() click to toggle source
# File lib/significance/core_ext/string.rb, line 9
def strictly_significant
  gsub(/\s+/, '')
end