Sha256: 9fc0b9d65f8ceca7cae0734f36cdbb91f88174a3bc66b1628f058acc570a7d3f
Contents?: true
Size: 349 Bytes
Versions: 5
Compression:
Stored size: 349 Bytes
Contents
module Lono::Builder::Util module Stringify # Accounts for Arrays also. ActiveSupport only works for Hashes. def stringify!(data) case data when Array data.map! { |i| stringify!(i) } when Hash data.deep_transform_keys! { |k| k.to_s } else data # do not transform end end end end
Version data entries
5 entries across 5 versions & 1 rubygems