Class: Protractor::Rails::PlatformHelper
- Inherits:
-
Object
- Object
- Protractor::Rails::PlatformHelper
- Defined in:
- lib/protractor/rails.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
12 13 14 |
# File 'lib/protractor/rails.rb', line 12 def self.linux? RbConfig::CONFIG['target_os'] =~ /linux/i end |
.mac? ⇒ Boolean
8 9 10 |
# File 'lib/protractor/rails.rb', line 8 def self.mac? RbConfig::CONFIG['target_os'] =~ /darwin/i end |
.windows? ⇒ Boolean
16 17 18 |
# File 'lib/protractor/rails.rb', line 16 def self.windows? RbConfig::CONFIG['target_os'] =~ /mswin|mingw/i end |