Method: Kernel#is_windows?

Defined in:
lib/cosmos/core_ext/kernel.rb

#is_windows?Boolean

Returns Whether the current platform is Windows.

Returns:

  • (Boolean)

    Whether the current platform is Windows



23
24
25
# File 'lib/cosmos/core_ext/kernel.rb', line 23

def is_windows?
  Gem.win_platform?
end