Module: Chozo::Platform::ClassMethods

Included in:
Chozo::Platform
Defined in:
lib/chozo/platform.rb

Instance Method Summary collapse

Instance Method Details

#linux?Boolean

Returns:



16
17
18
# File 'lib/chozo/platform.rb', line 16

def linux?
  (RbConfig::CONFIG['host_os'] =~ /linux/) ? true : false
end

#osx?Boolean

Returns:



12
13
14
# File 'lib/chozo/platform.rb', line 12

def osx?
  (RbConfig::CONFIG['host_os'] =~ /darwin/) ? true : false
end

#windows?Boolean

Returns:



8
9
10
# File 'lib/chozo/platform.rb', line 8

def windows?
  (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) ? true : false
end