Module: VER::Platform
Class Method Summary collapse
- .aqua? ⇒ Boolean
- .bsd? ⇒ Boolean
- .mac? ⇒ Boolean
- .operatingsystem ⇒ Object
- .unix? ⇒ Boolean
- .win32? ⇒ Boolean
- .windowingsystem ⇒ Object
- .windows? ⇒ Boolean
- .x11? ⇒ Boolean
Class Method Details
.aqua? ⇒ Boolean
13 14 15 |
# File 'lib/ver/platform.rb', line 13 def aqua? windowingsystem == :aqua end |
.bsd? ⇒ Boolean
21 22 23 |
# File 'lib/ver/platform.rb', line 21 def bsd? FFI::Platform.bsd? end |
.mac? ⇒ Boolean
29 30 31 |
# File 'lib/ver/platform.rb', line 29 def mac? FFI::Platform.mac? end |
.operatingsystem ⇒ Object
37 38 39 |
# File 'lib/ver/platform.rb', line 37 def FFI::Platform::OS end |
.unix? ⇒ Boolean
33 34 35 |
# File 'lib/ver/platform.rb', line 33 def unix? FFI::Platform.unix? end |
.win32? ⇒ Boolean
9 10 11 |
# File 'lib/ver/platform.rb', line 9 def win32? windowingsystem == :win32 end |
.windowingsystem ⇒ Object
17 18 19 |
# File 'lib/ver/platform.rb', line 17 def windowingsystem @windowingsystem ||= Tk::TkCmd.windowingsystem end |
.windows? ⇒ Boolean
25 26 27 |
# File 'lib/ver/platform.rb', line 25 def windows? FFI::Platform.windows? end |
.x11? ⇒ Boolean
5 6 7 |
# File 'lib/ver/platform.rb', line 5 def x11? windowingsystem == :x11 end |