Sha256: 8cf3dc51b81ec4520e2eb83111abf56a457325edbb800a5beb2234d458d37ad2
Contents?: true
Size: 525 Bytes
Versions: 19
Compression:
Stored size: 525 Bytes
Contents
module Mittsu module UniformsUtils def self.merge(uniforms) merged = {} uniforms.each do |uniform| tmp = UniformsUtils.clone(uniform) next if tmp.nil? tmp.each do |(p, tmp_p)| merged[p] = tmp_p end end merged end def self.clone(uniforms_src) return if uniforms_src.nil? uniforms_dst = {} uniforms_src.each do |(u, uniform_src)| uniforms_dst[u] = uniform_src.clone end uniforms_dst end end end
Version data entries
19 entries across 19 versions & 1 rubygems