Sha256: efd364362864d9f74543b4f736cd033191aee4057c5db295392273f405be89ad
Contents?: true
Size: 203 Bytes
Versions: 1
Compression:
Stored size: 203 Bytes
Contents
class Formation::Util def self.titleize(string) string.to_s.gsub(/_/, ' ').gsub(/\b\w/) { $&.upcase } end def self.underscore(string) string.to_s.downcase.gsub(/\s/, '_') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formation-0.0.1 | lib/formation/util.rb |