mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
10 lines
124 B
Ruby
10 lines
124 B
Ruby
![]() |
module OS
|
||
|
def self.mac?
|
||
|
/darwin/i === RUBY_PLATFORM
|
||
|
end
|
||
|
|
||
|
def self.linux?
|
||
|
/linux/i === RUBY_PLATFORM
|
||
|
end
|
||
|
end
|