class Object

Is this program running on a Windows host?

Private Instance Methods

windows?() click to toggle source

Are we running under Windows?

# File lib/test65/host.rb, line 8
def windows?
  # Is this a Windows based system
  @win ||= RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|bccwin|wince|emc/
end