Sha256: 690ee3388c7e5a8f06ad769d90dea4b5fe02d0a20e441cabbb1bc97fd25ea758
Contents?: true
Size: 361 Bytes
Versions: 36
Compression:
Stored size: 361 Bytes
Contents
module Schemacop::V2 class Dupper def self.dup_data(data) if data.is_a?(Hash) data = data.dup data.each do |key, value| data[key] = dup_data(value) end return data elsif data.is_a?(Array) return data.map { |value| dup_data(value) } else return data end end end end
Version data entries
36 entries across 36 versions & 1 rubygems