diff options
| author | Jack Nagel | 2014-06-03 11:32:26 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-03 11:32:26 -0500 |
| commit | e8e2df1f67090d2d9d6b4a8440891a920727cd2a (patch) | |
| tree | 9176ea83c4467746d1c6655bc0c3b2f06590181a /Library | |
| parent | f66db75ae315969da606ebf16cdb63a41a1db508 (diff) | |
| download | homebrew-e8e2df1f67090d2d9d6b4a8440891a920727cd2a.tar.bz2 | |
Simplify MacOS.version.to_sym
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac/version.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Library/Homebrew/os/mac/version.rb b/Library/Homebrew/os/mac/version.rb index d40c94bcd..bd766e940 100644 --- a/Library/Homebrew/os/mac/version.rb +++ b/Library/Homebrew/os/mac/version.rb @@ -29,15 +29,7 @@ module OS end def to_sym - case @version - when '10.9' then :mavericks - when '10.8' then :mountain_lion - when '10.7' then :lion - when '10.6' then :snow_leopard - when '10.5' then :leopard - when '10.4' then :tiger - else :dunno - end + SYMBOLS.invert.fetch(@version) { :dunno } end def pretty_name |
