blob: b51188a17a089bbe0cb43604ed5ef70029fab995 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
module FFI
class PlatformError < LoadError
end
module Platform
OS: String
OSVERSION: Integer
CPU: String
ARCH: String
IS_GNU: bool
IS_LINUX: bool
IS_MAC: bool
IS_FREEBSD: bool
IS_NETBSD: bool
IS_OPENBSD: bool
IS_DRAGONFLYBSD: bool
IS_SOLARIS: bool
IS_WINDOWS: bool
IS_BSD: bool
NAME: String
CONF_DIR: String
LIBPREFIX: String
LIBSUFFIX: String
LIBC: String
LITTLE_ENDIAN: Integer
BIG_ENDIAN: Integer
def self.bsd?: () -> bool
def self.windows?: () -> bool
def self.mac?: () -> bool
def self.solaris?: () -> bool
def self.unix?: () -> bool
private
def self.is_os: (String os) -> bool
end
end
|