Skip to content

Commit f1a0d89

Browse files
kssssoutaro
authored andcommitted
Merge pull request #2733 from ksss/rdoc-6.17.0
Update rdoc and comments
1 parent fdba243 commit f1a0d89

File tree

5 files changed

+74
-74
lines changed

5 files changed

+74
-74
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gem "json-schema"
1616
gem "goodcheck"
1717
gem 'digest'
1818
gem 'tempfile'
19-
gem "rdoc", "~> 6.16.0"
19+
gem "rdoc"
2020
gem "fileutils"
2121
gem "raap"
2222
gem "activesupport", "~> 7.0"

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ GEM
103103
rb-fsevent (0.11.2)
104104
rb-inotify (0.11.1)
105105
ffi (~> 1.0)
106-
rdoc (6.16.1)
106+
rdoc (6.17.0)
107107
erb
108108
psych (>= 4.0.0)
109109
tsort
@@ -215,7 +215,7 @@ DEPENDENCIES
215215
rake-compiler
216216
rbs!
217217
rbs-amber!
218-
rdoc (~> 6.16.0)
218+
rdoc
219219
rspec
220220
rubocop
221221
rubocop-on-rbs

core/file.rbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,12 +1839,12 @@ class File < IO
18391839
# Returns `false` if `File::LOCK_NB` is specified and the operation would have
18401840
# blocked;
18411841
# otherwise returns `0`.
1842-
# Constant | Lock | Effect
1843-
# ---------------|------------|--------------------------------------------------------------------------------------------------------------
1844-
# +File::LOCK_EX+| Exclusive | Only one process may hold an exclusive lock for +self+ at a time.
1845-
# +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>.
1846-
# +File::LOCK_SH+| Shared | Multiple processes may each hold a shared lock for +self+ at the same time.
1847-
# +File::LOCK_UN+| Unlock | Remove an existing lock held by this process.
1842+
# Constant | Lock | Effect
1843+
# ---------------|------------|-------------------------------------------------------------------------------------------------------
1844+
# `File::LOCK_EX`| Exclusive | Only one process may hold an exclusive lock for `self` at a time.
1845+
# `File::LOCK_NB`|Non-blocking|No blocking; may be combined with `File::LOCK_SH` or `File::LOCK_EX` using the bitwise OR operator `|`.
1846+
# `File::LOCK_SH`| Shared | Multiple processes may each hold a shared lock for `self` at the same time.
1847+
# `File::LOCK_UN`| Unlock | Remove an existing lock held by this process.
18481848
# Example:
18491849
# # Update a counter using an exclusive lock.
18501850
# # Don't use File::WRONLY because it truncates the file.

core/kernel.rbs

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,58 +1779,58 @@ module Kernel : BasicObject
17791779
# * Each of these tests operates only on the entity at `path0`,
17801780
# and returns `true` or `false`;
17811781
# for a non-existent entity, returns `false` (does not raise exception):
1782-
# Character |Test
1783-
# ------------|-------------------------------------------------------------------------
1784-
# <tt>'b'</tt>|Whether the entity is a block device.
1785-
# <tt>'c'</tt>|Whether the entity is a character device.
1786-
# <tt>'d'</tt>|Whether the entity is a directory.
1787-
# <tt>'e'</tt>|Whether the entity is an existing entity.
1788-
# <tt>'f'</tt>|Whether the entity is an existing regular file.
1789-
# <tt>'g'</tt>|Whether the entity's setgid bit is set.
1790-
# <tt>'G'</tt>|Whether the entity's group ownership is equal to the caller's.
1791-
# <tt>'k'</tt>|Whether the entity's sticky bit is set.
1792-
# <tt>'l'</tt>|Whether the entity is a symbolic link.
1793-
# <tt>'o'</tt>|Whether the entity is owned by the caller's effective uid.
1794-
# <tt>'O'</tt>|Like <tt>'o'</tt>, but uses the real uid (not the effective uid).
1795-
# <tt>'p'</tt>|Whether the entity is a FIFO device (named pipe).
1796-
# <tt>'r'</tt>|Whether the entity is readable by the caller's effective uid/gid.
1797-
# <tt>'R'</tt>|Like <tt>'r'</tt>, but uses the real uid/gid (not the effective uid/gid).
1798-
# <tt>'S'</tt>|Whether the entity is a socket.
1799-
# <tt>'u'</tt>|Whether the entity's setuid bit is set.
1800-
# <tt>'w'</tt>|Whether the entity is writable by the caller's effective uid/gid.
1801-
# <tt>'W'</tt>|Like <tt>'w'</tt>, but uses the real uid/gid (not the effective uid/gid).
1802-
# <tt>'x'</tt>|Whether the entity is executable by the caller's effective uid/gid.
1803-
# <tt>'X'</tt>|Like <tt>'x'</tt>, but uses the real uid/gid (not the effective uid/git).
1804-
# <tt>'z'</tt>|Whether the entity exists and is of length zero.
1782+
# Character|Test
1783+
# ---------|-------------------------------------------------------------------
1784+
# `'b'` |Whether the entity is a block device.
1785+
# `'c'` |Whether the entity is a character device.
1786+
# `'d'` |Whether the entity is a directory.
1787+
# `'e'` |Whether the entity is an existing entity.
1788+
# `'f'` |Whether the entity is an existing regular file.
1789+
# `'g'` |Whether the entity's setgid bit is set.
1790+
# `'G'` |Whether the entity's group ownership is equal to the caller's.
1791+
# `'k'` |Whether the entity's sticky bit is set.
1792+
# `'l'` |Whether the entity is a symbolic link.
1793+
# `'o'` |Whether the entity is owned by the caller's effective uid.
1794+
# `'O'` |Like `'o'`, but uses the real uid (not the effective uid).
1795+
# `'p'` |Whether the entity is a FIFO device (named pipe).
1796+
# `'r'` |Whether the entity is readable by the caller's effective uid/gid.
1797+
# `'R'` |Like `'r'`, but uses the real uid/gid (not the effective uid/gid).
1798+
# `'S'` |Whether the entity is a socket.
1799+
# `'u'` |Whether the entity's setuid bit is set.
1800+
# `'w'` |Whether the entity is writable by the caller's effective uid/gid.
1801+
# `'W'` |Like `'w'`, but uses the real uid/gid (not the effective uid/gid).
1802+
# `'x'` |Whether the entity is executable by the caller's effective uid/gid.
1803+
# `'X'` |Like `'x'`, but uses the real uid/gid (not the effective uid/git).
1804+
# `'z'` |Whether the entity exists and is of length zero.
18051805
# * This test operates only on the entity at `path0`,
18061806
# and returns an integer size or `nil`:
1807-
# Character |Test
1808-
# ------------|--------------------------------------------------------------------------------------------
1809-
# <tt>'s'</tt>|Returns positive integer size if the entity exists and has non-zero length, +nil+ otherwise.
1807+
# Character|Test
1808+
# ---------|--------------------------------------------------------------------------------------------
1809+
# `'s'` |Returns positive integer size if the entity exists and has non-zero length, `nil` otherwise.
18101810
# * Each of these tests operates only on the entity at `path0`,
18111811
# and returns a Time object;
18121812
# raises an exception if the entity does not exist:
1813-
# Character |Test
1814-
# ------------|--------------------------------------
1815-
# <tt>'A'</tt>|Last access time for the entity.
1816-
# <tt>'C'</tt>|Last change time for the entity.
1817-
# <tt>'M'</tt>|Last modification time for the entity.
1813+
# Character|Test
1814+
# ---------|--------------------------------------
1815+
# `'A'` |Last access time for the entity.
1816+
# `'C'` |Last change time for the entity.
1817+
# `'M'` |Last modification time for the entity.
18181818
# * Each of these tests operates on the modification time (`mtime`)
18191819
# of each of the entities at `path0` and `path1`,
18201820
# and returns a `true` or `false`;
18211821
# returns `false` if either entity does not exist:
1822-
# Character |Test
1823-
# ------------|------------------------------------------------------------------------------------------------
1824-
# <tt>'<'</tt>|Whether the <code>mtime</code> at <code>path0</code> is less than that at <code>path1</code>.
1825-
# <tt>'='</tt>|Whether the <code>mtime</code> at <code>path0</code> is equal to that at <code>path1</code>.
1826-
# <tt>'>'</tt>|Whether the <code>mtime</code> at <code>path0</code> is greater than that at <code>path1</code>.
1822+
# Character|Test
1823+
# ---------|---------------------------------------------------------------
1824+
# `'<'` |Whether the `mtime` at `path0` is less than that at `path1`.
1825+
# `'='` |Whether the `mtime` at `path0` is equal to that at `path1`.
1826+
# `'>'` |Whether the `mtime` at `path0` is greater than that at `path1`.
18271827
# * This test operates on the content of each of the entities at `path0` and
18281828
# `path1`,
18291829
# and returns a `true` or `false`;
18301830
# returns `false` if either entity does not exist:
1831-
# Character |Test
1832-
# ------------|---------------------------------------------
1833-
# <tt>'-'</tt>|Whether the entities exist and are identical.
1831+
# Character|Test
1832+
# ---------|---------------------------------------------
1833+
# `'-'` |Whether the entities exist and are identical.
18341834
#
18351835
def self?.test: (String | Integer cmd, String | IO file1, ?String | IO file2) -> (TrueClass | FalseClass | Time | nil | Integer)
18361836

stdlib/strscan/0/string_scanner.rbs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@
211211
# This table summarizes (details and examples at the links):
212212
# Method | Returns |Sets Match Values?
213213
# ---------------------|---------------------------------------------|------------------
214-
# #check(pattern) | Matched leading substring or +nil+. | Yes.
215-
# #check_until(pattern)| Matched substring (anywhere) or +nil+. | Yes.
214+
# #check(pattern) | Matched leading substring or `nil`. | Yes.
215+
# #check_until(pattern)| Matched substring (anywhere) or `nil`. | Yes.
216216
# #exist?(pattern) | Matched substring (anywhere) end index. | Yes.
217-
# #match?(pattern) | Size of matched leading substring or +nil+. | Yes.
217+
# #match?(pattern) | Size of matched leading substring or `nil`. | Yes.
218218
# #peek(size) | Leading substring of given length (bytes). | No.
219-
# #peek_byte | Integer leading byte or +nil+. | No.
219+
# #peek_byte | Integer leading byte or `nil`. | No.
220220
# #rest |Target substring (from byte position to end).| No.
221221
# ### Traversing the Target Substring
222222
# A *traversal* method examines the target substring,
@@ -226,24 +226,24 @@
226226
# This table summarizes (details and examples at links):
227227
# Method | Returns |Sets Match Values?
228228
# --------------------|----------------------------------------------------|------------------
229-
# #get_byte | Leading byte or +nil+. | No.
230-
# #getch | Leading character or +nil+. | No.
231-
# #scan(pattern) | Matched leading substring or +nil+. | Yes.
232-
# #scan_byte | Integer leading byte or +nil+. | No.
233-
# #scan_until(pattern)| Matched substring (anywhere) or +nil+. | Yes.
234-
# #skip(pattern) | Matched leading substring size or +nil+. | Yes.
235-
# #skip_until(pattern)|Position delta to end-of-matched-substring or +nil+.| Yes.
236-
# #unscan | +self+. | No.
229+
# #get_byte | Leading byte or `nil`. | No.
230+
# #getch | Leading character or `nil`. | No.
231+
# #scan(pattern) | Matched leading substring or `nil`. | Yes.
232+
# #scan_byte | Integer leading byte or `nil`. | No.
233+
# #scan_until(pattern)| Matched substring (anywhere) or `nil`. | Yes.
234+
# #skip(pattern) | Matched leading substring size or `nil`. | Yes.
235+
# #skip_until(pattern)|Position delta to end-of-matched-substring or `nil`.| Yes.
236+
# #unscan | `self`. | No.
237237
# ## Querying the Scanner
238238
# Each of these methods queries the scanner object
239239
# without modifying it (details and examples at links)
240240
# Method | Returns
241241
# -------------------|--------------------------------
242-
# #beginning_of_line?| +true+ or +false+.
242+
# #beginning_of_line?| `true` or `false`.
243243
# #charpos | Character position.
244-
# #eos? | +true+ or +false+.
245-
# #fixed_anchor? | +true+ or +false+.
246-
# #inspect |String representation of +self+.
244+
# #eos? | `true` or `false`.
245+
# #fixed_anchor? | `true` or `false`.
246+
# #inspect |String representation of `self`.
247247
# #pos | Byte position.
248248
# #rest | Target substring.
249249
# #rest_size | Size of target substring.
@@ -312,11 +312,11 @@
312312
# Each of these methods returns a basic match value:
313313
# Method | Return After Match |Return After No Match
314314
# -------------|--------------------------------------|---------------------
315-
# #matched? | +true+. | +false+.
316-
# #matched_size| Size of matched substring. | +nil+.
317-
# #matched | Matched substring. | +nil+.
318-
# #pre_match |Substring preceding matched substring.| +nil+.
319-
# #post_match |Substring following matched substring.| +nil+.
315+
# #matched? | `true`. | `false`.
316+
# #matched_size| Size of matched substring. | `nil`.
317+
# #matched | Matched substring. | `nil`.
318+
# #pre_match |Substring preceding matched substring.| `nil`.
319+
# #post_match |Substring following matched substring.| `nil`.
320320
#
321321
# See examples below.
322322
# #### Captured Match Values
@@ -326,11 +326,11 @@
326326
# Each of these methods returns a captured match value:
327327
# Method | Return After Match |Return After No Match
328328
# ---------------|---------------------------------------|---------------------
329-
# #size | Count of captured substrings. | +nil+.
330-
# #{}[n] | <tt>n</tt>th captured substring. | +nil+.
331-
# #captures | Array of all captured substrings. | +nil+.
332-
# #values_at(*n) |Array of specified captured substrings.| +nil+.
333-
# #named_captures| Hash of named captures. | <tt>{}</tt>.
329+
# #size | Count of captured substrings. | `nil`.
330+
# #[](n) | `n`th captured substring. | `nil`.
331+
# #captures | Array of all captured substrings. | `nil`.
332+
# #values_at(*n) |Array of specified captured substrings.| `nil`.
333+
# #named_captures| Hash of named captures. | `{}`.
334334
#
335335
# See examples below.
336336
# #### Match Values Examples

0 commit comments

Comments
 (0)