From ba34c6a4cbdf9c7d9add05507017887b72a33217 Mon Sep 17 00:00:00 2001 From: strcmp <28xdb6+fvutuvy4f@grr.la> Date: Tue, 29 Dec 2015 02:33:40 +0000 Subject: [PATCH] use the more common approach to assigning key default of [] --- lib/pry/config/lazy.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pry/config/lazy.rb b/lib/pry/config/lazy.rb index e63f2862..fc3eb101 100644 --- a/lib/pry/config/lazy.rb +++ b/lib/pry/config/lazy.rb @@ -1,6 +1,5 @@ module Pry::Config::Lazy - LAZY_KEYS = {} - LAZY_KEYS.default_proc = lambda {|h,k| h[k] = [] } + LAZY_KEYS = Hash.new {|h,k| h[k] = [] } module ExtendModule def lazy_implement(method_name_to_func)