module YARD

def self.windows?

Returns:
  • (Boolean) - whether YARD is being run inside of Windows
def self.windows?
  return @windows if defined? @windows
  require 'rbconfig'
  @windows =
    ::RbConfig::CONFIG['host_os'] =~ /mingw|win32|cygwin/ ? true : false
ensure
  @windows ||= false
end