Module: Chozo::Platform::ClassMethods
- Included in:
- Chozo::Platform
- Defined in:
- lib/chozo/platform.rb
Instance Method Summary collapse
Instance Method Details
#linux? ⇒ Boolean
16 17 18 |
# File 'lib/chozo/platform.rb', line 16 def linux? (RbConfig::CONFIG['host_os'] =~ /linux/) ? true : false end |
#osx? ⇒ Boolean
12 13 14 |
# File 'lib/chozo/platform.rb', line 12 def osx? (RbConfig::CONFIG['host_os'] =~ /darwin/) ? true : false end |
#windows? ⇒ Boolean
8 9 10 |
# File 'lib/chozo/platform.rb', line 8 def windows? (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) ? true : false end |