Sha256: 15f19482025197dbc10dc1a1d325f12f132556f76bf8fe9103c64b62e9280c7b
Contents?: true
Size: 284 Bytes
Versions: 13
Compression:
Stored size: 284 Bytes
Contents
module GovukSchemas # @private module Utils def self.stringify_keys(hash) new_hash = {} hash.each do |k, v| new_hash[k.to_s] = v end new_hash end def self.parameterize(string) string.gsub(/[^a-z0-9\-_]+/i, '-') end end end
Version data entries
13 entries across 13 versions & 1 rubygems