Class: Glimmer::Tk::OS

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer/tk/os.rb

Class Method Summary collapse

Class Method Details

.linux?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/glimmer/tk/os.rb', line 36

def linux?
  ::Tk.windowingsystem == 'x11'
end

.mac?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/glimmer/tk/os.rb', line 28

def mac?
  ::Tk.windowingsystem == 'aqua'
end

.windows?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/glimmer/tk/os.rb', line 32

def windows?
  ::Tk.windowingsystem == 'win32'
end