module RADMesh::OS
helper module for determining an operating system @!visibility private
Public Class Methods
is?(what)
click to toggle source
# File lib/radmesh/os.rb, line 7 def is?(what) what.match(RbConfig::CONFIG['host_os']) end
to_s()
click to toggle source
@!visibility private
# File lib/radmesh/os.rb, line 12 def to_s RbConfig::CONFIG['host_os'] end
Public Instance Methods
linux?()
click to toggle source
# File lib/radmesh/os.rb, line 19 def linux? OS.is?(/linux|cygwin/) end
mac?()
click to toggle source
# File lib/radmesh/os.rb, line 23 def mac? OS.is?(/mac|darwin/) end
windows?()
click to toggle source
# File lib/radmesh/os.rb, line 27 def windows? OS.is?(/mswin|win|mingw/) end