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:
parent
b221a8f90c
commit
bf057cc348
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue