Class: EaseEngine::Platform
- Inherits:
-
Object
- Object
- EaseEngine::Platform
- Defined in:
- lib/ease_engine/platform.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
11 12 13 |
# File 'lib/ease_engine/platform.rb', line 11 def self.linux? self.ruby_platform =~ /linux/ end |
.mac? ⇒ Boolean
7 8 9 |
# File 'lib/ease_engine/platform.rb', line 7 def self.mac? self.ruby_platform =~ /darwin/ end |
.ruby_platform ⇒ Object
3 4 5 |
# File 'lib/ease_engine/platform.rb', line 3 def self.ruby_platform RUBY_PLATFORM.downcase end |
.windows? ⇒ Boolean
15 16 17 |
# File 'lib/ease_engine/platform.rb', line 15 def self.windows? self.ruby_platform =~ /mingw/ end |