# File lib/hashr.rb, line 88 def to_hash inject({}) do |hash, (key, value)| hash[key] = value.is_a?(Hashr) ? value.to_hash : value hash end end