Sha256: f5c3cd2529895f8dd9ad042fe72e3494ce39afcf3353d24b78e01e6cba25c563
Contents?: true
Size: 247 Bytes
Versions: 13
Compression:
Stored size: 247 Bytes
Contents
# override Hash class class Hash def each_with_parent(parent = nil, &block) each do |key, value| if value.is_a?(Hash) value.each_with_parent(key, &block) else yield(parent, key, value) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems