D
dblock
Anyone has a good way to implement is_subset_of for a hash? It needs
to work for deep hashes obviously.
I basically have json data returned in two formats: short and full. I
want to make sure that the short format is an exact subset of the full
format. When they aren't an exact subset I want the fields that exist
in the first hash and don't exist in the second.
Thanks,
-dB.
to work for deep hashes obviously.
I basically have json data returned in two formats: short and full. I
want to make sure that the short format is an exact subset of the full
format. When they aren't an exact subset I want the fields that exist
in the first hash and don't exist in the second.
Thanks,
-dB.