From 172a26257c10e31bce7f5b6d028d86c87d6c063f Mon Sep 17 00:00:00 2001 From: tom-lord Date: Sat, 13 Jul 2019 10:31:55 +0100 Subject: [PATCH] Drop workaround for ruby 2.0 support --- lib/core_extensions/regexp/examples.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core_extensions/regexp/examples.rb b/lib/core_extensions/regexp/examples.rb index 1bf5f65..dea007b 100644 --- a/lib/core_extensions/regexp/examples.rb +++ b/lib/core_extensions/regexp/examples.rb @@ -29,5 +29,4 @@ def examples_by_method(method) end end -# Regexp#include is private for ruby 2.0 and below -Regexp.send(:include, CoreExtensions::Regexp::Examples) +Regexp.include(CoreExtensions::Regexp::Examples)