Class: Glimmer::Tk::OS
- Inherits:
-
Object
- Object
- Glimmer::Tk::OS
- Defined in:
- lib/glimmer/tk/os.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
36 37 38 |
# File 'lib/glimmer/tk/os.rb', line 36 def linux? ::Tk.windowingsystem == 'x11' end |
.mac? ⇒ Boolean
28 29 30 |
# File 'lib/glimmer/tk/os.rb', line 28 def mac? ::Tk.windowingsystem == 'aqua' end |
.windows? ⇒ Boolean
32 33 34 |
# File 'lib/glimmer/tk/os.rb', line 32 def windows? ::Tk.windowingsystem == 'win32' end |