Module: Pair::OS

Defined in:
lib/pair/os.rb

Class Method Summary collapse

Class Method Details

.linux?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/pair/os.rb', line 3

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

.os_x?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/pair/os.rb', line 7

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