Sha256: f06c78296df26e9795933ad058826620cd35c1207fb2301d656b41d89cf7df09
Contents?: true
Size: 230 Bytes
Versions: 3
Compression:
Stored size: 230 Bytes
Contents
class Symbol def camelate to_s.split('_').map(&:capitalize).join end end class String def camelate self end end class Hash def camelate_keys Hash[map { |key, value| [key.camelate, value] }] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cloud_shaped-1.0.0 | lib/cloud_shaped/camelate.rb |
cloud_shaped-0.1.3 | lib/cloud_shaped/camelate.rb |
cloud_shaped-0.1.2 | lib/cloud_shaped/camelate.rb |