typedruby 0.0.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3733161369a80873d79a74001a41d7c60ced110c
4
- data.tar.gz: 10069240e1d625a57c4fe76ba48f79f6ef41d8b7
3
+ metadata.gz: ed1280b7425c71e21b0c7c9a29ba755b6b936ee0
4
+ data.tar.gz: 86efb0df6f329ad5770bb7e54ff3b2a161f940f8
5
5
  SHA512:
6
- metadata.gz: aa6b5f5d7fc4ba2ed88561800106747cde763a79151c9fac15bb4833ffa0d403348bae734f9086453da219738f6c9e8c99f990104283514211c1c0615d0c1379
7
- data.tar.gz: f7c41c3f5f7563be25113e4114c494e0a91ae52091f3139c50e13eca55c4f3497d46cea19567b31d8f3d3a972a9cac3ada4ae3a670e318863ccd78135dd508e7
6
+ metadata.gz: 0eba1ed653aeedc1299836ef25df9a30b3b019c6b7db9843ab93def7474d1904eed0599e74ab843c357215e26dc3d6b0a7fd46cbd3804ebeff2c2688980384fe
7
+ data.tar.gz: d6ac2152064fe5c8ea7fd57fc66371e2aa6563475e241cf9d094a970bcda66b540a5131f6c32e5c7ecbcacf676bac09582a8edd72239ab4fd22471f596f10221
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 GitHub, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ require "etc"
3
+
4
+ def typedruby_bin_path
5
+ ENV.fetch("TYPEDRUBY_BIN") {
6
+ uname = Etc.uname
7
+
8
+ system = "#{uname[:machine]}-#{uname[:sysname]}".downcase
9
+
10
+ bin = File.expand_path("../typedruby-#{system}", __dir__)
11
+
12
+ unless File.executable?(bin)
13
+ abort "Unsupported system: #{system}"
14
+ end
15
+
16
+ bin
17
+ }
18
+ end
19
+
20
+ ENV["TYPEDRUBY_LIB"] ||= File.expand_path("../definitions/lib", __dir__)
21
+
22
+ exec [typedruby_bin_path, $0], *ARGV
@@ -0,0 +1,2308 @@
1
+ # @typedruby
2
+
3
+ class BasicObject
4
+ def initialize => :any; end
5
+
6
+ def __id__ => Integer; end
7
+
8
+ def ==(:any other) => Boolean; end
9
+ def !=(:any other) => Boolean; end
10
+
11
+ def ! => Boolean; end
12
+ end
13
+
14
+ module Kernel
15
+ def gets(~String sep = $/) => ~String; end
16
+
17
+ def puts(:any *) => nil; end
18
+
19
+ def warn(:any *) => nil; end
20
+
21
+ def nil? => Boolean; end
22
+
23
+ def to_s => String; end
24
+
25
+ def inspect => String; end
26
+
27
+ def caller => [String]; end
28
+
29
+ def rand => Float; end
30
+
31
+ def __dir__ => String; end
32
+
33
+ def proc[T](T &) => T; end
34
+
35
+ def lambda[T](T &) => T; end
36
+
37
+ # __method__ actually returns ~Symbol, but it will always return Symbol when
38
+ # called from a method (TypedRuby only type-checks within methods)
39
+ def __method__ => Symbol; end
40
+
41
+ def loop({ || => :any } &) => nil; end
42
+
43
+ def hash => Integer; end
44
+
45
+ def tap({ |:self obj| => :any } &) => :self; end
46
+
47
+ def block_given? => Boolean; end
48
+
49
+ def respond_to?((String|Symbol) mid) => Boolean; end
50
+
51
+ def nil? => Boolean; end
52
+
53
+ def frozen? => Boolean; end
54
+
55
+ def ===(:any other) => Boolean; end
56
+
57
+ def object_id => Integer; end
58
+
59
+ def eql?(Object other) => Boolean; end
60
+
61
+ def <=>(Object other) => ~Integer; end
62
+
63
+ def test(String command, String file1, ~String file2 = nil) => :any; end
64
+ end
65
+
66
+ class ENVClass
67
+ def [](String name) => ~String; end
68
+
69
+ def fetch(String name) => String; end
70
+
71
+ def []=(String name, String value) => String; end
72
+ end
73
+
74
+ class Object < BasicObject
75
+ include Kernel
76
+ NIL = nil
77
+ ARGF = nil
78
+ TRUE = nil
79
+ FALSE = nil
80
+ ENV = (nil : ENVClass)
81
+ RUBY_RELEASE_DATE = nil
82
+ RUBY_PATCHLEVEL = nil
83
+ RUBY_VERSION = nil
84
+ RUBY_REVISION = nil
85
+ RUBY_ENGINE = nil
86
+ RUBY_ENGINE_VERSION = nil
87
+ RUBY_COPYRIGHT = nil
88
+ RUBY_PLATFORM = nil
89
+ RUBY_DESCRIPTION = nil
90
+ TOPLEVEL_BINDING = nil
91
+ ARGV = nil
92
+
93
+ def class => :class; end
94
+
95
+ def dup => :self; end
96
+
97
+ def freeze => :self; end
98
+
99
+ def send(Symbol method_name, :any *args) => :any; end
100
+ end
101
+
102
+ module Enumerable::[EnumType]
103
+ def each({ |EnumType element| => :any } &) => :self; end
104
+
105
+ def each_with_index({ |EnumType element, Integer index| => :any } &) => :self; end
106
+
107
+ def each_with_object[T](T object, { |EnumType element, T object| => :any } &) => T; end
108
+
109
+ def map[ProjectedType]({ |EnumType x| => ProjectedType } &) => [ProjectedType]; end
110
+ alias :collect :map
111
+
112
+ def reduce[T](T initial, { |T acc, EnumType x| => T } &) => T; end
113
+ alias :inject :reduce
114
+
115
+ def group_by[GroupKey]({ |EnumType element| => GroupKey } &) => { GroupKey => [EnumType] }; end
116
+
117
+ def find({ |EnumType element| => Boolean } &) => ~EnumType; end
118
+ alias :detect :find
119
+
120
+ def any?({ |EnumType element| => Boolean } &) => Boolean; end
121
+
122
+ def all?({ |EnumType element| => Boolean } &) => Boolean; end
123
+
124
+ def take(Integer count) => [EnumType]; end
125
+
126
+ def drop(Integer n) => [EnumType]; end
127
+
128
+ def count => Integer; end
129
+
130
+ def each_slice(Integer slice_size, { |[EnumType] elements| => :any } &) => nil; end
131
+
132
+ def flat_map[ProjectedType]({ |EnumType element| => [ProjectedType] } &) => [ProjectedType]; end
133
+
134
+ # TODO enforce that CompareKey is Comparable:
135
+
136
+ def max_by[CompareKey]({ |EnumType element| => CompareKey } &) => ~EnumType; end
137
+
138
+ def min_by[CompareKey]({ |EnumType element| => CompareKey } &) => ~EnumType; end
139
+ end
140
+
141
+ class IO < Object
142
+ include Enumerable::[String]
143
+ SEEK_SET = nil
144
+ SEEK_CUR = nil
145
+ SEEK_END = nil
146
+
147
+ def self.read(
148
+ String name,
149
+ ~Integer length = nil,
150
+ ~Integer offset = nil,
151
+ ~(String | Encoding) encoding: nil,
152
+ ~String mode: nil,
153
+ ~[String] open_args: nil
154
+ ) => String
155
+ end
156
+
157
+ def write(String data) => Integer; end
158
+ end
159
+
160
+ class Object
161
+ STDOUT = (nil : IO)
162
+ STDERR = (nil : IO)
163
+ STDIN = (nil : IO)
164
+ end
165
+
166
+ class BasicSocket < IO
167
+ end
168
+
169
+ class IPSocket < BasicSocket
170
+ end
171
+
172
+ class File < IO
173
+ Separator = nil
174
+ SEPARATOR = nil
175
+ ALT_SEPARATOR = nil
176
+ PATH_SEPARATOR = nil
177
+
178
+ # TODO - needs a stricter prototype
179
+ def self.open(:any *, { |File f| => :any } &) => :any; end
180
+
181
+ def self.join(String s, String *) => String; end
182
+
183
+ def self.expand_path(String file, ~String dir = nil) => String; end
184
+
185
+ def self.file?(String file) => Boolean; end
186
+
187
+ def self.exist?(String file) => Boolean; end
188
+
189
+ def self.rename(String old_name, String new_name) => Integer; end
190
+
191
+ def self.dirname(String path) => String; end
192
+
193
+ def self.basename(String path, ~String ext = nil) => String; end
194
+
195
+ def flock(Integer operation) => (FalseClass | Integer); end
196
+ end
197
+
198
+ module File::Constants
199
+ RDONLY = nil
200
+ WRONLY = nil
201
+ RDWR = (nil : Integer)
202
+ APPEND = nil
203
+ CREAT = (nil : Integer)
204
+ EXCL = nil
205
+ NONBLOCK = nil
206
+ TRUNC = nil
207
+ NOCTTY = nil
208
+ BINARY = nil
209
+ SHARE_DELETE = nil
210
+ SYNC = nil
211
+ DSYNC = nil
212
+ NOFOLLOW = nil
213
+ LOCK_SH = (nil : Integer)
214
+ LOCK_EX = (nil : Integer)
215
+ LOCK_UN = (nil : Integer)
216
+ LOCK_NB = (nil : Integer)
217
+ NULL = nil
218
+ FNM_NOESCAPE = nil
219
+ FNM_PATHNAME = nil
220
+ FNM_DOTMATCH = nil
221
+ FNM_CASEFOLD = nil
222
+ FNM_EXTGLOB = nil
223
+ FNM_SYSCASE = nil
224
+ FNM_SHORTNAME = nil
225
+ end
226
+
227
+ class IO
228
+ include File::Constants
229
+ end
230
+
231
+ module Comparable
232
+ end
233
+
234
+ class File::Stat < Object
235
+ include Comparable
236
+ end
237
+
238
+ module IO::WaitReadable
239
+ end
240
+
241
+ module IO::WaitWritable
242
+ end
243
+
244
+ module Errno
245
+ end
246
+
247
+ class Exception < Object
248
+ def initialize(String s) => nil; end
249
+
250
+ def message => String; end
251
+
252
+ def backtrace => [String]; end
253
+
254
+ def set_backtrace([String] backtrace) => nil; end
255
+ end
256
+
257
+ class StandardError < Exception
258
+ end
259
+
260
+ class SystemCallError < StandardError
261
+ end
262
+
263
+ class Errno::EAGAIN < SystemCallError
264
+ Errno = nil
265
+ end
266
+
267
+ class IO::EAGAINWaitReadable < Errno::EAGAIN
268
+ include IO::WaitReadable
269
+ end
270
+
271
+ class Errno::NOERROR < SystemCallError
272
+ Errno = nil
273
+ end
274
+
275
+ class Errno::EPERM < SystemCallError
276
+ Errno = nil
277
+ end
278
+
279
+ class Errno::ENOENT < SystemCallError
280
+ Errno = nil
281
+ end
282
+
283
+ class Errno::ESRCH < SystemCallError
284
+ Errno = nil
285
+ end
286
+
287
+ class Errno::EINTR < SystemCallError
288
+ Errno = nil
289
+ end
290
+
291
+ class Errno::EIO < SystemCallError
292
+ Errno = nil
293
+ end
294
+
295
+ class Errno::ENXIO < SystemCallError
296
+ Errno = nil
297
+ end
298
+
299
+ class Errno::E2BIG < SystemCallError
300
+ Errno = nil
301
+ end
302
+
303
+ class Errno::ENOEXEC < SystemCallError
304
+ Errno = nil
305
+ end
306
+
307
+ class Errno::EBADF < SystemCallError
308
+ Errno = nil
309
+ end
310
+
311
+ class Errno::ECHILD < SystemCallError
312
+ Errno = nil
313
+ end
314
+
315
+ class Errno::ENOMEM < SystemCallError
316
+ Errno = nil
317
+ end
318
+
319
+ class Errno::EACCES < SystemCallError
320
+ Errno = nil
321
+ end
322
+
323
+ class Errno::EFAULT < SystemCallError
324
+ Errno = nil
325
+ end
326
+
327
+ class Errno::ENOTBLK < SystemCallError
328
+ Errno = nil
329
+ end
330
+
331
+ class Errno::EBUSY < SystemCallError
332
+ Errno = nil
333
+ end
334
+
335
+ class Errno::EEXIST < SystemCallError
336
+ Errno = nil
337
+ end
338
+
339
+ class Errno::EXDEV < SystemCallError
340
+ Errno = nil
341
+ end
342
+
343
+ class Errno::ENODEV < SystemCallError
344
+ Errno = nil
345
+ end
346
+
347
+ class Errno::ENOTDIR < SystemCallError
348
+ Errno = nil
349
+ end
350
+
351
+ class Errno::EISDIR < SystemCallError
352
+ Errno = nil
353
+ end
354
+
355
+ class Errno::EINVAL < SystemCallError
356
+ Errno = nil
357
+ end
358
+
359
+ class Errno::ENFILE < SystemCallError
360
+ Errno = nil
361
+ end
362
+
363
+ class Errno::EMFILE < SystemCallError
364
+ Errno = nil
365
+ end
366
+
367
+ class Errno::ENOTTY < SystemCallError
368
+ Errno = nil
369
+ end
370
+
371
+ class Errno::ETXTBSY < SystemCallError
372
+ Errno = nil
373
+ end
374
+
375
+ class Errno::EFBIG < SystemCallError
376
+ Errno = nil
377
+ end
378
+
379
+ class Errno::ENOSPC < SystemCallError
380
+ Errno = nil
381
+ end
382
+
383
+ class Errno::ESPIPE < SystemCallError
384
+ Errno = nil
385
+ end
386
+
387
+ class Errno::EROFS < SystemCallError
388
+ Errno = nil
389
+ end
390
+
391
+ class Errno::EMLINK < SystemCallError
392
+ Errno = nil
393
+ end
394
+
395
+ class Errno::EPIPE < SystemCallError
396
+ Errno = nil
397
+ end
398
+
399
+ class Errno::EDOM < SystemCallError
400
+ Errno = nil
401
+ end
402
+
403
+ class Errno::ERANGE < SystemCallError
404
+ Errno = nil
405
+ end
406
+
407
+ class Errno::EDEADLK < SystemCallError
408
+ Errno = nil
409
+ end
410
+
411
+ class Errno::ENAMETOOLONG < SystemCallError
412
+ Errno = nil
413
+ end
414
+
415
+ class Errno::ENOLCK < SystemCallError
416
+ Errno = nil
417
+ end
418
+
419
+ class Errno::ENOSYS < SystemCallError
420
+ Errno = nil
421
+ end
422
+
423
+ class Errno::ENOTEMPTY < SystemCallError
424
+ Errno = nil
425
+ end
426
+
427
+ class Errno::ELOOP < SystemCallError
428
+ Errno = nil
429
+ end
430
+
431
+ class Errno::ENOMSG < SystemCallError
432
+ Errno = nil
433
+ end
434
+
435
+ class Errno::EIDRM < SystemCallError
436
+ Errno = nil
437
+ end
438
+
439
+ class Errno::ENOSTR < SystemCallError
440
+ Errno = nil
441
+ end
442
+
443
+ class Errno::ENODATA < SystemCallError
444
+ Errno = nil
445
+ end
446
+
447
+ class Errno::ETIME < SystemCallError
448
+ Errno = nil
449
+ end
450
+
451
+ class Errno::ENOSR < SystemCallError
452
+ Errno = nil
453
+ end
454
+
455
+ class Errno::EREMOTE < SystemCallError
456
+ Errno = nil
457
+ end
458
+
459
+ class Errno::ENOLINK < SystemCallError
460
+ Errno = nil
461
+ end
462
+
463
+ class Errno::EPROTO < SystemCallError
464
+ Errno = nil
465
+ end
466
+
467
+ class Errno::EMULTIHOP < SystemCallError
468
+ Errno = nil
469
+ end
470
+
471
+ class Errno::EBADMSG < SystemCallError
472
+ Errno = nil
473
+ end
474
+
475
+ class Errno::EOVERFLOW < SystemCallError
476
+ Errno = nil
477
+ end
478
+
479
+ class Errno::EILSEQ < SystemCallError
480
+ Errno = nil
481
+ end
482
+
483
+ class Errno::EUSERS < SystemCallError
484
+ Errno = nil
485
+ end
486
+
487
+ class Errno::ENOTSOCK < SystemCallError
488
+ Errno = nil
489
+ end
490
+
491
+ class Errno::EDESTADDRREQ < SystemCallError
492
+ Errno = nil
493
+ end
494
+
495
+ class Errno::EMSGSIZE < SystemCallError
496
+ Errno = nil
497
+ end
498
+
499
+ class Errno::EPROTOTYPE < SystemCallError
500
+ Errno = nil
501
+ end
502
+
503
+ class Errno::ENOPROTOOPT < SystemCallError
504
+ Errno = nil
505
+ end
506
+
507
+ class Errno::EPROTONOSUPPORT < SystemCallError
508
+ Errno = nil
509
+ end
510
+
511
+ class Errno::ESOCKTNOSUPPORT < SystemCallError
512
+ Errno = nil
513
+ end
514
+
515
+ class Errno::EOPNOTSUPP < SystemCallError
516
+ Errno = nil
517
+ end
518
+
519
+ class Errno::EPFNOSUPPORT < SystemCallError
520
+ Errno = nil
521
+ end
522
+
523
+ class Errno::EAFNOSUPPORT < SystemCallError
524
+ Errno = nil
525
+ end
526
+
527
+ class Errno::EADDRINUSE < SystemCallError
528
+ Errno = nil
529
+ end
530
+
531
+ class Errno::EADDRNOTAVAIL < SystemCallError
532
+ Errno = nil
533
+ end
534
+
535
+ class Errno::ENETDOWN < SystemCallError
536
+ Errno = nil
537
+ end
538
+
539
+ class Errno::ENETUNREACH < SystemCallError
540
+ Errno = nil
541
+ end
542
+
543
+ class Errno::ENETRESET < SystemCallError
544
+ Errno = nil
545
+ end
546
+
547
+ class Errno::ECONNABORTED < SystemCallError
548
+ Errno = nil
549
+ end
550
+
551
+ class Errno::ECONNRESET < SystemCallError
552
+ Errno = nil
553
+ end
554
+
555
+ class Errno::ENOBUFS < SystemCallError
556
+ Errno = nil
557
+ end
558
+
559
+ class Errno::EISCONN < SystemCallError
560
+ Errno = nil
561
+ end
562
+
563
+ class Errno::ENOTCONN < SystemCallError
564
+ Errno = nil
565
+ end
566
+
567
+ class Errno::ESHUTDOWN < SystemCallError
568
+ Errno = nil
569
+ end
570
+
571
+ class Errno::ETOOMANYREFS < SystemCallError
572
+ Errno = nil
573
+ end
574
+
575
+ class Errno::ETIMEDOUT < SystemCallError
576
+ Errno = nil
577
+ end
578
+
579
+ class Errno::ECONNREFUSED < SystemCallError
580
+ Errno = nil
581
+ end
582
+
583
+ class Errno::EHOSTDOWN < SystemCallError
584
+ Errno = nil
585
+ end
586
+
587
+ class Errno::EHOSTUNREACH < SystemCallError
588
+ Errno = nil
589
+ end
590
+
591
+ class Errno::EALREADY < SystemCallError
592
+ Errno = nil
593
+ end
594
+
595
+ class Errno::EINPROGRESS < SystemCallError
596
+ Errno = nil
597
+ end
598
+
599
+ class Errno::ESTALE < SystemCallError
600
+ Errno = nil
601
+ end
602
+
603
+ class Errno::EDQUOT < SystemCallError
604
+ Errno = nil
605
+ end
606
+
607
+ class Errno::ECANCELED < SystemCallError
608
+ Errno = nil
609
+ end
610
+
611
+ class Errno::ENOTRECOVERABLE < SystemCallError
612
+ Errno = nil
613
+ end
614
+
615
+ class Errno::EOWNERDEAD < SystemCallError
616
+ Errno = nil
617
+ end
618
+
619
+ class Errno::EAUTH < SystemCallError
620
+ Errno = nil
621
+ end
622
+
623
+ class Errno::EBADRPC < SystemCallError
624
+ Errno = nil
625
+ end
626
+
627
+ class Errno::EFTYPE < SystemCallError
628
+ Errno = nil
629
+ end
630
+
631
+ class Errno::ENEEDAUTH < SystemCallError
632
+ Errno = nil
633
+ end
634
+
635
+ class Errno::ENOATTR < SystemCallError
636
+ Errno = nil
637
+ end
638
+
639
+ class Errno::ENOTSUP < SystemCallError
640
+ Errno = nil
641
+ end
642
+
643
+ class Errno::EPROCLIM < SystemCallError
644
+ Errno = nil
645
+ end
646
+
647
+ class Errno::EPROCUNAVAIL < SystemCallError
648
+ Errno = nil
649
+ end
650
+
651
+ class Errno::EPROGMISMATCH < SystemCallError
652
+ Errno = nil
653
+ end
654
+
655
+ class Errno::EPROGUNAVAIL < SystemCallError
656
+ Errno = nil
657
+ end
658
+
659
+ class Errno::ERPCMISMATCH < SystemCallError
660
+ Errno = nil
661
+ end
662
+
663
+ class IO::EAGAINWaitWritable < Errno::EAGAIN
664
+ include IO::WaitWritable
665
+ end
666
+
667
+ class IO::EINPROGRESSWaitReadable < Errno::EINPROGRESS
668
+ include IO::WaitReadable
669
+ end
670
+
671
+ class IO::EINPROGRESSWaitWritable < Errno::EINPROGRESS
672
+ include IO::WaitWritable
673
+ end
674
+
675
+ class TCPSocket < IPSocket
676
+ end
677
+
678
+ class TCPServer < TCPSocket
679
+ end
680
+
681
+ class UNIXSocket < BasicSocket
682
+ end
683
+
684
+ class UNIXServer < UNIXSocket
685
+ end
686
+
687
+ class Method < Object
688
+ end
689
+
690
+ class Numeric < Object
691
+ include Comparable
692
+
693
+ def <(Numeric other) => Boolean; end
694
+ def <=(Numeric other) => Boolean; end
695
+ def >(Numeric other) => Boolean; end
696
+ def >=(Numeric other) => Boolean; end
697
+ def <=>(Numeric other) => Boolean; end
698
+ def ==(Numeric other) => Boolean; end
699
+ def !=(Numeric other) => Boolean; end
700
+
701
+ def real? => Boolean; end
702
+ def integer? => Boolean; end
703
+ def zero? => Boolean; end
704
+ def nonzero? => Boolean; end
705
+ def finite? => Boolean; end
706
+ def infinite? => Boolean; end
707
+ def negative? => Boolean; end
708
+ def positive? => Boolean; end
709
+ end
710
+
711
+ class Integer < Numeric
712
+ GMP_VERSION = nil
713
+
714
+ def |(Integer other) => Integer; end
715
+
716
+ def +(Integer other) => Integer; end
717
+
718
+ def -(Integer other) => Integer; end
719
+
720
+ def *(Integer other) => Integer; end
721
+
722
+ def /(Integer other) => Integer; end
723
+
724
+ def to_r => Rational; end
725
+ end
726
+
727
+ class Float < Numeric
728
+ ROUNDS = nil
729
+ RADIX = nil
730
+ MANT_DIG = nil
731
+ DIG = nil
732
+ MIN_EXP = nil
733
+ MAX_EXP = nil
734
+ MIN_10_EXP = nil
735
+ MAX_10_EXP = nil
736
+ MIN = nil
737
+ MAX = nil
738
+ EPSILON = nil
739
+ INFINITY = nil
740
+ NAN = nil
741
+
742
+ def +(Float other) => Float; end
743
+
744
+ def -(Float other) => Float; end
745
+
746
+ def *(Float other) => Float; end
747
+
748
+ def /(Float other) => Float; end
749
+
750
+ def to_r => Rational; end
751
+ end
752
+
753
+ class String < Object
754
+ include Comparable
755
+
756
+ def +(String other) => String; end
757
+
758
+ def <<(String other) => String; end
759
+
760
+ def %(Object arg) => String; end
761
+
762
+ def *(Integer times) => String; end
763
+
764
+ # Ideally these would be overloaded to allow exactly one of `repl`
765
+ # and a block, but we don't support overloads.
766
+ def sub((String | Regexp) pattern, ~String repl=nil, ~{ |String s| => String } &) => String; end
767
+
768
+ def gsub((String | Regexp) pattern, ~String repl=nil, ~{ |String s| => String } &) => String; end
769
+
770
+ def sub!((String | Regexp) pattern, ~String repl=nil, ~{ |String s| => String } &) => ~String; end
771
+
772
+ def gsub!((String | Regexp) pattern, ~String repl=nil, ~{ |String s| => String } &) => ~String; end
773
+
774
+ def size => Integer; end
775
+
776
+ def length => Integer; end
777
+
778
+ def b => String; end
779
+
780
+ def to_sym => Symbol; end
781
+
782
+ def start_with?(String prefix) => Boolean; end
783
+
784
+ def end_with?(String suffix) => Boolean; end
785
+
786
+ def downcase => String; end
787
+
788
+ def upcase => String; end
789
+
790
+ def capitalize => String; end
791
+
792
+ def strip => String; end
793
+
794
+ def []((Integer | Range::[Integer, Integer]) idx) => String; end
795
+
796
+ def []=((Integer | Range::[Integer, Integer]) idx, String replacement) => String; end
797
+
798
+ def =~(Regexp pattern) => ~Integer; end
799
+
800
+ def lines => [String]; end
801
+
802
+ def chomp(String suffix = "") => String; end
803
+
804
+ def chomp!(String suffix = "") => ~String; end
805
+
806
+ def split((String | Regexp) delim) => [String]; end
807
+
808
+ def unpack(String format) => [:any]; end
809
+
810
+ def empty? => Boolean; end
811
+
812
+ def to_sym => Symbol; end
813
+
814
+ def intern => Symbol; end
815
+
816
+ def to_i => Integer; end
817
+
818
+ def to_r => Rational; end
819
+ end
820
+
821
+ class Array::[ElementType] < Object
822
+ include Enumerable::[ElementType]
823
+
824
+ def each({ |ElementType element| => :any } &bk) => :self; end
825
+
826
+ def <<(ElementType item) => :self; end
827
+
828
+ def map!({ |ElementType element| => ElementType } &) => :self; end
829
+ alias :collect! :map!
830
+
831
+ def select({ |ElementType x| => Boolean } &) => [ElementType]; end
832
+
833
+ def reject({ |ElementType x| => Boolean } &) => [ElementType]; end
834
+
835
+ def reject!({ |ElementType element| => Boolean } &) => ~[ElementType]; end
836
+
837
+ def include?(ElementType item) => Boolean; end
838
+
839
+ def shift => ~ElementType; end
840
+
841
+ def unshift(ElementType element) => :self; end
842
+
843
+ def pop => ~ElementType; end
844
+
845
+ def push(ElementType element) => :self; end
846
+
847
+ def *(Integer times) => :self; end
848
+
849
+ def join(String sep = "") => String; end
850
+
851
+ def first => ~ElementType; end
852
+
853
+ def last => ~ElementType; end
854
+
855
+ def +([ElementType] other) => [ElementType]; end
856
+
857
+ def -([ElementType] other) => [ElementType]; end
858
+
859
+ def concat([ElementType] other) => :self; end
860
+
861
+ def size => Integer; end
862
+
863
+ def length => Integer; end
864
+
865
+ def compact[NonNullType; ElementType : ~NonNullType] => [NonNullType]; end
866
+
867
+ def empty? => Boolean; end
868
+
869
+ def uniq(~{ |ElementType element| => :any } &) => [ElementType]; end
870
+
871
+ def uniq!(~{ |ElementType element| => :any } &) => [ElementType]; end
872
+
873
+ def [](Integer index) => ~ElementType; end
874
+
875
+ def []=(Integer index, ElementType value) => ElementType; end
876
+
877
+ def fetch(Integer index) => ElementType; end
878
+
879
+ def to_h[K, V; ElementType : [K, V]] => { K => V }; end
880
+
881
+ def delete_if({ |ElementType element| => Boolean } &) => :self; end
882
+
883
+ # TODO enforce that SortKey must respond to <=>
884
+ # or perhaps that it's comparable?
885
+ def sort_by[SortKey]({ |ElementType element| => SortKey } &) => [ElementType]; end
886
+ def sort_by![SortKey]({ |ElementType element| => SortKey } &) => :self; end
887
+
888
+ def reverse => [ElementType]; end
889
+ end
890
+
891
+ class Hash::[KeyType, ValueType] < Object
892
+ include Enumerable::[[KeyType, ValueType]]
893
+
894
+ def each({ |KeyType k, ValueType v| => :any } &) => :self; end
895
+
896
+ def merge(Hash::[KeyType, ValueType] other) => Hash::[KeyType, ValueType]; end
897
+
898
+ def merge!(Hash::[KeyType, ValueType] other) => :self; end
899
+
900
+ def select({ |KeyType k, ValueType v| => Boolean } &) => Hash::[KeyType, ValueType]; end
901
+
902
+ def reject({ |KeyType k, ValueType v| => Boolean } &) => Hash::[KeyType, ValueType]; end
903
+
904
+ def fetch(KeyType k, ~:any v = nil, ~{ || => ValueType } &) => ValueType; end
905
+
906
+ def [](KeyType k) => ~ValueType; end
907
+
908
+ def []=(KeyType k, ValueType v) => ValueType; end
909
+
910
+ def key?(KeyType k) => Boolean; end
911
+ alias :has_key? :key?
912
+
913
+ def include?(KeyType k) => Boolean; end
914
+
915
+ def empty? => Boolean; end
916
+
917
+ def keys => [KeyType]; end
918
+
919
+ def values => [ValueType]; end
920
+
921
+ def delete(KeyType k) => ~ValueType; end
922
+
923
+ def delete_if({ |KeyType key, ValueType value| => Boolean } &) => :self; end
924
+ end
925
+
926
+ class NilClass < Object
927
+ def nil? => TrueClass; end
928
+
929
+ def to_a[T] => Array::[T]; end
930
+
931
+ def to_i => Integer; end
932
+
933
+ def to_f => Float; end
934
+
935
+ def to_h[K, V] => Hash::[K, V]; end
936
+
937
+ def to_r => Rational; end
938
+
939
+ def &(:any other) => FalseClass; end
940
+
941
+ def |(:any other) => Boolean; end
942
+
943
+ def ^(:any other) => Boolean; end
944
+ end
945
+
946
+ class ArgumentError < StandardError
947
+ end
948
+
949
+ class UncaughtThrowError < ArgumentError
950
+ end
951
+
952
+ module FileTest
953
+ end
954
+
955
+ module GC
956
+ INTERNAL_CONSTANTS = nil
957
+ OPTS = nil
958
+ end
959
+
960
+ module GC::Profiler
961
+ end
962
+
963
+ class Fiber < Object
964
+ end
965
+
966
+ class FiberError < StandardError
967
+ end
968
+
969
+ class Rational < Numeric
970
+ def to_i => Integer; end
971
+ def to_r => Rational; end
972
+
973
+ def +(Rational other) => Rational; end
974
+ def -(Rational other) => Rational; end
975
+ def *(Rational other) => Rational; end
976
+ def /(Rational other) => Rational; end
977
+ end
978
+
979
+ module ObjectSpace
980
+ end
981
+
982
+ class ObjectSpace::WeakMap < Object
983
+ include Enumerable::[:any]
984
+ end
985
+
986
+ module DidYouMean
987
+ end
988
+
989
+ class Data < Object
990
+ end
991
+
992
+ class Boolean < Object
993
+ end
994
+
995
+ class TrueClass < Boolean
996
+ end
997
+
998
+ class FalseClass < Boolean
999
+ end
1000
+
1001
+ class Encoding < Object
1002
+ BINARY = nil
1003
+ ASCII_8BIT = nil
1004
+ UTF_8 = nil
1005
+ US_ASCII = nil
1006
+ Big5 = nil
1007
+ BIG5 = nil
1008
+ Big5_HKSCS = nil
1009
+ BIG5_HKSCS = nil
1010
+ Big5_UAO = nil
1011
+ BIG5_UAO = nil
1012
+ CP949 = nil
1013
+ Emacs_Mule = nil
1014
+ EMACS_MULE = nil
1015
+ EUC_JP = nil
1016
+ EUC_KR = nil
1017
+ EUC_TW = nil
1018
+ GB2312 = nil
1019
+ GB18030 = nil
1020
+ GBK = nil
1021
+ ISO_8859_1 = nil
1022
+ ISO_8859_2 = nil
1023
+ ISO_8859_3 = nil
1024
+ ISO_8859_4 = nil
1025
+ ISO_8859_5 = nil
1026
+ ISO_8859_6 = nil
1027
+ ISO_8859_7 = nil
1028
+ ISO_8859_8 = nil
1029
+ ISO_8859_9 = nil
1030
+ ISO_8859_10 = nil
1031
+ ISO_8859_11 = nil
1032
+ ISO_8859_13 = nil
1033
+ ISO_8859_14 = nil
1034
+ ISO_8859_15 = nil
1035
+ ISO_8859_16 = nil
1036
+ KOI8_R = nil
1037
+ KOI8_U = nil
1038
+ Shift_JIS = nil
1039
+ SHIFT_JIS = nil
1040
+ UTF_16BE = nil
1041
+ UTF_16LE = nil
1042
+ UTF_32BE = nil
1043
+ UTF_32LE = nil
1044
+ Windows_31J = nil
1045
+ WINDOWS_31J = nil
1046
+ Windows_1250 = nil
1047
+ WINDOWS_1250 = nil
1048
+ Windows_1251 = nil
1049
+ WINDOWS_1251 = nil
1050
+ Windows_1252 = nil
1051
+ WINDOWS_1252 = nil
1052
+ Windows_1253 = nil
1053
+ WINDOWS_1253 = nil
1054
+ Windows_1254 = nil
1055
+ WINDOWS_1254 = nil
1056
+ Windows_1257 = nil
1057
+ WINDOWS_1257 = nil
1058
+ IBM437 = nil
1059
+ CP437 = nil
1060
+ IBM737 = nil
1061
+ CP737 = nil
1062
+ IBM775 = nil
1063
+ CP775 = nil
1064
+ CP850 = nil
1065
+ IBM850 = nil
1066
+ IBM852 = nil
1067
+ CP852 = nil
1068
+ IBM855 = nil
1069
+ CP855 = nil
1070
+ IBM857 = nil
1071
+ CP857 = nil
1072
+ IBM860 = nil
1073
+ CP860 = nil
1074
+ IBM861 = nil
1075
+ CP861 = nil
1076
+ IBM862 = nil
1077
+ CP862 = nil
1078
+ IBM863 = nil
1079
+ CP863 = nil
1080
+ IBM864 = nil
1081
+ CP864 = nil
1082
+ IBM865 = nil
1083
+ CP865 = nil
1084
+ IBM866 = nil
1085
+ CP866 = nil
1086
+ IBM869 = nil
1087
+ CP869 = nil
1088
+ Windows_1258 = nil
1089
+ WINDOWS_1258 = nil
1090
+ CP1258 = nil
1091
+ GB1988 = nil
1092
+ MacCentEuro = nil
1093
+ MACCENTEURO = nil
1094
+ MacCroatian = nil
1095
+ MACCROATIAN = nil
1096
+ MacCyrillic = nil
1097
+ MACCYRILLIC = nil
1098
+ MacGreek = nil
1099
+ MACGREEK = nil
1100
+ MacIceland = nil
1101
+ MACICELAND = nil
1102
+ MacRoman = nil
1103
+ MACROMAN = nil
1104
+ MacRomania = nil
1105
+ MACROMANIA = nil
1106
+ MacThai = nil
1107
+ MACTHAI = nil
1108
+ MacTurkish = nil
1109
+ MACTURKISH = nil
1110
+ MacUkraine = nil
1111
+ MACUKRAINE = nil
1112
+ CP950 = nil
1113
+ Big5_HKSCS_2008 = nil
1114
+ BIG5_HKSCS_2008 = nil
1115
+ CP951 = nil
1116
+ IBM037 = nil
1117
+ EBCDIC_CP_US = nil
1118
+ Stateless_ISO_2022_JP = nil
1119
+ STATELESS_ISO_2022_JP = nil
1120
+ EucJP = nil
1121
+ EUCJP = nil
1122
+ EucJP_ms = nil
1123
+ EUCJP_MS = nil
1124
+ EUC_JP_MS = nil
1125
+ CP51932 = nil
1126
+ EUC_JIS_2004 = nil
1127
+ EUC_JISX0213 = nil
1128
+ EucKR = nil
1129
+ EUCKR = nil
1130
+ EucTW = nil
1131
+ EUCTW = nil
1132
+ EUC_CN = nil
1133
+ EucCN = nil
1134
+ EUCCN = nil
1135
+ GB12345 = nil
1136
+ CP936 = nil
1137
+ ISO_2022_JP = nil
1138
+ ISO2022_JP = nil
1139
+ ISO_2022_JP_2 = nil
1140
+ ISO2022_JP2 = nil
1141
+ CP50220 = nil
1142
+ CP50221 = nil
1143
+ ISO8859_1 = nil
1144
+ ISO8859_2 = nil
1145
+ ISO8859_3 = nil
1146
+ ISO8859_4 = nil
1147
+ ISO8859_5 = nil
1148
+ ISO8859_6 = nil
1149
+ Windows_1256 = nil
1150
+ WINDOWS_1256 = nil
1151
+ CP1256 = nil
1152
+ ISO8859_7 = nil
1153
+ ISO8859_8 = nil
1154
+ Windows_1255 = nil
1155
+ WINDOWS_1255 = nil
1156
+ CP1255 = nil
1157
+ ISO8859_9 = nil
1158
+ ISO8859_10 = nil
1159
+ ISO8859_11 = nil
1160
+ TIS_620 = nil
1161
+ Windows_874 = nil
1162
+ WINDOWS_874 = nil
1163
+ CP874 = nil
1164
+ ISO8859_13 = nil
1165
+ ISO8859_14 = nil
1166
+ ISO8859_15 = nil
1167
+ ISO8859_16 = nil
1168
+ CP878 = nil
1169
+ MacJapanese = nil
1170
+ MACJAPANESE = nil
1171
+ MacJapan = nil
1172
+ MACJAPAN = nil
1173
+ ASCII = nil
1174
+ ANSI_X3_4_1968 = nil
1175
+ UTF_7 = nil
1176
+ CP65000 = nil
1177
+ CP65001 = nil
1178
+ UTF8_MAC = nil
1179
+ UTF_8_MAC = nil
1180
+ UTF_8_HFS = nil
1181
+ UTF_16 = nil
1182
+ UTF_32 = nil
1183
+ UCS_2BE = nil
1184
+ UCS_4BE = nil
1185
+ UCS_4LE = nil
1186
+ CP932 = nil
1187
+ CsWindows31J = nil
1188
+ CSWINDOWS31J = nil
1189
+ SJIS = nil
1190
+ PCK = nil
1191
+ CP1250 = nil
1192
+ CP1251 = nil
1193
+ CP1252 = nil
1194
+ CP1253 = nil
1195
+ CP1254 = nil
1196
+ CP1257 = nil
1197
+ UTF8_DoCoMo = nil
1198
+ UTF8_DOCOMO = nil
1199
+ SJIS_DoCoMo = nil
1200
+ SJIS_DOCOMO = nil
1201
+ UTF8_KDDI = nil
1202
+ SJIS_KDDI = nil
1203
+ ISO_2022_JP_KDDI = nil
1204
+ Stateless_ISO_2022_JP_KDDI = nil
1205
+ STATELESS_ISO_2022_JP_KDDI = nil
1206
+ UTF8_SoftBank = nil
1207
+ UTF8_SOFTBANK = nil
1208
+ SJIS_SoftBank = nil
1209
+ SJIS_SOFTBANK = nil
1210
+ end
1211
+
1212
+ class EncodingError < StandardError
1213
+ end
1214
+
1215
+ class Encoding::UndefinedConversionError < EncodingError
1216
+ end
1217
+
1218
+ class Encoding::InvalidByteSequenceError < EncodingError
1219
+ end
1220
+
1221
+ class Encoding::ConverterNotFoundError < EncodingError
1222
+ end
1223
+
1224
+ class Encoding::Converter < Data
1225
+ INVALID_MASK = nil
1226
+ INVALID_REPLACE = nil
1227
+ UNDEF_MASK = nil
1228
+ UNDEF_REPLACE = nil
1229
+ UNDEF_HEX_CHARREF = nil
1230
+ PARTIAL_INPUT = nil
1231
+ AFTER_OUTPUT = nil
1232
+ UNIVERSAL_NEWLINE_DECORATOR = nil
1233
+ CRLF_NEWLINE_DECORATOR = nil
1234
+ CR_NEWLINE_DECORATOR = nil
1235
+ XML_TEXT_DECORATOR = nil
1236
+ XML_ATTR_CONTENT_DECORATOR = nil
1237
+ XML_ATTR_QUOTE_DECORATOR = nil
1238
+ end
1239
+
1240
+ class Encoding::CompatibilityError < EncodingError
1241
+ end
1242
+
1243
+ class ZeroDivisionError < StandardError
1244
+ end
1245
+
1246
+ class RangeError < StandardError
1247
+ end
1248
+
1249
+ class FloatDomainError < RangeError
1250
+ end
1251
+
1252
+ class Complex < Numeric
1253
+ I = nil
1254
+
1255
+ def to_r => Rational; end
1256
+
1257
+ undef negative?
1258
+ undef positive?
1259
+ end
1260
+
1261
+ class Enumerator::[EnumType] < Object
1262
+ include Enumerable::[EnumType]
1263
+ end
1264
+
1265
+ class Enumerator::Lazy < Enumerator
1266
+ end
1267
+
1268
+ class Enumerator::Generator::[EnumType] < Object
1269
+ include Enumerable::[EnumType]
1270
+ end
1271
+
1272
+ class Enumerator::Yielder::[EnumType] < Object
1273
+ end
1274
+
1275
+ class Struct < Object
1276
+ include Enumerable::[:any]
1277
+ end
1278
+
1279
+ module Process
1280
+ WNOHANG = nil
1281
+ WUNTRACED = nil
1282
+ PRIO_PROCESS = nil
1283
+ PRIO_PGRP = nil
1284
+ PRIO_USER = nil
1285
+ RLIM_SAVED_MAX = nil
1286
+ RLIM_INFINITY = nil
1287
+ RLIM_SAVED_CUR = nil
1288
+ RLIMIT_AS = nil
1289
+ RLIMIT_CORE = nil
1290
+ RLIMIT_CPU = nil
1291
+ RLIMIT_DATA = nil
1292
+ RLIMIT_FSIZE = nil
1293
+ RLIMIT_MEMLOCK = nil
1294
+ RLIMIT_NOFILE = nil
1295
+ RLIMIT_NPROC = nil
1296
+ RLIMIT_RSS = nil
1297
+ RLIMIT_STACK = nil
1298
+ CLOCK_REALTIME = nil
1299
+ CLOCK_MONOTONIC = nil
1300
+ CLOCK_PROCESS_CPUTIME_ID = nil
1301
+ CLOCK_THREAD_CPUTIME_ID = nil
1302
+ CLOCK_MONOTONIC_RAW = nil
1303
+ CLOCK_MONOTONIC_RAW_APPROX = nil
1304
+ CLOCK_UPTIME_RAW = nil
1305
+ CLOCK_UPTIME_RAW_APPROX = nil
1306
+ end
1307
+
1308
+ class Process::Tms < Struct
1309
+ end
1310
+
1311
+ class Thread < Object
1312
+ end
1313
+
1314
+ class Process::Waiter < Thread
1315
+ end
1316
+
1317
+ class Thread::Backtrace < Object
1318
+ end
1319
+
1320
+ class Thread::Backtrace::Location < Object
1321
+ end
1322
+
1323
+ class Thread::Mutex < Object
1324
+ end
1325
+
1326
+ Mutex = Thread::Mutex
1327
+
1328
+ class Thread::Queue < Object
1329
+ end
1330
+
1331
+ class Thread::SizedQueue < Thread::Queue
1332
+ end
1333
+
1334
+ class Thread::ConditionVariable < Object
1335
+ end
1336
+
1337
+ class Process::Status < Object
1338
+ end
1339
+
1340
+ module Process::UID
1341
+ end
1342
+
1343
+ module Process::GID
1344
+ end
1345
+
1346
+ module Process::Sys
1347
+ end
1348
+
1349
+ module Etc
1350
+ SC_SAVED_IDS = nil
1351
+ SC_SEMAPHORES = nil
1352
+ SC_SHARED_MEMORY_OBJECTS = nil
1353
+ SC_SHELL = nil
1354
+ SC_SPAWN = nil
1355
+ SC_SPIN_LOCKS = nil
1356
+ SC_SPORADIC_SERVER = nil
1357
+ SC_SS_REPL_MAX = nil
1358
+ SC_SYNCHRONIZED_IO = nil
1359
+ SC_THREAD_ATTR_STACKADDR = nil
1360
+ SC_THREAD_ATTR_STACKSIZE = nil
1361
+ SC_THREAD_CPUTIME = nil
1362
+ SC_THREAD_PRIO_INHERIT = nil
1363
+ SC_THREAD_PRIO_PROTECT = nil
1364
+ SC_THREAD_PRIORITY_SCHEDULING = nil
1365
+ SC_THREAD_PROCESS_SHARED = nil
1366
+ SC_THREAD_SAFE_FUNCTIONS = nil
1367
+ SC_THREAD_SPORADIC_SERVER = nil
1368
+ SC_THREADS = nil
1369
+ SC_TIMEOUTS = nil
1370
+ SC_TIMERS = nil
1371
+ SC_TRACE = nil
1372
+ SC_TRACE_EVENT_FILTER = nil
1373
+ SC_TRACE_EVENT_NAME_MAX = nil
1374
+ SC_TRACE_INHERIT = nil
1375
+ SC_TRACE_LOG = nil
1376
+ SC_TRACE_NAME_MAX = nil
1377
+ SC_TRACE_SYS_MAX = nil
1378
+ SC_TRACE_USER_EVENT_MAX = nil
1379
+ SC_TYPED_MEMORY_OBJECTS = nil
1380
+ SC_VERSION = nil
1381
+ SC_V6_ILP32_OFF32 = nil
1382
+ SC_V6_ILP32_OFFBIG = nil
1383
+ SC_V6_LP64_OFF64 = nil
1384
+ SC_V6_LPBIG_OFFBIG = nil
1385
+ SC_2_C_BIND = nil
1386
+ SC_2_C_DEV = nil
1387
+ SC_2_CHAR_TERM = nil
1388
+ SC_2_FORT_DEV = nil
1389
+ SC_2_FORT_RUN = nil
1390
+ SC_2_LOCALEDEF = nil
1391
+ SC_2_PBS = nil
1392
+ SC_2_PBS_ACCOUNTING = nil
1393
+ SC_2_PBS_CHECKPOINT = nil
1394
+ SC_2_PBS_LOCATE = nil
1395
+ SC_2_PBS_MESSAGE = nil
1396
+ SC_2_PBS_TRACK = nil
1397
+ SC_2_SW_DEV = nil
1398
+ SC_2_UPE = nil
1399
+ SC_2_VERSION = nil
1400
+ SC_PAGE_SIZE = nil
1401
+ SC_PAGESIZE = nil
1402
+ SC_THREAD_DESTRUCTOR_ITERATIONS = nil
1403
+ SC_THREAD_KEYS_MAX = nil
1404
+ SC_THREAD_STACK_MIN = nil
1405
+ SC_THREAD_THREADS_MAX = nil
1406
+ SC_RE_DUP_MAX = nil
1407
+ SC_RTSIG_MAX = nil
1408
+ SC_SEM_NSEMS_MAX = nil
1409
+ SC_SEM_VALUE_MAX = nil
1410
+ SC_SIGQUEUE_MAX = nil
1411
+ SC_STREAM_MAX = nil
1412
+ SC_SYMLOOP_MAX = nil
1413
+ SC_TIMER_MAX = nil
1414
+ SC_TTY_NAME_MAX = nil
1415
+ SC_TZNAME_MAX = nil
1416
+ SC_XOPEN_CRYPT = nil
1417
+ SC_XOPEN_ENH_I18N = nil
1418
+ SC_XOPEN_REALTIME = nil
1419
+ SC_XOPEN_REALTIME_THREADS = nil
1420
+ SC_XOPEN_SHM = nil
1421
+ SC_XOPEN_STREAMS = nil
1422
+ SC_XOPEN_UNIX = nil
1423
+ SC_XOPEN_VERSION = nil
1424
+ SC_PHYS_PAGES = nil
1425
+ SC_NPROCESSORS_CONF = nil
1426
+ SC_NPROCESSORS_ONLN = nil
1427
+ CS_PATH = nil
1428
+ CS_POSIX_V6_ILP32_OFF32_CFLAGS = nil
1429
+ CS_POSIX_V6_ILP32_OFF32_LDFLAGS = nil
1430
+ CS_POSIX_V6_ILP32_OFF32_LIBS = nil
1431
+ CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = nil
1432
+ CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = nil
1433
+ CS_POSIX_V6_ILP32_OFFBIG_LIBS = nil
1434
+ CS_POSIX_V6_LP64_OFF64_CFLAGS = nil
1435
+ CS_POSIX_V6_LP64_OFF64_LDFLAGS = nil
1436
+ CS_POSIX_V6_LP64_OFF64_LIBS = nil
1437
+ CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = nil
1438
+ CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = nil
1439
+ CS_POSIX_V6_LPBIG_OFFBIG_LIBS = nil
1440
+ CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = nil
1441
+ PC_FILESIZEBITS = nil
1442
+ PC_LINK_MAX = nil
1443
+ PC_MAX_CANON = nil
1444
+ PC_MAX_INPUT = nil
1445
+ PC_NAME_MAX = nil
1446
+ PC_PATH_MAX = nil
1447
+ PC_PIPE_BUF = nil
1448
+ PC_2_SYMLINKS = nil
1449
+ PC_ALLOC_SIZE_MIN = nil
1450
+ PC_REC_INCR_XFER_SIZE = nil
1451
+ PC_REC_MAX_XFER_SIZE = nil
1452
+ PC_REC_MIN_XFER_SIZE = nil
1453
+ PC_REC_XFER_ALIGN = nil
1454
+ PC_SYMLINK_MAX = nil
1455
+ PC_CHOWN_RESTRICTED = nil
1456
+ PC_NO_TRUNC = nil
1457
+ PC_VDISABLE = nil
1458
+ PC_ASYNC_IO = nil
1459
+ PC_PRIO_IO = nil
1460
+ PC_SYNC_IO = nil
1461
+ SC_AIO_LISTIO_MAX = nil
1462
+ SC_AIO_MAX = nil
1463
+ SC_AIO_PRIO_DELTA_MAX = nil
1464
+ SC_ARG_MAX = nil
1465
+ SC_ATEXIT_MAX = nil
1466
+ SC_BC_BASE_MAX = nil
1467
+ SC_BC_DIM_MAX = nil
1468
+ SC_BC_SCALE_MAX = nil
1469
+ SC_BC_STRING_MAX = nil
1470
+ SC_CHILD_MAX = nil
1471
+ SC_CLK_TCK = nil
1472
+ SC_COLL_WEIGHTS_MAX = nil
1473
+ SC_DELAYTIMER_MAX = nil
1474
+ SC_EXPR_NEST_MAX = nil
1475
+ SC_HOST_NAME_MAX = nil
1476
+ SC_IOV_MAX = nil
1477
+ SC_LINE_MAX = nil
1478
+ SC_LOGIN_NAME_MAX = nil
1479
+ SC_NGROUPS_MAX = nil
1480
+ SC_GETGR_R_SIZE_MAX = nil
1481
+ SC_GETPW_R_SIZE_MAX = nil
1482
+ SC_MQ_OPEN_MAX = nil
1483
+ SC_MQ_PRIO_MAX = nil
1484
+ SC_OPEN_MAX = nil
1485
+ SC_ADVISORY_INFO = nil
1486
+ SC_BARRIERS = nil
1487
+ SC_ASYNCHRONOUS_IO = nil
1488
+ SC_CLOCK_SELECTION = nil
1489
+ SC_CPUTIME = nil
1490
+ SC_FSYNC = nil
1491
+ SC_IPV6 = nil
1492
+ SC_JOB_CONTROL = nil
1493
+ SC_MAPPED_FILES = nil
1494
+ SC_MEMLOCK = nil
1495
+ SC_MEMLOCK_RANGE = nil
1496
+ SC_MEMORY_PROTECTION = nil
1497
+ SC_MESSAGE_PASSING = nil
1498
+ SC_MONOTONIC_CLOCK = nil
1499
+ SC_PRIORITIZED_IO = nil
1500
+ SC_PRIORITY_SCHEDULING = nil
1501
+ SC_RAW_SOCKETS = nil
1502
+ SC_READER_WRITER_LOCKS = nil
1503
+ SC_REALTIME_SIGNALS = nil
1504
+ SC_REGEXP = nil
1505
+ end
1506
+
1507
+ class Etc::Passwd < Struct
1508
+ end
1509
+
1510
+ class Etc::Group < Struct
1511
+ end
1512
+
1513
+ class RegexpError < StandardError
1514
+ end
1515
+
1516
+ class IndexError < StandardError
1517
+ end
1518
+
1519
+ class StopIteration < IndexError
1520
+ end
1521
+
1522
+ class RubyVM < Object
1523
+ OPTS = nil
1524
+ INSTRUCTION_NAMES = nil
1525
+ DEFAULT_PARAMS = nil
1526
+ end
1527
+
1528
+ class RubyVM::InstructionSequence < Object
1529
+ end
1530
+
1531
+ class Regexp < Object
1532
+ IGNORECASE = (nil : Integer)
1533
+ EXTENDED = (nil : Integer)
1534
+ MULTILINE = (nil : Integer)
1535
+ FIXEDENCODING = (nil : Integer)
1536
+ NOENCODING = (nil : Integer)
1537
+
1538
+ def initialize(String pattern, (Integer | Boolean | nil) options = nil) => nil; end
1539
+
1540
+ def match(String str, Integer pos = 0) => ~MatchData; end
1541
+
1542
+ def ===(String str) => Boolean; end
1543
+ end
1544
+
1545
+ class StdlibDumper < Object
1546
+ CYCLIC_DEPENDENCIES = nil
1547
+ DEFERRED_INCLUDES = nil
1548
+ end
1549
+
1550
+ class TracePoint < Object
1551
+ end
1552
+
1553
+ class MatchData < Object
1554
+ end
1555
+
1556
+ class Addrinfo < Data
1557
+ end
1558
+
1559
+ class Socket < BasicSocket
1560
+ SOCK_STREAM = nil
1561
+ SOCK_DGRAM = nil
1562
+ SOCK_RAW = nil
1563
+ SOCK_RDM = nil
1564
+ SOCK_SEQPACKET = nil
1565
+ AF_UNSPEC = nil
1566
+ PF_UNSPEC = nil
1567
+ PF_INET = nil
1568
+ PF_INET6 = nil
1569
+ PF_UNIX = nil
1570
+ AF_IPX = nil
1571
+ PF_IPX = nil
1572
+ AF_APPLETALK = nil
1573
+ PF_APPLETALK = nil
1574
+ AF_LOCAL = nil
1575
+ PF_LOCAL = nil
1576
+ AF_IMPLINK = nil
1577
+ PF_IMPLINK = nil
1578
+ AF_PUP = nil
1579
+ PF_PUP = nil
1580
+ AF_CHAOS = nil
1581
+ PF_CHAOS = nil
1582
+ AF_NS = nil
1583
+ PF_NS = nil
1584
+ AF_ISO = nil
1585
+ PF_ISO = nil
1586
+ AF_OSI = nil
1587
+ PF_OSI = nil
1588
+ AF_ECMA = nil
1589
+ PF_ECMA = nil
1590
+ PF_DATAKIT = nil
1591
+ AF_CCITT = nil
1592
+ AF_DATAKIT = nil
1593
+ PF_CCITT = nil
1594
+ PF_SNA = nil
1595
+ AF_DLI = nil
1596
+ AF_SNA = nil
1597
+ PF_DLI = nil
1598
+ PF_LAT = nil
1599
+ AF_HYLINK = nil
1600
+ AF_LAT = nil
1601
+ PF_HYLINK = nil
1602
+ PF_ROUTE = nil
1603
+ AF_LINK = nil
1604
+ AF_ROUTE = nil
1605
+ PF_LINK = nil
1606
+ PF_COIP = nil
1607
+ AF_CNT = nil
1608
+ AF_COIP = nil
1609
+ PF_CNT = nil
1610
+ PF_SIP = nil
1611
+ AF_NDRV = nil
1612
+ AF_SIP = nil
1613
+ PF_NDRV = nil
1614
+ PF_ISDN = nil
1615
+ AF_NATM = nil
1616
+ AF_ISDN = nil
1617
+ PF_NATM = nil
1618
+ PF_SYSTEM = nil
1619
+ AF_NETBIOS = nil
1620
+ AF_SYSTEM = nil
1621
+ PF_NETBIOS = nil
1622
+ PF_PPP = nil
1623
+ AF_MAX = nil
1624
+ AF_PPP = nil
1625
+ PF_MAX = nil
1626
+ PF_XTP = nil
1627
+ PF_RTIP = nil
1628
+ AF_E164 = nil
1629
+ PF_PIP = nil
1630
+ MSG_OOB = nil
1631
+ MSG_PEEK = nil
1632
+ MSG_DONTROUTE = nil
1633
+ MSG_EOR = nil
1634
+ MSG_TRUNC = nil
1635
+ MSG_CTRUNC = nil
1636
+ MSG_WAITALL = nil
1637
+ MSG_DONTWAIT = nil
1638
+ MSG_EOF = nil
1639
+ PF_KEY = nil
1640
+ MSG_FLUSH = nil
1641
+ MSG_HOLD = nil
1642
+ MSG_SEND = nil
1643
+ MSG_HAVEMORE = nil
1644
+ MSG_RCVMORE = nil
1645
+ SOL_SOCKET = nil
1646
+ IPPROTO_IP = nil
1647
+ IPPROTO_ICMP = nil
1648
+ IPPROTO_IGMP = nil
1649
+ IPPROTO_GGP = nil
1650
+ IPPROTO_TCP = nil
1651
+ IPPROTO_EGP = nil
1652
+ IPPROTO_PUP = nil
1653
+ IPPROTO_IDP = nil
1654
+ IPPROTO_HELLO = nil
1655
+ IPPROTO_UDP = nil
1656
+ IPPROTO_ND = nil
1657
+ IPPROTO_TP = nil
1658
+ IPPROTO_EON = nil
1659
+ IPPROTO_AH = nil
1660
+ IPPROTO_XTP = nil
1661
+ IPPROTO_ESP = nil
1662
+ IPPROTO_FRAGMENT = nil
1663
+ IPPROTO_DSTOPTS = nil
1664
+ IPPROTO_ICMPV6 = nil
1665
+ IPPROTO_IPV6 = nil
1666
+ IPPROTO_HOPOPTS = nil
1667
+ IPPROTO_ROUTING = nil
1668
+ IPPROTO_RAW = nil
1669
+ IPPROTO_NONE = nil
1670
+ IPPORT_RESERVED = nil
1671
+ IPPORT_USERRESERVED = nil
1672
+ IPPROTO_MAX = nil
1673
+ INADDR_BROADCAST = nil
1674
+ INADDR_LOOPBACK = nil
1675
+ INADDR_ANY = nil
1676
+ INADDR_ALLHOSTS_GROUP = nil
1677
+ INADDR_MAX_LOCAL_GROUP = nil
1678
+ INADDR_UNSPEC_GROUP = nil
1679
+ IP_OPTIONS = nil
1680
+ IP_HDRINCL = nil
1681
+ INADDR_NONE = nil
1682
+ IP_TTL = nil
1683
+ IP_RECVOPTS = nil
1684
+ IP_TOS = nil
1685
+ IP_RECVDSTADDR = nil
1686
+ IP_RETOPTS = nil
1687
+ IP_RECVRETOPTS = nil
1688
+ IP_RECVIF = nil
1689
+ IP_PORTRANGE = nil
1690
+ IP_RECVTTL = nil
1691
+ IP_MULTICAST_TTL = nil
1692
+ IP_MULTICAST_LOOP = nil
1693
+ IP_MULTICAST_IF = nil
1694
+ IP_DROP_MEMBERSHIP = nil
1695
+ IP_DEFAULT_MULTICAST_TTL = nil
1696
+ IP_ADD_MEMBERSHIP = nil
1697
+ IP_MAX_MEMBERSHIPS = nil
1698
+ IP_PKTINFO = nil
1699
+ IP_DEFAULT_MULTICAST_LOOP = nil
1700
+ IP_UNBLOCK_SOURCE = nil
1701
+ IP_BLOCK_SOURCE = nil
1702
+ IP_IPSEC_POLICY = nil
1703
+ IP_DROP_SOURCE_MEMBERSHIP = nil
1704
+ IP_MSFILTER = nil
1705
+ IP_ADD_SOURCE_MEMBERSHIP = nil
1706
+ MCAST_BLOCK_SOURCE = nil
1707
+ MCAST_UNBLOCK_SOURCE = nil
1708
+ MCAST_JOIN_GROUP = nil
1709
+ MCAST_JOIN_SOURCE_GROUP = nil
1710
+ MCAST_LEAVE_SOURCE_GROUP = nil
1711
+ MCAST_LEAVE_GROUP = nil
1712
+ MCAST_INCLUDE = nil
1713
+ SO_DEBUG = nil
1714
+ MCAST_EXCLUDE = nil
1715
+ SO_REUSEPORT = nil
1716
+ SO_TYPE = nil
1717
+ SO_REUSEADDR = nil
1718
+ SO_DONTROUTE = nil
1719
+ SO_BROADCAST = nil
1720
+ SO_ERROR = nil
1721
+ SO_RCVBUF = nil
1722
+ SO_KEEPALIVE = nil
1723
+ SO_SNDBUF = nil
1724
+ SO_OOBINLINE = nil
1725
+ SO_LINGER = nil
1726
+ SO_RCVLOWAT = nil
1727
+ SO_SNDLOWAT = nil
1728
+ SO_RCVTIMEO = nil
1729
+ SO_SNDTIMEO = nil
1730
+ SO_ACCEPTCONN = nil
1731
+ SO_USELOOPBACK = nil
1732
+ SO_DONTTRUNC = nil
1733
+ SO_WANTMORE = nil
1734
+ SO_WANTOOBFLAG = nil
1735
+ SO_NREAD = nil
1736
+ SO_NKE = nil
1737
+ SO_NOSIGPIPE = nil
1738
+ SO_TIMESTAMP = nil
1739
+ TCP_NODELAY = nil
1740
+ TCP_MAXSEG = nil
1741
+ TCP_KEEPCNT = nil
1742
+ TCP_KEEPINTVL = nil
1743
+ TCP_NOOPT = nil
1744
+ TCP_NOPUSH = nil
1745
+ TCP_FASTOPEN = nil
1746
+ EAI_ADDRFAMILY = nil
1747
+ EAI_AGAIN = nil
1748
+ EAI_BADFLAGS = nil
1749
+ EAI_FAIL = nil
1750
+ EAI_FAMILY = nil
1751
+ EAI_MEMORY = nil
1752
+ EAI_NODATA = nil
1753
+ EAI_NONAME = nil
1754
+ EAI_OVERFLOW = nil
1755
+ EAI_SERVICE = nil
1756
+ EAI_SOCKTYPE = nil
1757
+ EAI_SYSTEM = nil
1758
+ EAI_BADHINTS = nil
1759
+ EAI_PROTOCOL = nil
1760
+ EAI_MAX = nil
1761
+ AI_CANONNAME = nil
1762
+ AI_NUMERICHOST = nil
1763
+ AI_NUMERICSERV = nil
1764
+ AI_MASK = nil
1765
+ AI_ALL = nil
1766
+ AI_V4MAPPED_CFG = nil
1767
+ AI_ADDRCONFIG = nil
1768
+ AI_V4MAPPED = nil
1769
+ AI_DEFAULT = nil
1770
+ NI_MAXHOST = nil
1771
+ NI_MAXSERV = nil
1772
+ NI_NOFQDN = nil
1773
+ NI_NUMERICHOST = nil
1774
+ NI_NAMEREQD = nil
1775
+ NI_NUMERICSERV = nil
1776
+ NI_DGRAM = nil
1777
+ SHUT_RD = nil
1778
+ SHUT_WR = nil
1779
+ SHUT_RDWR = nil
1780
+ IPV6_JOIN_GROUP = nil
1781
+ IPV6_LEAVE_GROUP = nil
1782
+ IPV6_MULTICAST_HOPS = nil
1783
+ IPV6_MULTICAST_IF = nil
1784
+ IPV6_MULTICAST_LOOP = nil
1785
+ IPV6_UNICAST_HOPS = nil
1786
+ IPV6_CHECKSUM = nil
1787
+ IPV6_DONTFRAG = nil
1788
+ IPV6_DSTOPTS = nil
1789
+ IPV6_HOPLIMIT = nil
1790
+ IPV6_HOPOPTS = nil
1791
+ IPV6_NEXTHOP = nil
1792
+ IPV6_PATHMTU = nil
1793
+ IPV6_RECVDSTOPTS = nil
1794
+ IPV6_RECVHOPLIMIT = nil
1795
+ IPV6_RECVHOPOPTS = nil
1796
+ IPV6_RECVRTHDR = nil
1797
+ IPV6_RECVTCLASS = nil
1798
+ IPV6_RTHDR = nil
1799
+ IPV6_RTHDRDSTOPTS = nil
1800
+ IPV6_RTHDR_TYPE_0 = nil
1801
+ IPV6_RECVPATHMTU = nil
1802
+ IPV6_TCLASS = nil
1803
+ IPV6_USE_MIN_MTU = nil
1804
+ INET_ADDRSTRLEN = nil
1805
+ INET6_ADDRSTRLEN = nil
1806
+ IFNAMSIZ = nil
1807
+ IF_NAMESIZE = nil
1808
+ SCM_RIGHTS = nil
1809
+ SCM_TIMESTAMP = nil
1810
+ SCM_CREDS = nil
1811
+ LOCAL_PEERCRED = nil
1812
+ IFF_ALLMULTI = nil
1813
+ IFF_ALTPHYS = nil
1814
+ IFF_BROADCAST = nil
1815
+ IFF_DEBUG = nil
1816
+ IFF_LINK0 = nil
1817
+ IFF_LINK1 = nil
1818
+ IFF_LINK2 = nil
1819
+ IFF_LOOPBACK = nil
1820
+ IFF_MULTICAST = nil
1821
+ IFF_NOARP = nil
1822
+ IFF_NOTRAILERS = nil
1823
+ IFF_OACTIVE = nil
1824
+ IFF_POINTOPOINT = nil
1825
+ IFF_PROMISC = nil
1826
+ IFF_RUNNING = nil
1827
+ IFF_SIMPLEX = nil
1828
+ IFF_UP = nil
1829
+ SOMAXCONN = nil
1830
+ AF_INET = nil
1831
+ AF_INET6 = nil
1832
+ AF_UNIX = nil
1833
+ IPV6_V6ONLY = nil
1834
+ AI_PASSIVE = nil
1835
+ IPV6_RECVPKTINFO = nil
1836
+ IPV6_PKTINFO = nil
1837
+
1838
+ def self.gethostname => String; end
1839
+ end
1840
+
1841
+ class Socket::Option < Object
1842
+ end
1843
+
1844
+ class Socket::Ifaddr < Data
1845
+ end
1846
+
1847
+ module Socket::Constants
1848
+ SOCK_STREAM = nil
1849
+ SOCK_DGRAM = nil
1850
+ SOCK_RAW = nil
1851
+ SOCK_RDM = nil
1852
+ SOCK_SEQPACKET = nil
1853
+ AF_UNSPEC = nil
1854
+ PF_UNSPEC = nil
1855
+ PF_INET = nil
1856
+ PF_INET6 = nil
1857
+ PF_UNIX = nil
1858
+ AF_IPX = nil
1859
+ PF_IPX = nil
1860
+ AF_APPLETALK = nil
1861
+ PF_APPLETALK = nil
1862
+ AF_LOCAL = nil
1863
+ PF_LOCAL = nil
1864
+ AF_IMPLINK = nil
1865
+ PF_IMPLINK = nil
1866
+ AF_PUP = nil
1867
+ PF_PUP = nil
1868
+ AF_CHAOS = nil
1869
+ PF_CHAOS = nil
1870
+ AF_NS = nil
1871
+ PF_NS = nil
1872
+ AF_ISO = nil
1873
+ PF_ISO = nil
1874
+ AF_OSI = nil
1875
+ PF_OSI = nil
1876
+ AF_ECMA = nil
1877
+ PF_ECMA = nil
1878
+ AF_DATAKIT = nil
1879
+ PF_DATAKIT = nil
1880
+ AF_CCITT = nil
1881
+ PF_CCITT = nil
1882
+ AF_SNA = nil
1883
+ PF_SNA = nil
1884
+ AF_DLI = nil
1885
+ PF_DLI = nil
1886
+ AF_LAT = nil
1887
+ PF_LAT = nil
1888
+ AF_HYLINK = nil
1889
+ PF_HYLINK = nil
1890
+ AF_ROUTE = nil
1891
+ PF_ROUTE = nil
1892
+ AF_LINK = nil
1893
+ PF_LINK = nil
1894
+ AF_COIP = nil
1895
+ PF_COIP = nil
1896
+ AF_CNT = nil
1897
+ PF_CNT = nil
1898
+ AF_SIP = nil
1899
+ PF_SIP = nil
1900
+ AF_NDRV = nil
1901
+ PF_NDRV = nil
1902
+ AF_ISDN = nil
1903
+ PF_ISDN = nil
1904
+ AF_NATM = nil
1905
+ PF_NATM = nil
1906
+ AF_SYSTEM = nil
1907
+ PF_SYSTEM = nil
1908
+ AF_NETBIOS = nil
1909
+ PF_NETBIOS = nil
1910
+ AF_PPP = nil
1911
+ PF_PPP = nil
1912
+ AF_MAX = nil
1913
+ PF_MAX = nil
1914
+ AF_E164 = nil
1915
+ PF_XTP = nil
1916
+ PF_RTIP = nil
1917
+ PF_PIP = nil
1918
+ PF_KEY = nil
1919
+ MSG_OOB = nil
1920
+ MSG_PEEK = nil
1921
+ MSG_DONTROUTE = nil
1922
+ MSG_EOR = nil
1923
+ MSG_TRUNC = nil
1924
+ MSG_CTRUNC = nil
1925
+ MSG_WAITALL = nil
1926
+ MSG_DONTWAIT = nil
1927
+ MSG_EOF = nil
1928
+ MSG_FLUSH = nil
1929
+ MSG_HOLD = nil
1930
+ MSG_SEND = nil
1931
+ MSG_HAVEMORE = nil
1932
+ MSG_RCVMORE = nil
1933
+ SOL_SOCKET = nil
1934
+ IPPROTO_IP = nil
1935
+ IPPROTO_ICMP = nil
1936
+ IPPROTO_IGMP = nil
1937
+ IPPROTO_GGP = nil
1938
+ IPPROTO_TCP = nil
1939
+ IPPROTO_EGP = nil
1940
+ IPPROTO_PUP = nil
1941
+ IPPROTO_UDP = nil
1942
+ IPPROTO_IDP = nil
1943
+ IPPROTO_HELLO = nil
1944
+ IPPROTO_ND = nil
1945
+ IPPROTO_TP = nil
1946
+ IPPROTO_XTP = nil
1947
+ IPPROTO_EON = nil
1948
+ IPPROTO_AH = nil
1949
+ IPPROTO_DSTOPTS = nil
1950
+ IPPROTO_ESP = nil
1951
+ IPPROTO_FRAGMENT = nil
1952
+ IPPROTO_HOPOPTS = nil
1953
+ IPPROTO_ICMPV6 = nil
1954
+ IPPROTO_IPV6 = nil
1955
+ IPPROTO_NONE = nil
1956
+ IPPROTO_ROUTING = nil
1957
+ IPPROTO_RAW = nil
1958
+ IPPROTO_MAX = nil
1959
+ IPPORT_RESERVED = nil
1960
+ IPPORT_USERRESERVED = nil
1961
+ INADDR_ANY = nil
1962
+ INADDR_BROADCAST = nil
1963
+ INADDR_LOOPBACK = nil
1964
+ INADDR_UNSPEC_GROUP = nil
1965
+ INADDR_ALLHOSTS_GROUP = nil
1966
+ INADDR_MAX_LOCAL_GROUP = nil
1967
+ INADDR_NONE = nil
1968
+ IP_OPTIONS = nil
1969
+ IP_HDRINCL = nil
1970
+ IP_TOS = nil
1971
+ IP_TTL = nil
1972
+ IP_RECVOPTS = nil
1973
+ IP_RECVRETOPTS = nil
1974
+ IP_RECVDSTADDR = nil
1975
+ IP_RETOPTS = nil
1976
+ IP_RECVTTL = nil
1977
+ IP_RECVIF = nil
1978
+ IP_PORTRANGE = nil
1979
+ IP_MULTICAST_IF = nil
1980
+ IP_MULTICAST_TTL = nil
1981
+ IP_MULTICAST_LOOP = nil
1982
+ IP_ADD_MEMBERSHIP = nil
1983
+ IP_DROP_MEMBERSHIP = nil
1984
+ IP_DEFAULT_MULTICAST_TTL = nil
1985
+ IP_DEFAULT_MULTICAST_LOOP = nil
1986
+ IP_MAX_MEMBERSHIPS = nil
1987
+ IP_PKTINFO = nil
1988
+ IP_IPSEC_POLICY = nil
1989
+ IP_UNBLOCK_SOURCE = nil
1990
+ IP_BLOCK_SOURCE = nil
1991
+ IP_ADD_SOURCE_MEMBERSHIP = nil
1992
+ IP_DROP_SOURCE_MEMBERSHIP = nil
1993
+ IP_MSFILTER = nil
1994
+ MCAST_JOIN_GROUP = nil
1995
+ MCAST_BLOCK_SOURCE = nil
1996
+ MCAST_UNBLOCK_SOURCE = nil
1997
+ MCAST_LEAVE_GROUP = nil
1998
+ MCAST_JOIN_SOURCE_GROUP = nil
1999
+ MCAST_LEAVE_SOURCE_GROUP = nil
2000
+ MCAST_EXCLUDE = nil
2001
+ MCAST_INCLUDE = nil
2002
+ SO_DEBUG = nil
2003
+ SO_REUSEADDR = nil
2004
+ SO_REUSEPORT = nil
2005
+ SO_TYPE = nil
2006
+ SO_ERROR = nil
2007
+ SO_DONTROUTE = nil
2008
+ SO_BROADCAST = nil
2009
+ SO_SNDBUF = nil
2010
+ SO_RCVBUF = nil
2011
+ SO_KEEPALIVE = nil
2012
+ SO_OOBINLINE = nil
2013
+ SO_LINGER = nil
2014
+ SO_RCVLOWAT = nil
2015
+ SO_SNDLOWAT = nil
2016
+ SO_RCVTIMEO = nil
2017
+ SO_SNDTIMEO = nil
2018
+ SO_ACCEPTCONN = nil
2019
+ SO_USELOOPBACK = nil
2020
+ SO_DONTTRUNC = nil
2021
+ SO_WANTMORE = nil
2022
+ SO_WANTOOBFLAG = nil
2023
+ SO_NREAD = nil
2024
+ SO_NKE = nil
2025
+ SO_NOSIGPIPE = nil
2026
+ SO_TIMESTAMP = nil
2027
+ TCP_NODELAY = nil
2028
+ TCP_MAXSEG = nil
2029
+ TCP_KEEPCNT = nil
2030
+ TCP_KEEPINTVL = nil
2031
+ TCP_NOOPT = nil
2032
+ TCP_NOPUSH = nil
2033
+ TCP_FASTOPEN = nil
2034
+ EAI_ADDRFAMILY = nil
2035
+ EAI_AGAIN = nil
2036
+ EAI_BADFLAGS = nil
2037
+ EAI_FAIL = nil
2038
+ EAI_FAMILY = nil
2039
+ EAI_MEMORY = nil
2040
+ EAI_NODATA = nil
2041
+ EAI_NONAME = nil
2042
+ EAI_OVERFLOW = nil
2043
+ EAI_SERVICE = nil
2044
+ EAI_SOCKTYPE = nil
2045
+ EAI_SYSTEM = nil
2046
+ EAI_BADHINTS = nil
2047
+ EAI_PROTOCOL = nil
2048
+ EAI_MAX = nil
2049
+ AI_CANONNAME = nil
2050
+ AI_NUMERICHOST = nil
2051
+ AI_NUMERICSERV = nil
2052
+ AI_MASK = nil
2053
+ AI_ALL = nil
2054
+ AI_V4MAPPED_CFG = nil
2055
+ AI_ADDRCONFIG = nil
2056
+ AI_V4MAPPED = nil
2057
+ AI_DEFAULT = nil
2058
+ NI_MAXHOST = nil
2059
+ NI_MAXSERV = nil
2060
+ NI_NOFQDN = nil
2061
+ NI_NUMERICHOST = nil
2062
+ NI_NAMEREQD = nil
2063
+ NI_NUMERICSERV = nil
2064
+ NI_DGRAM = nil
2065
+ SHUT_RD = nil
2066
+ SHUT_WR = nil
2067
+ SHUT_RDWR = nil
2068
+ IPV6_JOIN_GROUP = nil
2069
+ IPV6_LEAVE_GROUP = nil
2070
+ IPV6_MULTICAST_HOPS = nil
2071
+ IPV6_MULTICAST_IF = nil
2072
+ IPV6_MULTICAST_LOOP = nil
2073
+ IPV6_UNICAST_HOPS = nil
2074
+ IPV6_CHECKSUM = nil
2075
+ IPV6_DONTFRAG = nil
2076
+ IPV6_DSTOPTS = nil
2077
+ IPV6_HOPLIMIT = nil
2078
+ IPV6_HOPOPTS = nil
2079
+ IPV6_NEXTHOP = nil
2080
+ IPV6_PATHMTU = nil
2081
+ IPV6_RECVDSTOPTS = nil
2082
+ IPV6_RECVHOPLIMIT = nil
2083
+ IPV6_RECVHOPOPTS = nil
2084
+ IPV6_RECVRTHDR = nil
2085
+ IPV6_RECVTCLASS = nil
2086
+ IPV6_RTHDR = nil
2087
+ IPV6_RTHDRDSTOPTS = nil
2088
+ IPV6_RTHDR_TYPE_0 = nil
2089
+ IPV6_RECVPATHMTU = nil
2090
+ IPV6_TCLASS = nil
2091
+ IPV6_USE_MIN_MTU = nil
2092
+ INET_ADDRSTRLEN = nil
2093
+ INET6_ADDRSTRLEN = nil
2094
+ IFNAMSIZ = nil
2095
+ IF_NAMESIZE = nil
2096
+ SCM_RIGHTS = nil
2097
+ SCM_TIMESTAMP = nil
2098
+ SCM_CREDS = nil
2099
+ LOCAL_PEERCRED = nil
2100
+ IFF_ALLMULTI = nil
2101
+ IFF_ALTPHYS = nil
2102
+ IFF_BROADCAST = nil
2103
+ IFF_DEBUG = nil
2104
+ IFF_LINK0 = nil
2105
+ IFF_LINK1 = nil
2106
+ IFF_LINK2 = nil
2107
+ IFF_LOOPBACK = nil
2108
+ IFF_MULTICAST = nil
2109
+ IFF_NOARP = nil
2110
+ IFF_NOTRAILERS = nil
2111
+ IFF_OACTIVE = nil
2112
+ IFF_POINTOPOINT = nil
2113
+ IFF_PROMISC = nil
2114
+ IFF_RUNNING = nil
2115
+ IFF_SIMPLEX = nil
2116
+ IFF_UP = nil
2117
+ SOMAXCONN = nil
2118
+ AF_INET = nil
2119
+ AF_INET6 = nil
2120
+ AF_UNIX = nil
2121
+ IPV6_V6ONLY = nil
2122
+ AI_PASSIVE = nil
2123
+ IPV6_RECVPKTINFO = nil
2124
+ IPV6_PKTINFO = nil
2125
+ end
2126
+
2127
+ class Socket::AncillaryData < Object
2128
+ end
2129
+
2130
+ class Socket::UDPSource < Object
2131
+ end
2132
+
2133
+ class ThreadGroup < Object
2134
+ Default = nil
2135
+ end
2136
+
2137
+ class Dir < Object
2138
+ include Enumerable::[String]
2139
+
2140
+ def self.[](String pattern) => [String]; end
2141
+ end
2142
+
2143
+ class ThreadError < StandardError
2144
+ end
2145
+
2146
+ class ClosedQueueError < StopIteration
2147
+ end
2148
+
2149
+ module Fcntl
2150
+ F_DUPFD = nil
2151
+ F_GETFD = nil
2152
+ F_GETLK = nil
2153
+ F_SETFD = nil
2154
+ F_GETFL = nil
2155
+ F_SETFL = nil
2156
+ F_SETLK = nil
2157
+ F_SETLKW = nil
2158
+ FD_CLOEXEC = nil
2159
+ F_RDLCK = nil
2160
+ F_UNLCK = nil
2161
+ F_WRLCK = nil
2162
+ O_CREAT = nil
2163
+ O_EXCL = nil
2164
+ O_NOCTTY = nil
2165
+ O_TRUNC = nil
2166
+ O_APPEND = nil
2167
+ O_NONBLOCK = nil
2168
+ O_NDELAY = nil
2169
+ O_RDONLY = nil
2170
+ O_RDWR = nil
2171
+ O_WRONLY = nil
2172
+ O_ACCMODE = nil
2173
+ end
2174
+
2175
+ class SocketError < StandardError
2176
+ end
2177
+
2178
+ class Time < Object
2179
+ include Comparable
2180
+
2181
+ def self.now => :instance
2182
+ end
2183
+
2184
+ def strftime(String format) => String; end
2185
+
2186
+ def to_f => Float; end
2187
+
2188
+ def to_r => Rational; end
2189
+ end
2190
+
2191
+ module Marshal
2192
+ MAJOR_VERSION = nil
2193
+ MINOR_VERSION = nil
2194
+ end
2195
+
2196
+ class Range::[BeginType, EndType] < Object
2197
+ include Enumerable::[BeginType]
2198
+ end
2199
+
2200
+ class IOError < StandardError
2201
+ end
2202
+
2203
+ class EOFError < IOError
2204
+ end
2205
+
2206
+ class Random < Object
2207
+ DEFAULT = nil
2208
+ end
2209
+
2210
+ module Random::Formatter
2211
+ end
2212
+
2213
+ class Random
2214
+ include Random::Formatter
2215
+ end
2216
+
2217
+ module Signal
2218
+ end
2219
+
2220
+ class Symbol < Object
2221
+ include Comparable
2222
+ def to_sym => Symbol; end
2223
+ end
2224
+
2225
+ class SystemExit < Exception
2226
+ end
2227
+
2228
+ class Proc < Object
2229
+ alias :[] :call
2230
+
2231
+ def self.new[T](T &) => T; end
2232
+ end
2233
+
2234
+ class Module < Object
2235
+ def name => String
2236
+ end
2237
+ end
2238
+
2239
+ class Class < Module
2240
+ def ===(Object instance) => Boolean; end
2241
+
2242
+ def allocate => :instance; end
2243
+ end
2244
+
2245
+ class LocalJumpError < StandardError
2246
+ end
2247
+
2248
+ class SignalException < Exception
2249
+ end
2250
+
2251
+ class Interrupt < SignalException
2252
+ end
2253
+
2254
+ class TypeError < StandardError
2255
+ end
2256
+
2257
+ class KeyError < IndexError
2258
+ end
2259
+
2260
+ class ScriptError < Exception
2261
+ end
2262
+
2263
+ class SyntaxError < ScriptError
2264
+ end
2265
+
2266
+ class NotImplementedError < ScriptError
2267
+ end
2268
+
2269
+ class NameError < StandardError
2270
+ end
2271
+
2272
+ class SystemStackError < Exception
2273
+ end
2274
+
2275
+ class NoMethodError < NameError
2276
+ end
2277
+
2278
+ class RuntimeError < StandardError
2279
+ end
2280
+
2281
+ class SecurityError < Exception
2282
+ end
2283
+
2284
+ class NoMemoryError < Exception
2285
+ end
2286
+
2287
+ class LoadError < ScriptError
2288
+ end
2289
+
2290
+ class UnboundMethod < Object
2291
+ end
2292
+
2293
+ module Warning
2294
+ end
2295
+
2296
+ class Binding < Object
2297
+ end
2298
+
2299
+ module Math
2300
+ PI = nil
2301
+ E = nil
2302
+ end
2303
+
2304
+ class Math::DomainError < StandardError
2305
+ end
2306
+
2307
+ class UDPSocket < IPSocket
2308
+ end