Move pretty_name into MacOS::Version
Closes Homebrew/homebrew#20507. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
5539c97191
commit
8739eeab7d
@ -20,7 +20,7 @@ module MacOS extend self
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pretty_name
|
def pretty_name
|
||||||
cat.to_s.split('_').map(&:capitalize).join(' ')
|
MacOS.version.pretty_name
|
||||||
end
|
end
|
||||||
|
|
||||||
def locate tool
|
def locate tool
|
||||||
|
|||||||
@ -13,5 +13,9 @@ module MacOS
|
|||||||
end
|
end
|
||||||
super(Version.new(v))
|
super(Version.new(v))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def pretty_name
|
||||||
|
@version.split('_').map(&:capitalize).join(' ')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user