Sha256: 1a73a15da765ff735fbc3bf6f8c535dce6ac647090394932ee4cb2820c2dbd0d
Contents?: true
Size: 376 Bytes
Versions: 2
Compression:
Stored size: 376 Bytes
Contents
class String # 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. def significant strip end def strictly_significant_string gsub(/\s+/, '') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
significance-0.1.1 | lib/significance/core_ext/string.rb |
significance-0.1.0 | lib/significance/core_ext/string.rb |