Module: DuckTest::Platforms::OSHelpers
- Included in:
- FrameWork::FileManager, Generic::Listener
- Defined in:
- lib/duck_test/platforms/os_helper.rb
Overview
Conveinence methods to include in classes that need to determine current platform. Method calls are relative to OSHelper
Instance Method Summary (collapse)
-
- (Boolean) available?
Conveinence method that calls DuckTest::Platforms::OSHelper.available?.
-
- (Object) current_os
Conveinence method that calls DuckTest::Platforms::OSHelper.current_os.
-
- (Boolean) is_linux?
Conveinence method that calls DuckTest::Platforms::OSHelper.is_linux?.
-
- (Boolean) is_mac?
Conveinence method that calls DuckTest::Platforms::OSHelper.is_mac?.
-
- (Boolean) is_windows?
Conveinence method that calls DuckTest::Platforms::OSHelper.is_windows?.
Instance Method Details
- (Boolean) available?
Conveinence method that calls DuckTest::Platforms::OSHelper.available?
28 29 30 |
# File 'lib/duck_test/platforms/os_helper.rb', line 28 def available? OSHelper.available? end |
- (Object) current_os
Conveinence method that calls DuckTest::Platforms::OSHelper.current_os
34 35 36 |
# File 'lib/duck_test/platforms/os_helper.rb', line 34 def current_os OSHelper.current_os end |
- (Boolean) is_linux?
Conveinence method that calls DuckTest::Platforms::OSHelper.is_linux?
10 11 12 |
# File 'lib/duck_test/platforms/os_helper.rb', line 10 def is_linux? OSHelper.is_linux? end |
- (Boolean) is_mac?
Conveinence method that calls DuckTest::Platforms::OSHelper.is_mac?
16 17 18 |
# File 'lib/duck_test/platforms/os_helper.rb', line 16 def is_mac? OSHelper.is_mac? end |
- (Boolean) is_windows?
Conveinence method that calls DuckTest::Platforms::OSHelper.is_windows?
22 23 24 |
# File 'lib/duck_test/platforms/os_helper.rb', line 22 def is_windows? OSHelper.is_windows? end |