Module: FFI::Platform

Defined in:
lib/libuv/ext/types.rb,
lib/libuv/ext/tasks.rb

Class Method Summary collapse

Class Method Details

.ia32?Boolean

Returns:

  • (Boolean)


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

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

.linux?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/libuv/ext/types.rb', line 4

def self.linux?
    IS_LINUX
end

.x64?Boolean

Returns:

  • (Boolean)


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

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