aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2016-03-16 22:51:39 -0700
committerXu Cheng2016-03-19 19:14:50 +0800
commitaf36139218ad607e1f9347876d636bed60b6e767 (patch)
treeea3096c3f20672904f5f5a0bf84a8380f131a9fb /Library
parentfe37cc52713e37c24ddf9a7a75f5118594acd3b1 (diff)
downloadbrew-af36139218ad607e1f9347876d636bed60b6e767.tar.bz2
Document that Xcode.prefix can be nil
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index b951b1232..d0eb50da0 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -34,6 +34,8 @@ module OS
installed? && version >= "4.3" && !MacOS::CLT.installed?
end
+ # Returns a Pathname object corresponding to Xcode.app's Developer
+ # directory or nil if Xcode.app is not installed
def prefix
@prefix ||=
begin