Sha256: 0599da19f8887d8f6111a7a74869f00bd4f75ca3d4312008979ceb16527f9db0
Contents?: true
Size: 249 Bytes
Versions: 2
Compression:
Stored size: 249 Bytes
Contents
module SimpleSegment module Utils def self.included(klass) klass.extend(self) end def symbolize_keys(hash) hash.each_with_object({}) do |(key, value), result| result[key.to_sym] = value end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_segment-0.2.1 | lib/simple_segment/utils.rb |
simple_segment-0.2.0 | lib/simple_segment/utils.rb |