I am trying to compare two Ruby Hashes using the following code:
#!/usr/bin/env ruby require \"yaml\" require \"active_support\" file1 = YAML::load(File.op
what about convert both hash to_json and compare as string? but keeping in mind that
require "json" h1 = {a: 20} h2 = {a: "20"} h1.to_json==h1.to_json => true h1.to_json==h2.to_json => false