Class: Platform
- Inherits:
-
Object
- Object
- Platform
- Defined in:
- lib/platform.rb
Overview
Helper functions for determining platform
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
12 13 14 |
# File 'lib/platform.rb', line 12 def self.linux? PLATFORM =~ /linux/ end |
.mac? ⇒ Boolean
4 5 6 |
# File 'lib/platform.rb', line 4 def self.mac? return PLATFORM =~ /darwin/ end |
.windows? ⇒ Boolean
8 9 10 |
# File 'lib/platform.rb', line 8 def self.windows? return PLATFORM =~ /mswin/ end |