From 4b817bd3872aa23d00a88e13471a45a491d0a643 Mon Sep 17 00:00:00 2001 From: Patrick Sharp Date: Tue, 2 Apr 2019 09:38:32 -0500 Subject: [PATCH 1/3] Allow Hash#smash to include the options --- lib/flatten/hash.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flatten/hash.rb b/lib/flatten/hash.rb index 8dbf465..9ed15ec 100644 --- a/lib/flatten/hash.rb +++ b/lib/flatten/hash.rb @@ -1,5 +1,5 @@ class Hash - def smash + def smash(options = {} Flatten(self) end -end \ No newline at end of file +end From 380244d791d10854e32029cb90160e22e710cd23 Mon Sep 17 00:00:00 2001 From: Patrick Sharp Date: Tue, 2 Apr 2019 09:40:40 -0500 Subject: [PATCH 2/3] actually pass the param through --- lib/flatten/hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flatten/hash.rb b/lib/flatten/hash.rb index 9ed15ec..940b179 100644 --- a/lib/flatten/hash.rb +++ b/lib/flatten/hash.rb @@ -1,5 +1,5 @@ class Hash def smash(options = {} - Flatten(self) + Flatten(self, options) end end From 10ecc3e0544406328839b7f2199799109fcd8f29 Mon Sep 17 00:00:00 2001 From: Patrick Sharp Date: Tue, 2 Apr 2019 14:24:41 -0500 Subject: [PATCH 3/3] Update hash.rb close parens --- lib/flatten/hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/flatten/hash.rb b/lib/flatten/hash.rb index 940b179..aea36d8 100644 --- a/lib/flatten/hash.rb +++ b/lib/flatten/hash.rb @@ -1,5 +1,5 @@ class Hash - def smash(options = {} + def smash(options = {}) Flatten(self, options) end end