1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

use the more common approach to assigning key default of []

This commit is contained in:
strcmp 2015-12-29 02:33:40 +00:00
parent 6cbaf40969
commit ba34c6a4cb

View file

@ -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)