diff --git a/SUMMARY.md b/SUMMARY.md index 11e4c8c..c8b4aff 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -54,7 +54,7 @@ * [Array Sample (enumerables)](idiomatic_ruby/array_sample.md) * [Use Fixnum#times](idiomatic_ruby/use_times.md) * [Refactorings](refactorings.md) - * [Refactoring switch case with Hashes](refactorings/refactoring_switch_case_with_hashses.md) * [Conditionals when object is nil](refactorings/conditionals_when_object_is_nil.md) + * [Switch case with Hashes](refactorings/case_with_hashes.md) * [Best Practices](best_practices.md) * [rescue => Exception e](best_practices/using_exception_e.md) diff --git a/refactorings.md b/refactorings.md index b67f047..5182db7 100644 --- a/refactorings.md +++ b/refactorings.md @@ -1,4 +1,4 @@ # Refactorings -* [Refactoring switch case with Hashes](refactorings/refactoring_switch_case_with_hashes.md) * [Conditionals when object is nil](refactorings/conditionals_when_object_is_nil.md) +* [Switch case with Hashes](refactorings/case_with_hashes.md) diff --git a/refactorings/refactoring_switch_case_with_hashes.md b/refactorings/case_with_hashes.md similarity index 97% rename from refactorings/refactoring_switch_case_with_hashes.md rename to refactorings/case_with_hashes.md index 3bc1a30..b60d956 100644 --- a/refactorings/refactoring_switch_case_with_hashes.md +++ b/refactorings/case_with_hashes.md @@ -65,5 +65,4 @@ The beauty of this, to me, is that the class-selection logic is now separate fro Win, win, and win! - -From: http://weblog.jamisbuck.org/2015/11/14/little-things-refactoring-with-hashes.html +[From](http://weblog.jamisbuck.org/2015/11/14/little-things-refactoring-with-hashes.html)