rbs 3.2.0 → 3.3.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/comments.yml +1 -1
- data/.github/workflows/ruby.yml +7 -2
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +134 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +21 -15
- data/README.md +11 -2
- data/Rakefile +10 -7
- data/Steepfile +7 -7
- data/core/basic_object.rbs +7 -7
- data/core/binding.rbs +3 -3
- data/core/builtin.rbs +171 -5
- data/core/constants.rbs +17 -17
- data/core/dir.rbs +3 -3
- data/core/encoding.rbs +434 -628
- data/core/enumerator.rbs +37 -0
- data/core/exception.rbs +11 -11
- data/core/false_class.rbs +5 -11
- data/core/fiber.rbs +5 -5
- data/core/file_test.rbs +28 -26
- data/core/kernel.rbs +900 -21
- data/core/marshal.rbs +24 -14
- data/core/match_data.rbs +8 -8
- data/core/math.rbs +57 -53
- data/core/method.rbs +3 -1
- data/core/module.rbs +38 -36
- data/core/nil_class.rbs +7 -13
- data/core/object.rbs +3 -966
- data/core/process.rbs +3 -3
- data/core/ractor.rbs +2 -2
- data/core/rb_config.rbs +64 -43
- data/core/regexp.rbs +3 -3
- data/core/set.rbs +3 -2
- data/core/signal.rbs +10 -4
- data/core/struct.rbs +1 -1
- data/core/thread.rbs +7 -7
- data/core/thread_group.rbs +9 -9
- data/core/true_class.rbs +5 -11
- data/core/unbound_method.rbs +56 -7
- data/core/warning.rbs +33 -0
- data/docs/collection.md +56 -6
- data/docs/data_and_struct.md +57 -0
- data/docs/stdlib.md +61 -2
- data/docs/syntax.md +123 -2
- data/ext/rbs_extension/constants.c +73 -72
- data/ext/rbs_extension/lexer.c +624 -569
- data/ext/rbs_extension/lexer.h +1 -0
- data/ext/rbs_extension/lexer.re +1 -0
- data/ext/rbs_extension/lexstate.c +1 -0
- data/ext/rbs_extension/parser.c +6 -0
- data/goodcheck.yml +2 -2
- data/lib/rbs/annotate/formatter.rb +13 -3
- data/lib/rbs/annotate/rdoc_source.rb +10 -1
- data/lib/rbs/cli/colored_io.rb +48 -0
- data/lib/rbs/cli/diff.rb +80 -0
- data/lib/rbs/cli.rb +169 -17
- data/lib/rbs/collection/config/lockfile.rb +0 -25
- data/lib/rbs/collection/config/lockfile_generator.rb +0 -6
- data/lib/rbs/collection/installer.rb +1 -1
- data/lib/rbs/collection/sources/git.rb +6 -4
- data/lib/rbs/collection/sources/local.rb +7 -5
- data/lib/rbs/diff.rb +121 -0
- data/lib/rbs/environment.rb +7 -4
- data/lib/rbs/method_type.rb +23 -0
- data/lib/rbs/prototype/rb.rb +2 -9
- data/lib/rbs/prototype/rbi.rb +1 -1
- data/lib/rbs/prototype/runtime/helpers.rb +59 -0
- data/lib/rbs/prototype/runtime/reflection.rb +19 -0
- data/lib/rbs/prototype/runtime/value_object_generator.rb +275 -0
- data/lib/rbs/prototype/runtime.rb +233 -153
- data/lib/rbs/resolver/constant_resolver.rb +1 -1
- data/lib/rbs/sorter.rb +144 -117
- data/lib/rbs/test/guaranteed.rb +31 -0
- data/lib/rbs/test/type_check.rb +4 -4
- data/lib/rbs/test.rb +3 -0
- data/lib/rbs/types.rb +184 -3
- data/lib/rbs/version.rb +1 -1
- data/lib/rbs/writer.rb +4 -4
- data/lib/rbs.rb +1 -0
- data/rbs.gemspec +1 -0
- data/sig/annotate/formatter.rbs +2 -2
- data/sig/annotate/rdoc_annotater.rbs +1 -1
- data/sig/cli/colored_io.rbs +15 -0
- data/sig/cli/diff.rbs +21 -0
- data/sig/cli.rbs +2 -0
- data/sig/collection/config/lockfile.rbs +0 -6
- data/sig/diff.rbs +23 -0
- data/sig/errors.rbs +1 -5
- data/sig/method_types.rbs +6 -0
- data/sig/prototype/runtime.rbs +166 -0
- data/sig/rdoc/rbs.rbs +4 -0
- data/sig/shims/bundler.rbs +5 -0
- data/sig/sorter.rbs +23 -5
- data/sig/types.rbs +29 -0
- data/stdlib/benchmark/0/benchmark.rbs +1 -1
- data/stdlib/cgi/0/core.rbs +2 -2
- data/stdlib/did_you_mean/0/did_you_mean.rbs +2 -2
- data/stdlib/digest/0/digest.rbs +1 -1
- data/stdlib/fileutils/0/fileutils.rbs +1 -1
- data/stdlib/forwardable/0/forwardable.rbs +4 -4
- data/stdlib/io-console/0/io-console.rbs +1 -1
- data/stdlib/json/0/json.rbs +37 -0
- data/stdlib/logger/0/logger.rbs +2 -2
- data/stdlib/net-http/0/manifest.yaml +1 -1
- data/stdlib/net-http/0/net-http.rbs +16 -63
- data/stdlib/net-protocol/0/manifest.yaml +2 -0
- data/stdlib/net-protocol/0/net-protocol.rbs +56 -0
- data/stdlib/net-smtp/0/manifest.yaml +2 -0
- data/stdlib/net-smtp/0/net-smtp.rbs +55 -0
- data/stdlib/open-uri/0/manifest.yaml +3 -0
- data/stdlib/open-uri/0/open-uri.rbs +341 -0
- data/stdlib/openssl/0/openssl.rbs +1 -1
- data/stdlib/pp/0/manifest.yaml +2 -0
- data/stdlib/pp/0/pp.rbs +301 -0
- data/stdlib/{yaml → psych}/0/dbm.rbs +3 -3
- data/stdlib/psych/0/manifest.yaml +3 -0
- data/stdlib/psych/0/psych.rbs +391 -0
- data/stdlib/{yaml → psych}/0/store.rbs +2 -2
- data/stdlib/rdoc/0/code_object.rbs +55 -0
- data/stdlib/rdoc/0/comment.rbs +60 -0
- data/stdlib/rdoc/0/context.rbs +153 -0
- data/stdlib/rdoc/0/markup.rbs +119 -0
- data/stdlib/rdoc/0/parser.rbs +56 -0
- data/stdlib/rdoc/0/rdoc.rbs +0 -372
- data/stdlib/rdoc/0/ri.rbs +17 -0
- data/stdlib/rdoc/0/store.rbs +48 -0
- data/stdlib/rdoc/0/top_level.rbs +97 -0
- data/stdlib/socket/0/basic_socket.rbs +1 -1
- data/stdlib/socket/0/socket.rbs +1 -1
- data/stdlib/uri/0/common.rbs +1 -1
- data/stdlib/yaml/0/manifest.yaml +1 -2
- data/stdlib/yaml/0/yaml.rbs +1 -199
- metadata +49 -7
- data/sig/shims/pp.rbs +0 -3
- data/sig/shims.rbs +0 -47
data/stdlib/pp/0/pp.rbs
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# <!-- rdoc-file=lib/pp.rb -->
|
|
2
|
+
# A pretty-printer for Ruby objects.
|
|
3
|
+
#
|
|
4
|
+
# ## What PP Does
|
|
5
|
+
#
|
|
6
|
+
# Standard output by #p returns this:
|
|
7
|
+
# #<PP:0x81fedf0 @genspace=#<Proc:0x81feda0>, @group_queue=#<PrettyPrint::GroupQueue:0x81fed3c @queue=[[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], []]>, @buffer=[], @newline="\n", @group_stack=[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], @buffer_width=0, @indent=0, @maxwidth=79, @output_width=2, @output=#<IO:0x8114ee4>>
|
|
8
|
+
#
|
|
9
|
+
# Pretty-printed output returns this:
|
|
10
|
+
# #<PP:0x81fedf0
|
|
11
|
+
# @buffer=[],
|
|
12
|
+
# @buffer_width=0,
|
|
13
|
+
# @genspace=#<Proc:0x81feda0>,
|
|
14
|
+
# @group_queue=
|
|
15
|
+
# #<PrettyPrint::GroupQueue:0x81fed3c
|
|
16
|
+
# @queue=
|
|
17
|
+
# [[#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
|
|
18
|
+
# []]>,
|
|
19
|
+
# @group_stack=
|
|
20
|
+
# [#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
|
|
21
|
+
# @indent=0,
|
|
22
|
+
# @maxwidth=79,
|
|
23
|
+
# @newline="\n",
|
|
24
|
+
# @output=#<IO:0x8114ee4>,
|
|
25
|
+
# @output_width=2>
|
|
26
|
+
#
|
|
27
|
+
# ## Usage
|
|
28
|
+
#
|
|
29
|
+
# pp(obj) #=> obj
|
|
30
|
+
# pp obj #=> obj
|
|
31
|
+
# pp(obj1, obj2, ...) #=> [obj1, obj2, ...]
|
|
32
|
+
# pp() #=> nil
|
|
33
|
+
#
|
|
34
|
+
# Output `obj(s)` to `$>` in pretty printed format.
|
|
35
|
+
#
|
|
36
|
+
# It returns `obj(s)`.
|
|
37
|
+
#
|
|
38
|
+
# ## Output Customization
|
|
39
|
+
#
|
|
40
|
+
# To define a customized pretty printing function for your classes, redefine
|
|
41
|
+
# method `#pretty_print(pp)` in the class.
|
|
42
|
+
#
|
|
43
|
+
# `#pretty_print` takes the `pp` argument, which is an instance of the PP class.
|
|
44
|
+
# The method uses #text, #breakable, #nest, #group and #pp to print the object.
|
|
45
|
+
#
|
|
46
|
+
# ## Pretty-Print JSON
|
|
47
|
+
#
|
|
48
|
+
# To pretty-print JSON refer to JSON#pretty_generate.
|
|
49
|
+
#
|
|
50
|
+
# ## Author
|
|
51
|
+
# Tanaka Akira <akr@fsij.org>
|
|
52
|
+
#
|
|
53
|
+
class PP < PrettyPrint
|
|
54
|
+
interface _PrettyPrint
|
|
55
|
+
def pretty_print: (untyped q) -> untyped
|
|
56
|
+
|
|
57
|
+
def pretty_print_cycle: (untyped q) -> untyped
|
|
58
|
+
|
|
59
|
+
def is_a?: (Module) -> bool
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
interface _LeftShift
|
|
63
|
+
def <<: (untyped obj) -> self
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
interface _PPMethodsRequired
|
|
67
|
+
def text: (String obj, ?Integer width) -> void
|
|
68
|
+
|
|
69
|
+
def breakable: (?String sep, ?Integer width) -> void
|
|
70
|
+
|
|
71
|
+
def group: (?Integer indent, ?String open_obj, ?String close_obj, ?Integer open_width, ?Integer close_width) { () -> untyped } -> void
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
module PPMethods : _PPMethodsRequired
|
|
75
|
+
# <!--
|
|
76
|
+
# rdoc-file=lib/pp.rb
|
|
77
|
+
# - guard_inspect_key() { || ... }
|
|
78
|
+
# -->
|
|
79
|
+
# Yields to a block and preserves the previous set of objects being printed.
|
|
80
|
+
#
|
|
81
|
+
def guard_inspect_key: () { () -> untyped } -> void
|
|
82
|
+
|
|
83
|
+
# <!--
|
|
84
|
+
# rdoc-file=lib/pp.rb
|
|
85
|
+
# - check_inspect_key(id)
|
|
86
|
+
# -->
|
|
87
|
+
# Check whether the object_id `id` is in the current buffer of objects to be
|
|
88
|
+
# pretty printed. Used to break cycles in chains of objects to be pretty
|
|
89
|
+
# printed.
|
|
90
|
+
#
|
|
91
|
+
def check_inspect_key: (_PrettyPrint id) -> bool
|
|
92
|
+
|
|
93
|
+
# <!--
|
|
94
|
+
# rdoc-file=lib/pp.rb
|
|
95
|
+
# - push_inspect_key(id)
|
|
96
|
+
# -->
|
|
97
|
+
# Adds the object_id `id` to the set of objects being pretty printed, so as to
|
|
98
|
+
# not repeat objects.
|
|
99
|
+
#
|
|
100
|
+
def push_inspect_key: (_PrettyPrint id) -> void
|
|
101
|
+
|
|
102
|
+
# <!--
|
|
103
|
+
# rdoc-file=lib/pp.rb
|
|
104
|
+
# - pop_inspect_key(id)
|
|
105
|
+
# -->
|
|
106
|
+
# Removes an object from the set of objects being pretty printed.
|
|
107
|
+
#
|
|
108
|
+
def pop_inspect_key: (_PrettyPrint id) -> void
|
|
109
|
+
|
|
110
|
+
# <!--
|
|
111
|
+
# rdoc-file=lib/pp.rb
|
|
112
|
+
# - pp(obj)
|
|
113
|
+
# -->
|
|
114
|
+
# Adds `obj` to the pretty printing buffer using Object#pretty_print or
|
|
115
|
+
# Object#pretty_print_cycle.
|
|
116
|
+
#
|
|
117
|
+
# Object#pretty_print_cycle is used when `obj` is already printed, a.k.a the
|
|
118
|
+
# object reference chain has a cycle.
|
|
119
|
+
#
|
|
120
|
+
def pp: (_PrettyPrint obj) -> untyped
|
|
121
|
+
|
|
122
|
+
# <!--
|
|
123
|
+
# rdoc-file=lib/pp.rb
|
|
124
|
+
# - object_group(obj) { || ... }
|
|
125
|
+
# -->
|
|
126
|
+
# A convenience method which is same as follows:
|
|
127
|
+
#
|
|
128
|
+
# group(1, '#<' + obj.class.name, '>') { ... }
|
|
129
|
+
#
|
|
130
|
+
def object_group: (untyped obj) { () -> untyped } -> Integer
|
|
131
|
+
|
|
132
|
+
# <!--
|
|
133
|
+
# rdoc-file=lib/pp.rb
|
|
134
|
+
# - object_address_group(obj, &block)
|
|
135
|
+
# -->
|
|
136
|
+
# A convenience method, like object_group, but also reformats the Object's
|
|
137
|
+
# object_id.
|
|
138
|
+
#
|
|
139
|
+
def object_address_group: (untyped obj) { () -> untyped } -> Integer
|
|
140
|
+
|
|
141
|
+
# <!--
|
|
142
|
+
# rdoc-file=lib/pp.rb
|
|
143
|
+
# - comma_breakable()
|
|
144
|
+
# -->
|
|
145
|
+
# A convenience method which is same as follows:
|
|
146
|
+
#
|
|
147
|
+
# text ','
|
|
148
|
+
# breakable
|
|
149
|
+
#
|
|
150
|
+
def comma_breakable: () -> void
|
|
151
|
+
|
|
152
|
+
# <!--
|
|
153
|
+
# rdoc-file=lib/pp.rb
|
|
154
|
+
# - seplist(list, sep=nil, iter_method=:each) { |element| ... }
|
|
155
|
+
# -->
|
|
156
|
+
# Adds a separated list. The list is separated by comma with breakable space, by
|
|
157
|
+
# default.
|
|
158
|
+
#
|
|
159
|
+
# #seplist iterates the `list` using `iter_method`. It yields each object to the
|
|
160
|
+
# block given for #seplist. The procedure `separator_proc` is called between
|
|
161
|
+
# each yields.
|
|
162
|
+
#
|
|
163
|
+
# If the iteration is zero times, `separator_proc` is not called at all.
|
|
164
|
+
#
|
|
165
|
+
# If `separator_proc` is nil or not given, +lambda { comma_breakable }+ is used.
|
|
166
|
+
# If `iter_method` is not given, :each is used.
|
|
167
|
+
#
|
|
168
|
+
# For example, following 3 code fragments has similar effect.
|
|
169
|
+
#
|
|
170
|
+
# q.seplist([1,2,3]) {|v| xxx v }
|
|
171
|
+
#
|
|
172
|
+
# q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v }
|
|
173
|
+
#
|
|
174
|
+
# xxx 1
|
|
175
|
+
# q.comma_breakable
|
|
176
|
+
# xxx 2
|
|
177
|
+
# q.comma_breakable
|
|
178
|
+
# xxx 3
|
|
179
|
+
#
|
|
180
|
+
def seplist: (untyped list, ?(^() -> void)? sep, ?interned iter_method) { (*untyped, **untyped) -> void } -> void
|
|
181
|
+
|
|
182
|
+
# <!--
|
|
183
|
+
# rdoc-file=lib/pp.rb
|
|
184
|
+
# - pp_object(obj)
|
|
185
|
+
# -->
|
|
186
|
+
# A present standard failsafe for pretty printing any given Object
|
|
187
|
+
#
|
|
188
|
+
def pp_object: (untyped obj) -> untyped
|
|
189
|
+
|
|
190
|
+
# <!--
|
|
191
|
+
# rdoc-file=lib/pp.rb
|
|
192
|
+
# - pp_hash(obj)
|
|
193
|
+
# -->
|
|
194
|
+
# A pretty print for a Hash
|
|
195
|
+
#
|
|
196
|
+
def pp_hash: (untyped obj) -> untyped
|
|
197
|
+
end
|
|
198
|
+
include PPMethods
|
|
199
|
+
|
|
200
|
+
class SingleLine < ::PrettyPrint::SingleLine
|
|
201
|
+
include PPMethods
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
module ObjectMixin : BasicObject
|
|
205
|
+
def pretty_print: (PP q) -> untyped
|
|
206
|
+
|
|
207
|
+
def pretty_print_cycle: (PP q) -> untyped
|
|
208
|
+
|
|
209
|
+
def pretty_print_instance_variables: () -> Array[Symbol]
|
|
210
|
+
|
|
211
|
+
def pretty_print_inspect: () -> untyped
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# <!--
|
|
215
|
+
# rdoc-file=lib/pp.rb
|
|
216
|
+
# - width_for(out)
|
|
217
|
+
# -->
|
|
218
|
+
# Returns the usable width for `out`. As the width of `out`:
|
|
219
|
+
# 1. If `out` is assigned to a tty device, its width is used.
|
|
220
|
+
# 2. Otherwise, or it could not get the value, the `COLUMN` environment
|
|
221
|
+
# variable is assumed to be set to the width.
|
|
222
|
+
# 3. If `COLUMN` is not set to a non-zero number, 80 is assumed.
|
|
223
|
+
#
|
|
224
|
+
#
|
|
225
|
+
# And finally, returns the above width value - 1.
|
|
226
|
+
# * This -1 is for Windows command prompt, which moves the cursor to the next
|
|
227
|
+
# line if it reaches the last column.
|
|
228
|
+
#
|
|
229
|
+
def self.width_for: (untyped out) -> Integer
|
|
230
|
+
|
|
231
|
+
# <!--
|
|
232
|
+
# rdoc-file=lib/pp.rb
|
|
233
|
+
# - pp(obj, out=$>, width=width_for(out))
|
|
234
|
+
# -->
|
|
235
|
+
# Outputs `obj` to `out` in pretty printed format of `width` columns in width.
|
|
236
|
+
#
|
|
237
|
+
# If `out` is omitted, `$>` is assumed. If `width` is omitted, the width of
|
|
238
|
+
# `out` is assumed (see width_for).
|
|
239
|
+
#
|
|
240
|
+
# PP.pp returns `out`.
|
|
241
|
+
#
|
|
242
|
+
def self.pp: (_PrettyPrint obj, ?_LeftShift out, ?Integer width) -> untyped
|
|
243
|
+
|
|
244
|
+
# <!--
|
|
245
|
+
# rdoc-file=lib/pp.rb
|
|
246
|
+
# - singleline_pp(obj, out=$>)
|
|
247
|
+
# -->
|
|
248
|
+
# Outputs `obj` to `out` like PP.pp but with no indent and newline.
|
|
249
|
+
#
|
|
250
|
+
# PP.singleline_pp returns `out`.
|
|
251
|
+
#
|
|
252
|
+
def self.singleline_pp: (_PrettyPrint obj, ?_LeftShift out) -> untyped
|
|
253
|
+
def self.mcall: (untyped obj, Module mod, interned meth, *untyped args) ?{ (*untyped, **untyped) -> untyped } -> untyped
|
|
254
|
+
|
|
255
|
+
# <!--
|
|
256
|
+
# rdoc-file=lib/pp.rb
|
|
257
|
+
# - sharing_detection()
|
|
258
|
+
# -->
|
|
259
|
+
# Returns the sharing detection flag as a boolean value. It is false (nil) by
|
|
260
|
+
# default.
|
|
261
|
+
# ----
|
|
262
|
+
# <!--
|
|
263
|
+
# rdoc-file=lib/pp.rb
|
|
264
|
+
# - sharing_detection=(b)
|
|
265
|
+
# -->
|
|
266
|
+
# Sets the sharing detection flag to b.
|
|
267
|
+
#
|
|
268
|
+
attr_accessor self.sharing_detection: bool?
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
%a{annotate:rdoc:skip}
|
|
272
|
+
class RubyVM::AbstractSyntaxTree::Node
|
|
273
|
+
# <!--
|
|
274
|
+
# rdoc-file=lib/pp.rb
|
|
275
|
+
# - pretty_print_children(q, names = [])
|
|
276
|
+
# -->
|
|
277
|
+
#
|
|
278
|
+
def pretty_print_children: (PP q, ?Array[untyped] names) -> void
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
%a{annotate:rdoc:skip}
|
|
282
|
+
class Object
|
|
283
|
+
include PP::ObjectMixin
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
%a{annotate:rdoc:skip}
|
|
287
|
+
module Kernel
|
|
288
|
+
# <!--
|
|
289
|
+
# rdoc-file=lib/pp.rb
|
|
290
|
+
# - pretty_inspect()
|
|
291
|
+
# -->
|
|
292
|
+
# Returns a pretty printed object as a string.
|
|
293
|
+
#
|
|
294
|
+
# In order to use this method you must first require the PP module:
|
|
295
|
+
#
|
|
296
|
+
# require 'pp'
|
|
297
|
+
#
|
|
298
|
+
# See the PP module for more information.
|
|
299
|
+
#
|
|
300
|
+
def pretty_inspect: () -> String
|
|
301
|
+
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
%a{annotate:rdoc:skip}
|
|
2
|
-
module
|
|
2
|
+
module Psych
|
|
3
3
|
# <!-- rdoc-file=lib/yaml/dbm.rb -->
|
|
4
4
|
# YAML + DBM = YDBM
|
|
5
5
|
#
|
|
@@ -169,7 +169,7 @@ module YAML
|
|
|
169
169
|
# object. Takes any object which implements the each_pair method, including Hash
|
|
170
170
|
# and DBM objects.
|
|
171
171
|
#
|
|
172
|
-
def replace: (Hash[untyped, untyped] | DBM hsh) ->
|
|
172
|
+
def replace: (Hash[untyped, untyped] | DBM hsh) -> Psych::DBM
|
|
173
173
|
|
|
174
174
|
# <!--
|
|
175
175
|
# rdoc-file=lib/yaml/dbm.rb
|
|
@@ -214,7 +214,7 @@ module YAML
|
|
|
214
214
|
#
|
|
215
215
|
# Returns `self`.
|
|
216
216
|
#
|
|
217
|
-
def update: (Hash[untyped, untyped]) ->
|
|
217
|
+
def update: (Hash[untyped, untyped]) -> Psych::DBM
|
|
218
218
|
|
|
219
219
|
# <!--
|
|
220
220
|
# rdoc-file=lib/yaml/dbm.rb
|