Class: Mccloud::Util::Platform
- Inherits:
-
Object
- Object
- Mccloud::Util::Platform
- Defined in:
- lib/mccloud/util/platform.rb
Overview
This class just contains some platform checking code.
Class Method Summary collapse
Class Method Details
.leopard? ⇒ Boolean
13 14 15 |
# File 'lib/mccloud/util/platform.rb', line 13 def leopard? platform.include?("darwin9") end |
.platform ⇒ Object
27 28 29 |
# File 'lib/mccloud/util/platform.rb', line 27 def platform RbConfig::CONFIG["host_os"].downcase end |
.tiger? ⇒ Boolean
9 10 11 |
# File 'lib/mccloud/util/platform.rb', line 9 def tiger? platform.include?("darwin8") end |
.windows? ⇒ Boolean
17 18 19 |
# File 'lib/mccloud/util/platform.rb', line 17 def windows? platform.include?("mswin") || platform.include?("mingw") end |