diff options
| author | Jack Nagel | 2013-06-06 16:02:27 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-06 16:02:27 -0500 |
| commit | 2e5d05093101f5e6dd25043f85de6b0196f1cf39 (patch) | |
| tree | 88400e81170177eb7171f61b6f974659e0dd7beb /Library | |
| parent | 79a769215fc75fecea9fe0ddbebdc4bae166086a (diff) | |
| download | brew-2e5d05093101f5e6dd25043f85de6b0196f1cf39.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 |
