class Object

Public Instance Methods

blank?(value) click to toggle source
# File lib/rnagios.rb, line 8
def blank?(value)
  value.nil? || value.empty?
end
linux?() click to toggle source

Check for Linux

# File lib/rnagios.rb, line 28
def linux?
  OS.unix? and not OS.mac?
end
mac?() click to toggle source

Check for Mac OS

# File lib/rnagios.rb, line 18
def mac?
 (/darwin/ =~ RUBY_PLATFORM) != nil
end
unix?() click to toggle source

Check for UNIX or UNIX-like OS

# File lib/rnagios.rb, line 23
def unix?
  !OS.windows?
end
windows?() click to toggle source

Check for Windows OS

# File lib/rnagios.rb, line 13
def windows?
  (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end