Class: TTYCoke::Platform
- Inherits:
-
Object
- Object
- TTYCoke::Platform
- Defined in:
- lib/ttycoke/platform.rb
Class Method Summary collapse
Class Method Details
.leopard? ⇒ Boolean
10 11 12 |
# File 'lib/ttycoke/platform.rb', line 10 def leopard? platform.include?("darwin9") end |
.platform ⇒ Object
28 29 30 |
# File 'lib/ttycoke/platform.rb', line 28 def platform RbConfig::CONFIG["host_os"].downcase end |
.tiger? ⇒ Boolean
6 7 8 |
# File 'lib/ttycoke/platform.rb', line 6 def tiger? platform.include?("darwin8") end |
.windows? ⇒ Boolean
20 21 22 23 24 25 26 |
# File 'lib/ttycoke/platform.rb', line 20 def windows? %W[mingw mswin].each do |text| return true if platform.include?(text) end false end |