Module: FFI::Platform

Defined in:
lib/uv/types.rb,
lib/uv/tasks.rb

Class Method Summary collapse

Class Method Details

.ia32?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/uv/tasks.rb', line 2

def self.ia32?
  ARCH == "i386"
end

.linux?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/uv/types.rb', line 2

def self.linux?
  IS_LINUX
end

.x64?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/uv/tasks.rb', line 6

def self.x64?
  ARCH == "x86_64"
end