module DBus::Platform

Platform detection

Public Instance Methods

freebsd?() click to toggle source
# File lib/dbus/platform.rb, line 17
def freebsd?
  RbConfig::CONFIG["target_os"] =~ /freebsd/
end
macos?() click to toggle source
# File lib/dbus/platform.rb, line 21
def macos?
  RbConfig::CONFIG["target_os"] =~ /darwin/
end