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

fix return value of lazy method

This commit is contained in:
strcmp 2015-12-28 11:54:22 +00:00
parent b221a8f90c
commit bf057cc348

View file

@ -7,8 +7,8 @@ module Pry::Config::Lazy
method_name_to_func.each do |method_name, func|
define_method(method_name) do
if method_name_to_func[method_name].equal?(func)
method_name_to_func[method_name] = instance_eval(&func)
LAZY_KEYS[self.class] |= method_name_to_func.keys
method_name_to_func[method_name] = instance_eval(&func)
end
method_name_to_func[method_name]
end