Module: QML::Platform

Defined in:
lib/qml/platform.rb

Class Method Summary collapse

Class Method Details

.mac?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/qml/platform.rb', line 10

def mac?
  !!(/darwin/ =~ RUBY_PLATFORM)
end

.windows?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/qml/platform.rb', line 6

def windows?
  !!(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM)
end