From c1f556df3a60e32295e973a6c72336187bf1de69 Mon Sep 17 00:00:00 2001 From: Jeff Ward Date: Thu, 12 Oct 2017 14:52:49 -0600 Subject: [PATCH] Possible fix for #4 Reasonable hack: makes all hashes get `Hash` suffix instead of `Array` suffix Makes stringify `{}` output `[]Hash` instead of `[]Array`. --- lib/crimp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crimp.rb b/lib/crimp.rb index ad75a86..16f057c 100644 --- a/lib/crimp.rb +++ b/lib/crimp.rb @@ -40,7 +40,7 @@ def self.parse_array(array) end def self.parse_hash(hash) - stringify hash_to_array(hash) + stringify(hash_to_array(hash)).sub(/Array$/, 'Hash') end def self.to_string(obj)