diff options
| author | Jack Nagel | 2013-06-06 16:02:27 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-06 16:02:27 -0500 |
| commit | db3892bf8e81f5446838b06d05e4c0729a69683e (patch) | |
| tree | 3b473aface092814f24d2ce70e2a1268bc62a155 /Library | |
| parent | f155d31943547779ed5c0960fa07da675281a3cf (diff) | |
| download | homebrew-db3892bf8e81f5446838b06d05e4c0729a69683e.tar.bz2 | |
Add MacOS.pretty_name
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/macos.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index b0320c9f4..b8c2a58f9 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -19,6 +19,10 @@ module MacOS extend self end end + def pretty_name + cat.to_s.split('_').map(&:capitalize).join(' ') + end + def locate tool # Don't call tools (cc, make, strip, etc.) directly! # Give the name of the binary you look for as a string to this method |
