Module: LicenseFinder::Platform

Defined in:
lib/license_finder/platform.rb

Class Method Summary collapse

Class Method Details

.darwin?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/license_finder/platform.rb', line 3

def self.darwin?
  RUBY_PLATFORM =~ /darwin/
end

.windows?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/license_finder/platform.rb', line 7

def self.windows?
  RUBY_PLATFORM =~ /mswin|cygwin|mingw/
end