Sha256: 45b8379117db6eec64a8dacfb84c63ea5f2679c2a331cbabf9b79154ba0e180d
Contents?: true
Size: 185 Bytes
Versions: 3
Compression:
Stored size: 185 Bytes
Contents
module Slatan module Utils module StringEx refine String do def camelize self.split(/_|\-/).map(&:capitalize).join end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slatan-0.2.2 | lib/slatan/utils/string_ex.rb |
slatan-0.2.0 | lib/slatan/utils/string_ex.rb |
slatan-0.1.0 | lib/slatan/utils/string_ex.rb |