rbs 3.7.0 → 3.8.0.pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/comments.yml +3 -3
  3. data/.github/workflows/ruby.yml +7 -7
  4. data/CHANGELOG.md +52 -0
  5. data/core/array.rbs +1743 -1580
  6. data/core/basic_object.rbs +38 -35
  7. data/core/comparable.rbs +1 -1
  8. data/core/complex.rbs +165 -93
  9. data/core/data.rbs +1 -1
  10. data/core/dir.rbs +1 -17
  11. data/core/encoding.rbs +12 -6
  12. data/core/enumerable.rbs +270 -266
  13. data/core/enumerator.rbs +0 -2
  14. data/core/env.rbs +1 -1
  15. data/core/errno.rbs +33 -16
  16. data/core/errors.rbs +2 -2
  17. data/core/exception.rbs +236 -170
  18. data/core/fiber.rbs +3 -2
  19. data/core/file.rbs +32 -74
  20. data/core/float.rbs +125 -72
  21. data/core/gc.rbs +138 -40
  22. data/core/hash.rbs +120 -141
  23. data/core/integer.rbs +79 -50
  24. data/core/io/buffer.rbs +49 -43
  25. data/core/io.rbs +97 -144
  26. data/core/kernel.rbs +290 -200
  27. data/core/match_data.rbs +76 -2
  28. data/core/math.rbs +0 -36
  29. data/core/module.rbs +28 -23
  30. data/core/nil_class.rbs +0 -3
  31. data/core/numeric.rbs +100 -103
  32. data/core/object.rbs +0 -4
  33. data/core/object_space/weak_key_map.rbs +3 -4
  34. data/core/object_space.rbs +3 -3
  35. data/core/proc.rbs +0 -2
  36. data/core/process.rbs +109 -57
  37. data/core/ractor.rbs +37 -4
  38. data/core/range.rbs +114 -87
  39. data/core/rational.rbs +0 -2
  40. data/core/rbs/unnamed/argf.rbs +234 -33
  41. data/core/rbs/unnamed/env_class.rbs +35 -53
  42. data/core/rbs/unnamed/random.rbs +1 -2
  43. data/core/regexp.rbs +4 -52
  44. data/core/ruby_vm.rbs +88 -9
  45. data/core/rubygems/config_file.rbs +3 -0
  46. data/core/rubygems/errors.rbs +0 -5
  47. data/core/rubygems/platform.rbs +0 -9
  48. data/core/rubygems/rubygems.rbs +0 -5
  49. data/core/rubygems/version.rbs +6 -6
  50. data/core/set.rbs +3 -15
  51. data/core/string.rbs +130 -136
  52. data/core/struct.rbs +6 -18
  53. data/core/symbol.rbs +14 -21
  54. data/core/thread.rbs +32 -35
  55. data/core/time.rbs +127 -50
  56. data/core/trace_point.rbs +16 -0
  57. data/core/true_class.rbs +0 -1
  58. data/core/warning.rbs +9 -2
  59. data/docs/architecture.md +1 -1
  60. data/docs/syntax.md +1 -1
  61. data/ext/rbs_extension/location.c +29 -19
  62. data/ext/rbs_extension/parser.c +267 -292
  63. data/ext/rbs_extension/parserstate.c +56 -22
  64. data/lib/rbs/annotate/annotations.rb +3 -3
  65. data/lib/rbs/annotate/rdoc_source.rb +2 -2
  66. data/lib/rbs/cli/diff.rb +3 -3
  67. data/lib/rbs/cli/validate.rb +1 -1
  68. data/lib/rbs/cli.rb +13 -13
  69. data/lib/rbs/collection/config.rb +3 -1
  70. data/lib/rbs/definition_builder/ancestor_builder.rb +3 -3
  71. data/lib/rbs/environment_loader.rb +1 -1
  72. data/lib/rbs/namespace.rb +1 -0
  73. data/lib/rbs/parser_aux.rb +2 -2
  74. data/lib/rbs/prototype/rb.rb +11 -8
  75. data/lib/rbs/prototype/rbi.rb +9 -5
  76. data/lib/rbs/prototype/runtime/value_object_generator.rb +7 -5
  77. data/lib/rbs/prototype/runtime.rb +4 -5
  78. data/lib/rbs/type_name.rb +14 -9
  79. data/lib/rbs/unit_test/type_assertions.rb +2 -2
  80. data/lib/rbs/validator.rb +3 -1
  81. data/lib/rbs/version.rb +1 -1
  82. data/lib/rdoc_plugin/parser.rb +2 -2
  83. data/rbs.gemspec +4 -0
  84. data/sig/ancestor_graph.rbs +4 -4
  85. data/sig/namespace.rbs +2 -3
  86. data/sig/resolver/constant_resolver.rbs +2 -2
  87. data/sig/resolver/context.rbs +1 -1
  88. data/sig/type_alias_regularity.rbs +5 -5
  89. data/sig/typename.rbs +8 -5
  90. data/sig/use_map.rbs +1 -1
  91. data/sig/validator.rbs +2 -2
  92. data/stdlib/base64/0/base64.rbs +0 -9
  93. data/stdlib/benchmark/0/benchmark.rbs +11 -2
  94. data/stdlib/bigdecimal/0/big_decimal.rbs +26 -182
  95. data/stdlib/cgi/0/core.rbs +47 -0
  96. data/stdlib/coverage/0/coverage.rbs +0 -3
  97. data/stdlib/csv/0/csv.rbs +18 -58
  98. data/stdlib/date/0/date.rbs +4 -19
  99. data/stdlib/did_you_mean/0/did_you_mean.rbs +0 -5
  100. data/stdlib/digest/0/digest.rbs +25 -2
  101. data/stdlib/erb/0/erb.rbs +0 -1
  102. data/stdlib/etc/0/etc.rbs +51 -34
  103. data/stdlib/fileutils/0/fileutils.rbs +3 -44
  104. data/stdlib/io-console/0/io-console.rbs +69 -15
  105. data/stdlib/ipaddr/0/ipaddr.rbs +8 -4
  106. data/stdlib/json/0/json.rbs +56 -71
  107. data/stdlib/logger/0/log_device.rbs +1 -1
  108. data/stdlib/logger/0/logger.rbs +3 -18
  109. data/stdlib/net-http/0/net-http.rbs +19 -77
  110. data/stdlib/nkf/0/nkf.rbs +30 -0
  111. data/stdlib/objspace/0/objspace.rbs +1 -2
  112. data/stdlib/observable/0/observable.rbs +1 -1
  113. data/stdlib/open-uri/0/open-uri.rbs +52 -0
  114. data/stdlib/open3/0/open3.rbs +0 -8
  115. data/stdlib/openssl/0/openssl.rbs +136 -69
  116. data/stdlib/optparse/0/optparse.rbs +58 -18
  117. data/stdlib/pathname/0/pathname.rbs +2 -8
  118. data/stdlib/pp/0/pp.rbs +3 -1
  119. data/stdlib/prettyprint/0/prettyprint.rbs +0 -4
  120. data/stdlib/pstore/0/pstore.rbs +0 -6
  121. data/stdlib/psych/0/psych.rbs +15 -4
  122. data/stdlib/pty/0/pty.rbs +46 -4
  123. data/stdlib/rdoc/0/code_object.rbs +0 -4
  124. data/stdlib/rdoc/0/markup.rbs +10 -12
  125. data/stdlib/rdoc/0/rdoc.rbs +1 -2
  126. data/stdlib/resolv/0/resolv.rbs +8 -3
  127. data/stdlib/ripper/0/ripper.rbs +0 -2
  128. data/stdlib/securerandom/0/securerandom.rbs +0 -2
  129. data/stdlib/shellwords/0/shellwords.rbs +11 -12
  130. data/stdlib/singleton/0/singleton.rbs +0 -1
  131. data/stdlib/socket/0/addrinfo.rbs +0 -1
  132. data/stdlib/socket/0/basic_socket.rbs +0 -5
  133. data/stdlib/socket/0/socket.rbs +49 -25
  134. data/stdlib/socket/0/tcp_server.rbs +0 -3
  135. data/stdlib/socket/0/tcp_socket.rbs +58 -3
  136. data/stdlib/socket/0/udp_socket.rbs +0 -1
  137. data/stdlib/socket/0/unix_server.rbs +0 -3
  138. data/stdlib/strscan/0/string_scanner.rbs +1265 -422
  139. data/stdlib/tempfile/0/tempfile.rbs +135 -28
  140. data/stdlib/time/0/time.rbs +48 -35
  141. data/stdlib/timeout/0/timeout.rbs +11 -8
  142. data/stdlib/tmpdir/0/tmpdir.rbs +8 -1
  143. data/stdlib/tsort/0/tsort.rbs +0 -4
  144. data/stdlib/uri/0/common.rbs +11 -30
  145. data/stdlib/uri/0/ftp.rbs +1 -1
  146. data/stdlib/uri/0/generic.rbs +22 -18
  147. data/stdlib/uri/0/http.rbs +2 -2
  148. data/stdlib/uri/0/rfc2396_parser.rbs +3 -0
  149. data/stdlib/zlib/0/buf_error.rbs +1 -70
  150. data/stdlib/zlib/0/data_error.rbs +1 -70
  151. data/stdlib/zlib/0/deflate.rbs +8 -72
  152. data/stdlib/zlib/0/error.rbs +1 -70
  153. data/stdlib/zlib/0/gzip_file/crc_error.rbs +2 -105
  154. data/stdlib/zlib/0/gzip_file/error.rbs +2 -105
  155. data/stdlib/zlib/0/gzip_file/length_error.rbs +2 -105
  156. data/stdlib/zlib/0/gzip_file/no_footer.rbs +2 -105
  157. data/stdlib/zlib/0/gzip_file.rbs +1 -71
  158. data/stdlib/zlib/0/gzip_reader.rbs +3 -74
  159. data/stdlib/zlib/0/gzip_writer.rbs +1 -70
  160. data/stdlib/zlib/0/inflate.rbs +4 -71
  161. data/stdlib/zlib/0/mem_error.rbs +1 -70
  162. data/stdlib/zlib/0/need_dict.rbs +1 -70
  163. data/stdlib/zlib/0/stream_end.rbs +1 -70
  164. data/stdlib/zlib/0/stream_error.rbs +1 -70
  165. data/stdlib/zlib/0/version_error.rbs +1 -70
  166. data/stdlib/zlib/0/zlib.rbs +0 -2
  167. data/stdlib/zlib/0/zstream.rbs +4 -72
  168. metadata +4 -6
data/core/file.rbs CHANGED
@@ -49,7 +49,6 @@
49
49
  # * May also contain a 1-character [file-create
50
50
  # mode](rdoc-ref:File@File-Create+Mode).
51
51
  #
52
- #
53
52
  # #### Read/Write Mode
54
53
  #
55
54
  # The read/write `mode` determines:
@@ -61,14 +60,11 @@
61
60
  # * The initial read position in the file.
62
61
  # * Where in the file reading can occur.
63
62
  #
64
- #
65
63
  # * Whether writing is allowed, and if so:
66
64
  #
67
65
  # * The initial write position in the file.
68
66
  # * Where in the file writing can occur.
69
67
  #
70
- #
71
- #
72
68
  # These tables summarize:
73
69
  #
74
70
  # Read/Write Modes for Existing File
@@ -110,7 +106,6 @@
110
106
  # * `Error` means that an exception is raised if disallowed reading or writing
111
107
  # is attempted.
112
108
  #
113
- #
114
109
  # ##### Read/Write Modes for Existing File
115
110
  #
116
111
  # * `'r'`:
@@ -142,7 +137,6 @@
142
137
  #
143
138
  # f.write('foo') # Raises IOError.
144
139
  #
145
- #
146
140
  # * `'w'`:
147
141
  #
148
142
  # * File is initially truncated:
@@ -197,7 +191,6 @@
197
191
  #
198
192
  # f.read # Raises IOError.
199
193
  #
200
- #
201
194
  # * `'a'`:
202
195
  #
203
196
  # * File is not initially truncated:
@@ -230,7 +223,6 @@
230
223
  #
231
224
  # f.read # Raises IOError.
232
225
  #
233
- #
234
226
  # * `'r+'`:
235
227
  #
236
228
  # * File is not initially truncated:
@@ -286,7 +278,6 @@
286
278
  # File.read(path)
287
279
  # # => "WWWst lineXXXecond line\nFourth line\nFifth YYYe\n\u0000\u0000ZZZ"
288
280
  #
289
- #
290
281
  # * `'a+'`:
291
282
  #
292
283
  # * File is not initially truncated:
@@ -326,8 +317,6 @@
326
317
  # f.seek(-3, :END)
327
318
  # f.read # => "bat"
328
319
  #
329
- #
330
- #
331
320
  # ##### Read/Write Modes for File To Be Created
332
321
  #
333
322
  # Note that modes `'r'` and `'r+'` are not allowed for a non-existent file
@@ -383,7 +372,6 @@
383
372
  #
384
373
  # f.read # Raises IOError.
385
374
  #
386
- #
387
375
  # * `'a'`:
388
376
  #
389
377
  # * File's initial write position is 0:
@@ -411,7 +399,6 @@
411
399
  #
412
400
  # f.read # Raises IOError.
413
401
  #
414
- #
415
402
  # * `'w+'`:
416
403
  #
417
404
  # * File's initial position is 0:
@@ -476,7 +463,6 @@
476
463
  # f.read
477
464
  # # => "bah"
478
465
  #
479
- #
480
466
  # * `'a+'`:
481
467
  #
482
468
  # * File's initial write position is 0:
@@ -515,8 +501,6 @@
515
501
  # f.pos = 800
516
502
  # f.read # => ""
517
503
  #
518
- #
519
- #
520
504
  # #### Data Mode
521
505
  #
522
506
  # To specify whether data is to be treated as text or as binary data, either of
@@ -529,7 +513,6 @@
529
513
  # `Encoding::ASCII_8BIT`; on Windows, suppresses conversion between EOL and
530
514
  # CRLF and disables interpreting `0x1A` as an end-of-file marker.
531
515
  #
532
- #
533
516
  # If neither is given, the stream defaults to text data.
534
517
  #
535
518
  # Examples:
@@ -550,7 +533,6 @@
550
533
  # * `'x'`: Creates the file if it does not exist; raises an exception if the
551
534
  # file exists.
552
535
  #
553
- #
554
536
  # Example:
555
537
  #
556
538
  # File.new('t.tmp', 'wx')
@@ -571,7 +553,6 @@
571
553
  # * `File::RDWR`: Open for reading and writing.
572
554
  # * `File::APPEND`: Open for appending only.
573
555
  #
574
- #
575
556
  # Examples:
576
557
  #
577
558
  # File.new('t.txt', File::RDONLY)
@@ -588,7 +569,6 @@
588
569
  # * `File::EXCL`: Raise an exception if `File::CREAT` is given and the file
589
570
  # exists.
590
571
  #
591
- #
592
572
  # ### Data Mode Specified as an Integer
593
573
  #
594
574
  # Data mode cannot be specified as an integer. When the stream access mode is
@@ -699,7 +679,6 @@
699
679
  # methods for creating, reading, and writing files
700
680
  # * Includes module FileTest, which provides dozens of additional methods.
701
681
  #
702
- #
703
682
  # Here, class File provides methods that are useful for:
704
683
  #
705
684
  # * [Creating](rdoc-ref:File@Creating)
@@ -707,7 +686,6 @@
707
686
  # * [Settings](rdoc-ref:File@Settings)
708
687
  # * [Other](rdoc-ref:File@Other)
709
688
  #
710
- #
711
689
  # ### Creating
712
690
  #
713
691
  # * ::new: Opens the file at the given path; returns the file.
@@ -717,7 +695,6 @@
717
695
  # * ::mkfifo: Returns the FIFO file created at the given path.
718
696
  # * ::symlink: Creates a symbolic link for the given file path.
719
697
  #
720
- #
721
698
  # ### Querying
722
699
  #
723
700
  # *Paths*
@@ -744,7 +721,6 @@
744
721
  # * #path (aliased as #to_path): Returns the string representation of the
745
722
  # given path.
746
723
  #
747
- #
748
724
  # *Times*
749
725
  #
750
726
  # * ::atime: Returns a Time for the most recent access to the given file.
@@ -758,7 +734,6 @@
758
734
  # * #mtime: Returns a Time for the most recent data modification to the
759
735
  # content of `self`.
760
736
  #
761
- #
762
737
  # *Types*
763
738
  #
764
739
  # * ::blockdev?: Returns whether the file at the given path is a block device.
@@ -805,7 +780,6 @@
805
780
  # * #lstat: Returns the File::Stat object for the last symbolic link in the
806
781
  # path for `self`.
807
782
  #
808
- #
809
783
  # *Contents*
810
784
  #
811
785
  # * ::empty? (aliased as ::zero?): Returns whether the file at the given path
@@ -815,7 +789,6 @@
815
789
  # file is empty; otherwise returns the file size (bytes).
816
790
  # * #size: Returns the size (bytes) of `self`.
817
791
  #
818
- #
819
792
  # ### Settings
820
793
  #
821
794
  # * ::chmod: Changes permissions of the file at the given path.
@@ -829,7 +802,6 @@
829
802
  # given paths.
830
803
  # * #flock: Locks or unlocks `self`.
831
804
  #
832
- #
833
805
  # ### Other
834
806
  #
835
807
  # * ::truncate: Truncates the file at the given file path to the given size.
@@ -1193,10 +1165,13 @@ class File < IO
1193
1165
  #
1194
1166
  # `*`
1195
1167
  # : Matches all regular files
1168
+ #
1196
1169
  # `c*`
1197
1170
  # : Matches all files beginning with `c`
1171
+ #
1198
1172
  # `*c`
1199
1173
  # : Matches all files ending with `c`
1174
+ #
1200
1175
  # `*c*`
1201
1176
  # : Matches all files that have `c` in them (including at the beginning or
1202
1177
  # end).
@@ -1205,19 +1180,24 @@ class File < IO
1205
1180
  # To match hidden files (that start with a `.`) set the File::FNM_DOTMATCH
1206
1181
  # flag.
1207
1182
  #
1183
+ #
1208
1184
  # `**`
1209
1185
  # : Matches directories recursively or files expansively.
1210
1186
  #
1187
+ #
1211
1188
  # `?`
1212
1189
  # : Matches any one character. Equivalent to `/.{1}/` in regexp.
1213
1190
  #
1191
+ #
1214
1192
  # `[set]`
1215
1193
  # : Matches any one character in `set`. Behaves exactly like character sets
1216
1194
  # in Regexp, including set negation (`[^a-z]`).
1217
1195
  #
1196
+ #
1218
1197
  # `\`
1219
1198
  # : Escapes the next metacharacter.
1220
1199
  #
1200
+ #
1221
1201
  # `{a,b}`
1222
1202
  # : Matches pattern a and pattern b if File::FNM_EXTGLOB flag is enabled.
1223
1203
  # Behaves like a Regexp union (`(?:a|b)`).
@@ -1836,46 +1816,19 @@ class File < IO
1836
1816
  # rdoc-file=file.c
1837
1817
  # - flock(locking_constant) -> 0 or false
1838
1818
  # -->
1839
- # Locks or unlocks a file according to the given `locking_constant`,
1819
+ # Locks or unlocks file `self` according to the given `locking_constant`,
1840
1820
  # a bitwise OR of the values in the table below.
1841
1821
  # Not available on all platforms.
1842
1822
  # Returns `false` if `File::LOCK_NB` is specified and the operation would have
1843
1823
  # blocked;
1844
1824
  # otherwise returns `0`.
1845
- #
1846
- # <table>
1847
- # <tr>
1848
- # <th colspan="3">Locking Constants</th>
1849
- # </tr>
1850
- # <tr>
1851
- # <th>Constant</th>
1852
- # <th>Lock</th>
1853
- # <th>Effect</th>
1854
- # </tr>
1855
- # <tr>
1856
- # <td><tt>File::LOCK_EX</tt></td>
1857
- # <td>Exclusive</td>
1858
- # <td>Only one process may hold an exclusive lock for <tt>self</tt> at a time.</td>
1859
- # </tr>
1860
- # <tr>
1861
- # <td><tt>File::LOCK_NB</tt></td>
1862
- # <td>Non-blocking</td>
1863
- # <td>
1864
- # No blocking; may be combined with other <tt>File::LOCK_SH</tt> or <tt>File::LOCK_EX</tt>
1865
- # using the bitwise OR operator <tt>|</tt>.
1866
- # </td>
1867
- # </tr>
1868
- # <tr>
1869
- # <td><tt>File::LOCK_SH</tt></td>
1870
- # <td>Shared</td>
1871
- # <td>Multiple processes may each hold a shared lock for <tt>self</tt> at the same time.</td>
1872
- # </tr>
1873
- # <tr>
1874
- # <td><tt>File::LOCK_UN</tt></td>
1875
- # <td>Unlock</td>
1876
- # <td>Remove an existing lock held by this process.</td>
1877
- # </tr>
1878
- # </table>
1825
+ # Constant | Lock | Effect
1826
+ # ---------------|------------|--------------------------------------------------------------------------------------------------------------
1827
+ # +File::LOCK_EX+| Exclusive | Only one process may hold an exclusive lock for +self+ at a time.
1828
+ # +File::LOCK_NB+|Non-blocking|No blocking; may be combined with +File::LOCK_SH+ or +File::LOCK_EX+ using the bitwise OR operator <tt>|</tt>.
1829
+ # +File::LOCK_SH+| Shared | Multiple processes may each hold a shared lock for +self+ at the same time.
1830
+ # +File::LOCK_UN+| Unlock | Remove an existing lock held by this process.
1831
+ # Example:
1879
1832
  # # Update a counter using an exclusive lock.
1880
1833
  # # Don't use File::WRONLY because it truncates the file.
1881
1834
  # File.open('counter', File::RDWR | File::CREAT, 0644) do |f|
@@ -2010,7 +1963,6 @@ File::Separator: String
2010
1963
  # globbing](rdoc-ref:File::Constants@Filename+Globbing+Constants+-28File-3A-
2011
1964
  # 3AFNM_-2A-29).
2012
1965
  #
2013
- #
2014
1966
  # File constants defined for the local process may be retrieved with method
2015
1967
  # File::Constants.constants:
2016
1968
  #
@@ -2034,7 +1986,6 @@ File::Separator: String
2034
1986
  # * StringIO.open.
2035
1987
  # * StringIO#reopen.
2036
1988
  #
2037
- #
2038
1989
  # ### Read/Write Access
2039
1990
  #
2040
1991
  # Read-write access for a stream may be specified by a file-access constant.
@@ -2045,7 +1996,7 @@ File::Separator: String
2045
1996
  #
2046
1997
  # #### File::RDONLY
2047
1998
  #
2048
- # Flag File::RDONLY specifies the the stream should be opened for reading only:
1999
+ # Flag File::RDONLY specifies the stream should be opened for reading only:
2049
2000
  #
2050
2001
  # filepath = '/tmp/t.tmp'
2051
2002
  # f = File.new(filepath, File::RDONLY)
@@ -2133,7 +2084,6 @@ File::Separator: String
2133
2084
  # * File::NOFOLLOW.
2134
2085
  # * File::TMPFILE.
2135
2086
  #
2136
- #
2137
2087
  # #### File::SYNC, File::RSYNC, and File::DSYNC
2138
2088
  #
2139
2089
  # Flag File::SYNC, File::RSYNC, or File::DSYNC specifies synchronization of I/O
@@ -2160,7 +2110,6 @@ File::Separator: String
2160
2110
  # be flushed to the underlying storage device; this differs from File::SYNC,
2161
2111
  # which requires that *metadata* also be synchronized.
2162
2112
  #
2163
- #
2164
2113
  # Note that the behavior of these flags may vary slightly depending on the
2165
2114
  # operating system and filesystem being used. Additionally, using these flags
2166
2115
  # can have an impact on performance due to the synchronous nature of the I/O
@@ -2214,11 +2163,13 @@ File::Separator: String
2214
2163
  #
2215
2164
  # Flag File::BINARY specifies that the stream is to be accessed in binary mode.
2216
2165
  #
2217
- # #### File::SHARE_DELETE (Windows Only)
2166
+ # #### File::SHARE_DELETE
2218
2167
  #
2219
2168
  # Flag File::SHARE_DELETE enables other processes to open the stream with delete
2220
2169
  # access.
2221
2170
  #
2171
+ # Windows only.
2172
+ #
2222
2173
  # If the stream is opened for (local) delete access without File::SHARE_DELETE,
2223
2174
  # and another process attempts to open it with delete access, the attempt fails
2224
2175
  # and the stream is not opened for that process.
@@ -2257,7 +2208,6 @@ File::Separator: String
2257
2208
  # * Pathname.glob.
2258
2209
  # * Pathname#glob.
2259
2210
  #
2260
- #
2261
2211
  # The constants are:
2262
2212
  #
2263
2213
  # #### File::FNM_CASEFOLD
@@ -2290,9 +2240,11 @@ File::Separator: String
2290
2240
  # Flag File::FNM_PATHNAME specifies that patterns `'*'` and `'?'` do not match
2291
2241
  # the directory separator (the value of constant File::SEPARATOR).
2292
2242
  #
2293
- # #### File::FNM_SHORTNAME (Windows Only)
2243
+ # #### File::FNM_SHORTNAME
2244
+ #
2245
+ # Flag File::FNM_SHORTNAME allows patterns to match short names if they exist.
2294
2246
  #
2295
- # Flag File::FNM_SHORTNAME Allows patterns to match short names if they exist.
2247
+ # Windows only.
2296
2248
  #
2297
2249
  # #### File::FNM_SYSCASE
2298
2250
  #
@@ -2343,36 +2295,43 @@ File::Constants::DSYNC: Integer
2343
2295
  File::Constants::EXCL: Integer
2344
2296
 
2345
2297
  # <!-- rdoc-file=dir.c -->
2298
+ # FNM_CASEFOLD
2346
2299
  # [File::FNM_CASEFOLD](rdoc-ref:File::Constants@File-3A-3AFNM_CASEFOLD)
2347
2300
  #
2348
2301
  File::Constants::FNM_CASEFOLD: Integer
2349
2302
 
2350
2303
  # <!-- rdoc-file=dir.c -->
2304
+ # FNM_DOTMATCH
2351
2305
  # [File::FNM_DOTMATCH](rdoc-ref:File::Constants@File-3A-3AFNM_DOTMATCH)
2352
2306
  #
2353
2307
  File::Constants::FNM_DOTMATCH: Integer
2354
2308
 
2355
2309
  # <!-- rdoc-file=dir.c -->
2310
+ # FNM_EXTGLOB
2356
2311
  # [File::FNM_EXTGLOB](rdoc-ref:File::Constants@File-3A-3AFNM_EXTGLOB)
2357
2312
  #
2358
2313
  File::Constants::FNM_EXTGLOB: Integer
2359
2314
 
2360
2315
  # <!-- rdoc-file=dir.c -->
2316
+ # FNM_NOESCAPE
2361
2317
  # [File::FNM_NOESCAPE](rdoc-ref:File::Constants@File-3A-3AFNM_NOESCAPE)
2362
2318
  #
2363
2319
  File::Constants::FNM_NOESCAPE: Integer
2364
2320
 
2365
2321
  # <!-- rdoc-file=dir.c -->
2322
+ # FNM_PATHNAME
2366
2323
  # [File::FNM_PATHNAME](rdoc-ref:File::Constants@File-3A-3AFNM_PATHNAME)
2367
2324
  #
2368
2325
  File::Constants::FNM_PATHNAME: Integer
2369
2326
 
2370
2327
  # <!-- rdoc-file=dir.c -->
2328
+ # FNM_SHORTNAME
2371
2329
  # [File::FNM_SHORTNAME](rdoc-ref:File::Constants@File-3A-3AFNM_SHORTNAME)
2372
2330
  #
2373
2331
  File::Constants::FNM_SHORTNAME: Integer
2374
2332
 
2375
2333
  # <!-- rdoc-file=dir.c -->
2334
+ # FNM_SYSCASE
2376
2335
  # [File::FNM_SYSCASE](rdoc-ref:File::Constants@File-3A-3AFNM_SYSCASE)
2377
2336
  #
2378
2337
  File::Constants::FNM_SYSCASE: Integer
@@ -2439,8 +2398,7 @@ File::Constants::RDWR: Integer
2439
2398
  File::Constants::RSYNC: Integer
2440
2399
 
2441
2400
  # <!-- rdoc-file=file.c -->
2442
- # [File::SHARE_DELETE](rdoc-ref:File::Constants@File-3A-3ASHARE_DELETE+-28Window
2443
- # s+Only-29)
2401
+ # [File::SHARE_DELETE](rdoc-ref:File::Constants@File-3A-3ASHARE_DELETE)
2444
2402
  #
2445
2403
  File::Constants::SHARE_DELETE: Integer
2446
2404