Sha256: 2f504da8d7f20ed31f8767121623453e21e2af9653666de814385eec793820b4
Contents?: true
Size: 245 Bytes
Versions: 5
Compression:
Stored size: 245 Bytes
Contents
class Grover # # Utility class for Grover helper methods # class Utils def self.squish(string) string. gsub(/\A[[:space:]]+/, ''). gsub(/[[:space:]]+\z/, ''). gsub(/[[:space:]]+/, ' ') end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
grover-0.2.2 | lib/grover/utils.rb |
grover-0.2.1 | lib/grover/utils.rb |
grover-0.2.0 | lib/grover/utils.rb |
grover-0.1.2 | lib/grover/utils.rb |
grover-0.1.1 | lib/grover/utils.rb |