diff --git a/Library/Homebrew/lazy_object.rb b/Library/Homebrew/lazy_object.rb index 2b01e99024..c99bcb4db3 100644 --- a/Library/Homebrew/lazy_object.rb +++ b/Library/Homebrew/lazy_object.rb @@ -9,17 +9,15 @@ class LazyObject < Delegator super(callable) end - def __getobj__ + def __getobj__(&) return @__getobj__ if defined?(@__getobj__) @__getobj__ = @__callable__.call end - private :__getobj__ def __setobj__(callable) @__callable__ = callable end - private :__setobj__ # Forward to the inner object to make lazy objects type-checkable. #