From 8e2e82ea586a22e8887978b5a91fb19974d1bf70 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Tue, 5 Feb 2019 03:43:36 -0500 Subject: [PATCH] fixed typos --- _layouts/post.html.sav | 15 --------------- .../2019-02-05-ruby2.6+-array#difference.markdown | 10 +++++----- 2 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 _layouts/post.html.sav diff --git a/_layouts/post.html.sav b/_layouts/post.html.sav deleted file mode 100644 index 700ab71..0000000 --- a/_layouts/post.html.sav +++ /dev/null @@ -1,15 +0,0 @@ ---- -layout: default ---- -
-{{ content }} -
- - diff --git a/_programming/2019-02-05-ruby2.6+-array#difference.markdown b/_programming/2019-02-05-ruby2.6+-array#difference.markdown index 329f53d..85af643 100644 --- a/_programming/2019-02-05-ruby2.6+-array#difference.markdown +++ b/_programming/2019-02-05-ruby2.6+-array#difference.markdown @@ -1,6 +1,6 @@ --- layout: programming -title: "Ruby 2.6+ Array#Difference" +title: "ruby 2.6+ array#difference" date: 2019-02-05 categories: programming --- @@ -17,7 +17,7 @@ A method to check differences in values between two arrays. [1] pry(main)> abc = ['a','b','c'] => ["a", "b", "c"] -[2] pry(main)> abcdef = 'a', 'b', 'c', 'd', 'e', 'f' +[2] pry(main)> abcdef = ['a', 'b', 'c', 'd', 'e', 'f'] => ["a", "b", "c", "d", "e", "f"] {% endhighlight %} @@ -25,7 +25,7 @@ A method to check differences in values between two arrays.
-#### ruby 2.5 +#### Ruby 2.5 In versions prior, I would make a .difference method in my .pryrc file and that will be loaded at runtime when I run my console. You can also monkey patch it live in a pry console. Found this via @@ -49,7 +49,7 @@ post. Here is how I would add it in a running pry session:
-#### ruby 2.6 +#### Ruby 2.6 But now in ruby 2.6+, you can just use the .difference method. It is built into the class now. @@ -58,4 +58,4 @@ the class now. => ["d", "e", "f"] {% endhighlight %} -so nice, so easy! +So nice, so easy!