From 2e5d05093101f5e6dd25043f85de6b0196f1cf39 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 6 Jun 2013 16:02:27 -0500 Subject: [PATCH] Add MacOS.pretty_name --- Library/Homebrew/macos.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index b0320c9f46..b8c2a58f9d 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