Sha256: 2f3bdebc6b0998bbc55f1d40d22a22525742d04165b89c366671a62a053ad645
Contents?: true
Size: 253 Bytes
Versions: 2
Compression:
Stored size: 253 Bytes
Contents
module G5Updatable module Indifferentizer def indifferentize_array(array) array.collect { |item| indifferentize_hash(item) } end def indifferentize_hash(hash) ActiveSupport::HashWithIndifferentAccess.new hash end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-1.0.2.pre.1 | app/lib/g5_updatable/indifferentizer.rb |
g5_updatable-0.20.3.pre.1 | lib/g5_updatable/indifferentizer.rb |