aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb2
-rw-r--r--Library/Homebrew/os/mac/version.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 06215114c..91c2050e8 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -20,7 +20,7 @@ module MacOS extend self
end
def pretty_name
- cat.to_s.split('_').map(&:capitalize).join(' ')
+ MacOS.version.pretty_name
end
def locate tool
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb
index c86974d76..c48b07eb6 100644
--- a/Library/Homebrew/os/mac/version.rb
+++ b/Library/Homebrew/os/mac/version.rb
@@ -13,5 +13,9 @@ module MacOS
end
super(Version.new(v))
end
+
+ def pretty_name
+ @version.split('_').map(&:capitalize).join(' ')
+ end
end
end