httpsensible 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +4 -0
- data/.ruby-version +1 -0
- data/.vscode/settings.json +8 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +18 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +20 -0
- data/lib/httpsensible/client/response.rb +54 -0
- data/lib/httpsensible/client.rb +39 -0
- data/lib/httpsensible/jwt.rb +26 -0
- data/lib/httpsensible/version.rb +6 -0
- data/lib/httpsensible.rb +10 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
- data/sorbet/rbi/gems/activesupport@7.0.6.rbi +14 -0
- data/sorbet/rbi/gems/addressable@2.8.4.rbi +1954 -0
- data/sorbet/rbi/gems/amazing_print@1.5.0.rbi +923 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +350 -0
- data/sorbet/rbi/gems/http-2-next@0.5.1.rbi +1441 -0
- data/sorbet/rbi/gems/httpx@0.24.1.rbi +3255 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +8 -0
- data/sorbet/rbi/gems/io-console@0.6.0.rbi +8 -0
- data/sorbet/rbi/gems/irb@1.7.1.rbi +342 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +1404 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +91 -0
- data/sorbet/rbi/gems/minitest@5.18.1.rbi +1503 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/public_suffix@5.0.1.rbi +935 -0
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5183 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +2999 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
- data/sorbet/rbi/gems/reline@0.3.6.rbi +8 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +6985 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-performance@1.18.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-rails@2.20.2.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-standard@7.1.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop@1.54.1.rbi +56172 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/spoom@1.2.2.rbi +2994 -0
- data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
- data/sorbet/rbi/gems/tapioca@0.11.7.rbi +3347 -0
- data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
- data/sorbet/rbi/gems/webmock@3.18.1.rbi +1756 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +190 -0
@@ -0,0 +1,923 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `amazing_print` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem amazing_print`.
|
6
|
+
|
7
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#3
|
8
|
+
module AmazingPrint
|
9
|
+
class << self
|
10
|
+
# @return [Boolean]
|
11
|
+
#
|
12
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#14
|
13
|
+
def console?; end
|
14
|
+
|
15
|
+
# Returns the value of attribute defaults.
|
16
|
+
#
|
17
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#5
|
18
|
+
def defaults; end
|
19
|
+
|
20
|
+
# Sets the attribute defaults
|
21
|
+
#
|
22
|
+
# @param value the value to set the attribute defaults to.
|
23
|
+
#
|
24
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#5
|
25
|
+
def defaults=(_arg0); end
|
26
|
+
|
27
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#22
|
28
|
+
def diet_rb; end
|
29
|
+
|
30
|
+
# Returns the value of attribute force_colors.
|
31
|
+
#
|
32
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#5
|
33
|
+
def force_colors; end
|
34
|
+
|
35
|
+
# Class accessor to force colorized output (ex. forked subprocess where TERM
|
36
|
+
# might be dumb).
|
37
|
+
# ---------------------------------------------------------------------------
|
38
|
+
#
|
39
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#10
|
40
|
+
def force_colors!(colors: T.unsafe(nil)); end
|
41
|
+
|
42
|
+
# Sets the attribute force_colors
|
43
|
+
#
|
44
|
+
# @param value the value to set the attribute force_colors to.
|
45
|
+
#
|
46
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#5
|
47
|
+
def force_colors=(_arg0); end
|
48
|
+
|
49
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#40
|
50
|
+
def irb!; end
|
51
|
+
|
52
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#46
|
53
|
+
def pry!; end
|
54
|
+
|
55
|
+
# @return [Boolean]
|
56
|
+
#
|
57
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#18
|
58
|
+
def rails_console?; end
|
59
|
+
|
60
|
+
# Reload the cached custom configurations.
|
61
|
+
#
|
62
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#53
|
63
|
+
def reload!; end
|
64
|
+
|
65
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#30
|
66
|
+
def usual_rb; end
|
67
|
+
|
68
|
+
# source://amazing_print//lib/amazing_print/version.rb#9
|
69
|
+
def version; end
|
70
|
+
|
71
|
+
private
|
72
|
+
|
73
|
+
# Takes a value and returns true unless it is false or nil
|
74
|
+
# This is an alternative to the less readable !!(value)
|
75
|
+
# https://github.com/bbatsov/ruby-style-guide#no-bang-bang
|
76
|
+
#
|
77
|
+
# source://amazing_print//lib/amazing_print/custom_defaults.rb#62
|
78
|
+
def boolean(value); end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# source://amazing_print//lib/amazing_print/colorize.rb#8
|
83
|
+
module AmazingPrint::Colorize
|
84
|
+
# Pick the color and apply it to the given string as necessary.
|
85
|
+
# ------------------------------------------------------------------------------
|
86
|
+
#
|
87
|
+
# source://amazing_print//lib/amazing_print/colorize.rb#11
|
88
|
+
def colorize(str, type); end
|
89
|
+
end
|
90
|
+
|
91
|
+
# source://amazing_print//lib/amazing_print/colors.rb#4
|
92
|
+
module AmazingPrint::Colors
|
93
|
+
private
|
94
|
+
|
95
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
96
|
+
def blue(str, html = T.unsafe(nil)); end
|
97
|
+
|
98
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
99
|
+
def blueish(str, html = T.unsafe(nil)); end
|
100
|
+
|
101
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
102
|
+
def cyan(str, html = T.unsafe(nil)); end
|
103
|
+
|
104
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
105
|
+
def cyanish(str, html = T.unsafe(nil)); end
|
106
|
+
|
107
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
108
|
+
def gray(str, html = T.unsafe(nil)); end
|
109
|
+
|
110
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
111
|
+
def grayish(str, html = T.unsafe(nil)); end
|
112
|
+
|
113
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
114
|
+
def green(str, html = T.unsafe(nil)); end
|
115
|
+
|
116
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
117
|
+
def greenish(str, html = T.unsafe(nil)); end
|
118
|
+
|
119
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
120
|
+
def purple(str, html = T.unsafe(nil)); end
|
121
|
+
|
122
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
123
|
+
def purpleish(str, html = T.unsafe(nil)); end
|
124
|
+
|
125
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
126
|
+
def red(str, html = T.unsafe(nil)); end
|
127
|
+
|
128
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
129
|
+
def redish(str, html = T.unsafe(nil)); end
|
130
|
+
|
131
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
132
|
+
def white(str, html = T.unsafe(nil)); end
|
133
|
+
|
134
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
135
|
+
def whiteish(str, html = T.unsafe(nil)); end
|
136
|
+
|
137
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
138
|
+
def yellow(str, html = T.unsafe(nil)); end
|
139
|
+
|
140
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
141
|
+
def yellowish(str, html = T.unsafe(nil)); end
|
142
|
+
|
143
|
+
class << self
|
144
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
145
|
+
def blue(str, html = T.unsafe(nil)); end
|
146
|
+
|
147
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
148
|
+
def blueish(str, html = T.unsafe(nil)); end
|
149
|
+
|
150
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
151
|
+
def cyan(str, html = T.unsafe(nil)); end
|
152
|
+
|
153
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
154
|
+
def cyanish(str, html = T.unsafe(nil)); end
|
155
|
+
|
156
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
157
|
+
def gray(str, html = T.unsafe(nil)); end
|
158
|
+
|
159
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
160
|
+
def grayish(str, html = T.unsafe(nil)); end
|
161
|
+
|
162
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
163
|
+
def green(str, html = T.unsafe(nil)); end
|
164
|
+
|
165
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
166
|
+
def greenish(str, html = T.unsafe(nil)); end
|
167
|
+
|
168
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
169
|
+
def purple(str, html = T.unsafe(nil)); end
|
170
|
+
|
171
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
172
|
+
def purpleish(str, html = T.unsafe(nil)); end
|
173
|
+
|
174
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
175
|
+
def red(str, html = T.unsafe(nil)); end
|
176
|
+
|
177
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
178
|
+
def redish(str, html = T.unsafe(nil)); end
|
179
|
+
|
180
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
181
|
+
def white(str, html = T.unsafe(nil)); end
|
182
|
+
|
183
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
184
|
+
def whiteish(str, html = T.unsafe(nil)); end
|
185
|
+
|
186
|
+
# source://amazing_print//lib/amazing_print/colors.rb#25
|
187
|
+
def yellow(str, html = T.unsafe(nil)); end
|
188
|
+
|
189
|
+
# source://amazing_print//lib/amazing_print/colors.rb#32
|
190
|
+
def yellowish(str, html = T.unsafe(nil)); end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#11
|
195
|
+
class AmazingPrint::Formatter
|
196
|
+
include ::AmazingPrint::Colorize
|
197
|
+
include ::AmazingPrint::OpenStruct
|
198
|
+
|
199
|
+
# @return [Formatter] a new instance of Formatter
|
200
|
+
#
|
201
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#18
|
202
|
+
def initialize(inspector); end
|
203
|
+
|
204
|
+
# Hook this when adding custom formatters. Check out lib/amazing_print/ext
|
205
|
+
# directory for custom formatters that ship with amazing_print.
|
206
|
+
# ------------------------------------------------------------------------------
|
207
|
+
#
|
208
|
+
# source://amazing_print//lib/amazing_print/ext/ostruct.rb#15
|
209
|
+
def cast(object, type); end
|
210
|
+
|
211
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#37
|
212
|
+
def cast_without_ostruct(_object, type); end
|
213
|
+
|
214
|
+
# Main entry point to format an object.
|
215
|
+
# ------------------------------------------------------------------------------
|
216
|
+
#
|
217
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#25
|
218
|
+
def format(object, type = T.unsafe(nil)); end
|
219
|
+
|
220
|
+
# Returns the value of attribute inspector.
|
221
|
+
#
|
222
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#14
|
223
|
+
def inspector; end
|
224
|
+
|
225
|
+
# Returns the value of attribute options.
|
226
|
+
#
|
227
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#14
|
228
|
+
def options; end
|
229
|
+
|
230
|
+
private
|
231
|
+
|
232
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#71
|
233
|
+
def awesome_array(a); end
|
234
|
+
|
235
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#55
|
236
|
+
def awesome_bigdecimal(n); end
|
237
|
+
|
238
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#96
|
239
|
+
def awesome_class(c); end
|
240
|
+
|
241
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#104
|
242
|
+
def awesome_dir(d); end
|
243
|
+
|
244
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#100
|
245
|
+
def awesome_file(f); end
|
246
|
+
|
247
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#79
|
248
|
+
def awesome_hash(h); end
|
249
|
+
|
250
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#91
|
251
|
+
def awesome_method(m); end
|
252
|
+
|
253
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#83
|
254
|
+
def awesome_object(o); end
|
255
|
+
|
256
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#61
|
257
|
+
def awesome_rational(n); end
|
258
|
+
|
259
|
+
# Catch all method to format an arbitrary object.
|
260
|
+
# ------------------------------------------------------------------------------
|
261
|
+
#
|
262
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#45
|
263
|
+
def awesome_self(object, type); end
|
264
|
+
|
265
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#75
|
266
|
+
def awesome_set(s); end
|
267
|
+
|
268
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#67
|
269
|
+
def awesome_simple(o, type, inspector = T.unsafe(nil)); end
|
270
|
+
|
271
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#87
|
272
|
+
def awesome_struct(s); end
|
273
|
+
|
274
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#91
|
275
|
+
def awesome_unboundmethod(m); end
|
276
|
+
|
277
|
+
# Utility methods.
|
278
|
+
# ------------------------------------------------------------------------------
|
279
|
+
#
|
280
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#110
|
281
|
+
def convert_to_hash(object); end
|
282
|
+
end
|
283
|
+
|
284
|
+
# source://amazing_print//lib/amazing_print/formatter.rb#16
|
285
|
+
AmazingPrint::Formatter::CORE_FORMATTERS = T.let(T.unsafe(nil), Array)
|
286
|
+
|
287
|
+
# source://amazing_print//lib/amazing_print/formatters.rb#4
|
288
|
+
module AmazingPrint::Formatters; end
|
289
|
+
|
290
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#7
|
291
|
+
class AmazingPrint::Formatters::ArrayFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
292
|
+
# @return [ArrayFormatter] a new instance of ArrayFormatter
|
293
|
+
#
|
294
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#10
|
295
|
+
def initialize(array, inspector); end
|
296
|
+
|
297
|
+
# Returns the value of attribute array.
|
298
|
+
#
|
299
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#8
|
300
|
+
def array; end
|
301
|
+
|
302
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#17
|
303
|
+
def format; end
|
304
|
+
|
305
|
+
# Returns the value of attribute inspector.
|
306
|
+
#
|
307
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#8
|
308
|
+
def inspector; end
|
309
|
+
|
310
|
+
# Returns the value of attribute options.
|
311
|
+
#
|
312
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#8
|
313
|
+
def options; end
|
314
|
+
|
315
|
+
private
|
316
|
+
|
317
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#59
|
318
|
+
def array_prefix(iteration, width); end
|
319
|
+
|
320
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#113
|
321
|
+
def find_method(name); end
|
322
|
+
|
323
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#51
|
324
|
+
def generate_printable_array; end
|
325
|
+
|
326
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#71
|
327
|
+
def generate_printable_tuples; end
|
328
|
+
|
329
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#104
|
330
|
+
def generate_tuple(name); end
|
331
|
+
|
332
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#129
|
333
|
+
def generic_prefix(iteration, width, padding = T.unsafe(nil)); end
|
334
|
+
|
335
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#63
|
336
|
+
def methods_array; end
|
337
|
+
|
338
|
+
# @return [Boolean]
|
339
|
+
#
|
340
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#29
|
341
|
+
def methods_array?; end
|
342
|
+
|
343
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#41
|
344
|
+
def multiline_array; end
|
345
|
+
|
346
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#94
|
347
|
+
def name_and_args_width; end
|
348
|
+
|
349
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#33
|
350
|
+
def simple_array; end
|
351
|
+
|
352
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#100
|
353
|
+
def tuple_prefix(iteration, width); end
|
354
|
+
|
355
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#79
|
356
|
+
def tuple_template(item); end
|
357
|
+
|
358
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#90
|
359
|
+
def tuples; end
|
360
|
+
|
361
|
+
# source://amazing_print//lib/amazing_print/formatters/array_formatter.rb#137
|
362
|
+
def width(items); end
|
363
|
+
end
|
364
|
+
|
365
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#7
|
366
|
+
class AmazingPrint::Formatters::BaseFormatter
|
367
|
+
include ::AmazingPrint::Colorize
|
368
|
+
|
369
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#130
|
370
|
+
def align(value, width); end
|
371
|
+
|
372
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#36
|
373
|
+
def get_limit_size; end
|
374
|
+
|
375
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#120
|
376
|
+
def indent(n = T.unsafe(nil)); end
|
377
|
+
|
378
|
+
# Indentation related methods
|
379
|
+
# -----------------------------------------
|
380
|
+
#
|
381
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#109
|
382
|
+
def indentation; end
|
383
|
+
|
384
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#113
|
385
|
+
def indented(&blk); end
|
386
|
+
|
387
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#45
|
388
|
+
def limited(data, width, is_hash: T.unsafe(nil)); end
|
389
|
+
|
390
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#67
|
391
|
+
def method_tuple(method); end
|
392
|
+
|
393
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#124
|
394
|
+
def outdent; end
|
395
|
+
|
396
|
+
# To support limited output, for example:
|
397
|
+
#
|
398
|
+
# ap ('a'..'z').to_a, :limit => 3
|
399
|
+
# [
|
400
|
+
# [ 0] "a",
|
401
|
+
# [ 1] .. [24],
|
402
|
+
# [25] "z"
|
403
|
+
# ]
|
404
|
+
#
|
405
|
+
# ap (1..100).to_a, :limit => true # Default limit is 7.
|
406
|
+
# [
|
407
|
+
# [ 0] 1,
|
408
|
+
# [ 1] 2,
|
409
|
+
# [ 2] 3,
|
410
|
+
# [ 3] .. [96],
|
411
|
+
# [97] 98,
|
412
|
+
# [98] 99,
|
413
|
+
# [99] 100
|
414
|
+
# ]
|
415
|
+
# ------------------------------------------------------------------------------
|
416
|
+
#
|
417
|
+
# @return [Boolean]
|
418
|
+
#
|
419
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#32
|
420
|
+
def should_be_limited?; end
|
421
|
+
end
|
422
|
+
|
423
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#10
|
424
|
+
AmazingPrint::Formatters::BaseFormatter::DEFAULT_LIMIT_SIZE = T.let(T.unsafe(nil), Integer)
|
425
|
+
|
426
|
+
# precompute common indentations
|
427
|
+
#
|
428
|
+
# source://amazing_print//lib/amazing_print/formatters/base_formatter.rb#118
|
429
|
+
AmazingPrint::Formatters::BaseFormatter::INDENT_CACHE = T.let(T.unsafe(nil), Array)
|
430
|
+
|
431
|
+
# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#7
|
432
|
+
class AmazingPrint::Formatters::ClassFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
433
|
+
# @return [ClassFormatter] a new instance of ClassFormatter
|
434
|
+
#
|
435
|
+
# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#10
|
436
|
+
def initialize(klass, inspector); end
|
437
|
+
|
438
|
+
# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#17
|
439
|
+
def format; end
|
440
|
+
|
441
|
+
# Returns the value of attribute inspector.
|
442
|
+
#
|
443
|
+
# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#8
|
444
|
+
def inspector; end
|
445
|
+
|
446
|
+
# Returns the value of attribute klass.
|
447
|
+
#
|
448
|
+
# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#8
|
449
|
+
def klass; end
|
450
|
+
|
451
|
+
# Returns the value of attribute options.
|
452
|
+
#
|
453
|
+
# source://amazing_print//lib/amazing_print/formatters/class_formatter.rb#8
|
454
|
+
def options; end
|
455
|
+
end
|
456
|
+
|
457
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#10
|
458
|
+
class AmazingPrint::Formatters::DirFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
459
|
+
# @return [DirFormatter] a new instance of DirFormatter
|
460
|
+
#
|
461
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#13
|
462
|
+
def initialize(dir, inspector); end
|
463
|
+
|
464
|
+
# Returns the value of attribute dir.
|
465
|
+
#
|
466
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#11
|
467
|
+
def dir; end
|
468
|
+
|
469
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#20
|
470
|
+
def format; end
|
471
|
+
|
472
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#25
|
473
|
+
def info; end
|
474
|
+
|
475
|
+
# Returns the value of attribute inspector.
|
476
|
+
#
|
477
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#11
|
478
|
+
def inspector; end
|
479
|
+
|
480
|
+
# Returns the value of attribute options.
|
481
|
+
#
|
482
|
+
# source://amazing_print//lib/amazing_print/formatters/dir_formatter.rb#11
|
483
|
+
def options; end
|
484
|
+
end
|
485
|
+
|
486
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#10
|
487
|
+
class AmazingPrint::Formatters::FileFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
488
|
+
# @return [FileFormatter] a new instance of FileFormatter
|
489
|
+
#
|
490
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#13
|
491
|
+
def initialize(file, inspector); end
|
492
|
+
|
493
|
+
# Returns the value of attribute file.
|
494
|
+
#
|
495
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#11
|
496
|
+
def file; end
|
497
|
+
|
498
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#20
|
499
|
+
def format; end
|
500
|
+
|
501
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#25
|
502
|
+
def info; end
|
503
|
+
|
504
|
+
# Returns the value of attribute inspector.
|
505
|
+
#
|
506
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#11
|
507
|
+
def inspector; end
|
508
|
+
|
509
|
+
# Returns the value of attribute options.
|
510
|
+
#
|
511
|
+
# source://amazing_print//lib/amazing_print/formatters/file_formatter.rb#11
|
512
|
+
def options; end
|
513
|
+
end
|
514
|
+
|
515
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#7
|
516
|
+
class AmazingPrint::Formatters::HashFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
517
|
+
# @return [HashFormatter] a new instance of HashFormatter
|
518
|
+
#
|
519
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#10
|
520
|
+
def initialize(hash, inspector); end
|
521
|
+
|
522
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#17
|
523
|
+
def format; end
|
524
|
+
|
525
|
+
# Returns the value of attribute hash.
|
526
|
+
#
|
527
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#8
|
528
|
+
def hash; end
|
529
|
+
|
530
|
+
# Returns the value of attribute inspector.
|
531
|
+
#
|
532
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#8
|
533
|
+
def inspector; end
|
534
|
+
|
535
|
+
# Returns the value of attribute options.
|
536
|
+
#
|
537
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#8
|
538
|
+
def options; end
|
539
|
+
|
540
|
+
private
|
541
|
+
|
542
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#29
|
543
|
+
def empty_hash; end
|
544
|
+
|
545
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#62
|
546
|
+
def left_width(keys); end
|
547
|
+
|
548
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#68
|
549
|
+
def max_key_width(keys); end
|
550
|
+
|
551
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#37
|
552
|
+
def multiline_hash; end
|
553
|
+
|
554
|
+
# @return [Boolean]
|
555
|
+
#
|
556
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#33
|
557
|
+
def multiline_hash?; end
|
558
|
+
|
559
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#98
|
560
|
+
def plain_single_line; end
|
561
|
+
|
562
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#94
|
563
|
+
def pre_ruby19_syntax(key, value, width); end
|
564
|
+
|
565
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#45
|
566
|
+
def printable_hash; end
|
567
|
+
|
568
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#72
|
569
|
+
def printable_keys; end
|
570
|
+
|
571
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#88
|
572
|
+
def ruby19_syntax(key, value, width); end
|
573
|
+
|
574
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#41
|
575
|
+
def simple_hash; end
|
576
|
+
|
577
|
+
# @return [Boolean]
|
578
|
+
#
|
579
|
+
# source://amazing_print//lib/amazing_print/formatters/hash_formatter.rb#84
|
580
|
+
def symbol?(key); end
|
581
|
+
end
|
582
|
+
|
583
|
+
# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#7
|
584
|
+
class AmazingPrint::Formatters::MethodFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
585
|
+
# @return [MethodFormatter] a new instance of MethodFormatter
|
586
|
+
#
|
587
|
+
# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#10
|
588
|
+
def initialize(method, inspector); end
|
589
|
+
|
590
|
+
# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#17
|
591
|
+
def format; end
|
592
|
+
|
593
|
+
# Returns the value of attribute inspector.
|
594
|
+
#
|
595
|
+
# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#8
|
596
|
+
def inspector; end
|
597
|
+
|
598
|
+
# Returns the value of attribute method.
|
599
|
+
#
|
600
|
+
# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#8
|
601
|
+
def method; end
|
602
|
+
|
603
|
+
# Returns the value of attribute options.
|
604
|
+
#
|
605
|
+
# source://amazing_print//lib/amazing_print/formatters/method_formatter.rb#8
|
606
|
+
def options; end
|
607
|
+
end
|
608
|
+
|
609
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#7
|
610
|
+
class AmazingPrint::Formatters::ObjectFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
611
|
+
# @return [ObjectFormatter] a new instance of ObjectFormatter
|
612
|
+
#
|
613
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#10
|
614
|
+
def initialize(object, inspector); end
|
615
|
+
|
616
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#18
|
617
|
+
def format; end
|
618
|
+
|
619
|
+
# Returns the value of attribute inspector.
|
620
|
+
#
|
621
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8
|
622
|
+
def inspector; end
|
623
|
+
|
624
|
+
# Returns the value of attribute object.
|
625
|
+
#
|
626
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8
|
627
|
+
def object; end
|
628
|
+
|
629
|
+
# Returns the value of attribute options.
|
630
|
+
#
|
631
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8
|
632
|
+
def options; end
|
633
|
+
|
634
|
+
# Returns the value of attribute variables.
|
635
|
+
#
|
636
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#8
|
637
|
+
def variables; end
|
638
|
+
|
639
|
+
private
|
640
|
+
|
641
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#64
|
642
|
+
def awesome_instance; end
|
643
|
+
|
644
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#75
|
645
|
+
def left_aligned; end
|
646
|
+
|
647
|
+
# @return [Boolean]
|
648
|
+
#
|
649
|
+
# source://amazing_print//lib/amazing_print/formatters/object_formatter.rb#60
|
650
|
+
def valid_instance_var?(variable_name); end
|
651
|
+
end
|
652
|
+
|
653
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#7
|
654
|
+
class AmazingPrint::Formatters::SimpleFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
655
|
+
# @return [SimpleFormatter] a new instance of SimpleFormatter
|
656
|
+
#
|
657
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#10
|
658
|
+
def initialize(string, type, inspector); end
|
659
|
+
|
660
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#18
|
661
|
+
def format; end
|
662
|
+
|
663
|
+
# Returns the value of attribute inspector.
|
664
|
+
#
|
665
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8
|
666
|
+
def inspector; end
|
667
|
+
|
668
|
+
# Returns the value of attribute options.
|
669
|
+
#
|
670
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8
|
671
|
+
def options; end
|
672
|
+
|
673
|
+
# Returns the value of attribute string.
|
674
|
+
#
|
675
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8
|
676
|
+
def string; end
|
677
|
+
|
678
|
+
# Returns the value of attribute type.
|
679
|
+
#
|
680
|
+
# source://amazing_print//lib/amazing_print/formatters/simple_formatter.rb#8
|
681
|
+
def type; end
|
682
|
+
end
|
683
|
+
|
684
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#7
|
685
|
+
class AmazingPrint::Formatters::StructFormatter < ::AmazingPrint::Formatters::BaseFormatter
|
686
|
+
# @return [StructFormatter] a new instance of StructFormatter
|
687
|
+
#
|
688
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#10
|
689
|
+
def initialize(struct, inspector); end
|
690
|
+
|
691
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#18
|
692
|
+
def format; end
|
693
|
+
|
694
|
+
# Returns the value of attribute inspector.
|
695
|
+
#
|
696
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8
|
697
|
+
def inspector; end
|
698
|
+
|
699
|
+
# Returns the value of attribute options.
|
700
|
+
#
|
701
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8
|
702
|
+
def options; end
|
703
|
+
|
704
|
+
# Returns the value of attribute struct.
|
705
|
+
#
|
706
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8
|
707
|
+
def struct; end
|
708
|
+
|
709
|
+
# Returns the value of attribute variables.
|
710
|
+
#
|
711
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#8
|
712
|
+
def variables; end
|
713
|
+
|
714
|
+
private
|
715
|
+
|
716
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#60
|
717
|
+
def awesome_instance; end
|
718
|
+
|
719
|
+
# source://amazing_print//lib/amazing_print/formatters/struct_formatter.rb#68
|
720
|
+
def left_aligned; end
|
721
|
+
end
|
722
|
+
|
723
|
+
# source://amazing_print//lib/amazing_print/indentator.rb#4
|
724
|
+
class AmazingPrint::Indentator
|
725
|
+
# @return [Indentator] a new instance of Indentator
|
726
|
+
#
|
727
|
+
# source://amazing_print//lib/amazing_print/indentator.rb#7
|
728
|
+
def initialize(indentation); end
|
729
|
+
|
730
|
+
# source://amazing_print//lib/amazing_print/indentator.rb#12
|
731
|
+
def indent; end
|
732
|
+
|
733
|
+
# Returns the value of attribute indentation.
|
734
|
+
#
|
735
|
+
# source://amazing_print//lib/amazing_print/indentator.rb#5
|
736
|
+
def indentation; end
|
737
|
+
|
738
|
+
# Returns the value of attribute shift_width.
|
739
|
+
#
|
740
|
+
# source://amazing_print//lib/amazing_print/indentator.rb#5
|
741
|
+
def shift_width; end
|
742
|
+
end
|
743
|
+
|
744
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#14
|
745
|
+
class AmazingPrint::Inspector
|
746
|
+
# @return [Inspector] a new instance of Inspector
|
747
|
+
#
|
748
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#28
|
749
|
+
def initialize(options = T.unsafe(nil)); end
|
750
|
+
|
751
|
+
# Dispatcher that detects data nesting and invokes object-aware formatter.
|
752
|
+
# ---------------------------------------------------------------------------
|
753
|
+
#
|
754
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#85
|
755
|
+
def awesome(object); end
|
756
|
+
|
757
|
+
# Return true if we are to colorize the output.
|
758
|
+
# ---------------------------------------------------------------------------
|
759
|
+
#
|
760
|
+
# @return [Boolean]
|
761
|
+
#
|
762
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#100
|
763
|
+
def colorize?; end
|
764
|
+
|
765
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#75
|
766
|
+
def current_indentation; end
|
767
|
+
|
768
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#79
|
769
|
+
def increase_indentation(&blk); end
|
770
|
+
|
771
|
+
# Returns the value of attribute indentator.
|
772
|
+
#
|
773
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#15
|
774
|
+
def indentator; end
|
775
|
+
|
776
|
+
# Sets the attribute indentator
|
777
|
+
#
|
778
|
+
# @param value the value to set the attribute indentator to.
|
779
|
+
#
|
780
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#15
|
781
|
+
def indentator=(_arg0); end
|
782
|
+
|
783
|
+
# Returns the value of attribute options.
|
784
|
+
#
|
785
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#15
|
786
|
+
def options; end
|
787
|
+
|
788
|
+
# Sets the attribute options
|
789
|
+
#
|
790
|
+
# @param value the value to set the attribute options to.
|
791
|
+
#
|
792
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#15
|
793
|
+
def options=(_arg0); end
|
794
|
+
|
795
|
+
private
|
796
|
+
|
797
|
+
# @return [Boolean]
|
798
|
+
#
|
799
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#182
|
800
|
+
def dotfile_readable?(dotfile); end
|
801
|
+
|
802
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#162
|
803
|
+
def find_dotfile; end
|
804
|
+
|
805
|
+
# This method needs to be mocked during testing so that it always loads
|
806
|
+
# predictable values
|
807
|
+
# ---------------------------------------------------------------------------
|
808
|
+
#
|
809
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#175
|
810
|
+
def load_dotfile; end
|
811
|
+
|
812
|
+
# Load ~/.aprc file with custom defaults that override default options.
|
813
|
+
# ---------------------------------------------------------------------------
|
814
|
+
#
|
815
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#190
|
816
|
+
def merge_custom_defaults!; end
|
817
|
+
|
818
|
+
# Update @options by first merging the :color hash and then the remaining
|
819
|
+
# keys.
|
820
|
+
# ---------------------------------------------------------------------------
|
821
|
+
#
|
822
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#157
|
823
|
+
def merge_options!(options = T.unsafe(nil)); end
|
824
|
+
|
825
|
+
# Format nested data, for example:
|
826
|
+
# arr = [1, 2]; arr << arr
|
827
|
+
# => [1,2, [...]]
|
828
|
+
# hash = { :a => 1 }; hash[:b] = hash
|
829
|
+
# => { :a => 1, :b => {...} }
|
830
|
+
# ---------------------------------------------------------------------------
|
831
|
+
#
|
832
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#125
|
833
|
+
def nested(object); end
|
834
|
+
|
835
|
+
# Turn class name into symbol, ex: Hello::World => :hello_world. Classes
|
836
|
+
# that inherit from Array, Hash, File, Dir, and Struct are treated as the
|
837
|
+
# base class.
|
838
|
+
# ---------------------------------------------------------------------------
|
839
|
+
#
|
840
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#143
|
841
|
+
def printable(object); end
|
842
|
+
|
843
|
+
# ---------------------------------------------------------------------------
|
844
|
+
#
|
845
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#135
|
846
|
+
def unnested(object); end
|
847
|
+
|
848
|
+
class << self
|
849
|
+
# Unload the cached dotfile and load it again.
|
850
|
+
#
|
851
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#22
|
852
|
+
def reload_dotfile; end
|
853
|
+
end
|
854
|
+
end
|
855
|
+
|
856
|
+
# source://amazing_print//lib/amazing_print/inspector.rb#17
|
857
|
+
AmazingPrint::Inspector::AP = T.let(T.unsafe(nil), Symbol)
|
858
|
+
|
859
|
+
# source://amazing_print//lib/amazing_print/core_ext/logger.rb#9
|
860
|
+
module AmazingPrint::Logger
|
861
|
+
# Add ap method to logger
|
862
|
+
# ------------------------------------------------------------------------------
|
863
|
+
#
|
864
|
+
# source://amazing_print//lib/amazing_print/core_ext/logger.rb#12
|
865
|
+
def ap(object, options = T.unsafe(nil)); end
|
866
|
+
end
|
867
|
+
|
868
|
+
# source://amazing_print//lib/amazing_print/ext/ostruct.rb#9
|
869
|
+
module AmazingPrint::OpenStruct
|
870
|
+
# source://amazing_print//lib/amazing_print/ext/ostruct.rb#21
|
871
|
+
def awesome_open_struct_instance(object); end
|
872
|
+
|
873
|
+
# source://amazing_print//lib/amazing_print/ext/ostruct.rb#15
|
874
|
+
def cast_with_ostruct(object, type); end
|
875
|
+
|
876
|
+
class << self
|
877
|
+
# @private
|
878
|
+
#
|
879
|
+
# source://amazing_print//lib/amazing_print/ext/ostruct.rb#10
|
880
|
+
def included(base); end
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
# source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#17
|
885
|
+
module AwesomeMethodArray
|
886
|
+
# source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#24
|
887
|
+
def &(other); end
|
888
|
+
|
889
|
+
# source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#18
|
890
|
+
def -(other); end
|
891
|
+
|
892
|
+
# Intercepting Array#grep needs a special treatment since grep accepts
|
893
|
+
# an optional block.
|
894
|
+
#
|
895
|
+
# source://amazing_print//lib/amazing_print/core_ext/awesome_method_array.rb#34
|
896
|
+
def grep(pattern, &blk); end
|
897
|
+
end
|
898
|
+
|
899
|
+
# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#8
|
900
|
+
module Kernel
|
901
|
+
# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#9
|
902
|
+
def ai(options = T.unsafe(nil)); end
|
903
|
+
|
904
|
+
# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#20
|
905
|
+
def amazing_print(object, options = T.unsafe(nil)); end
|
906
|
+
|
907
|
+
# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#9
|
908
|
+
def awesome_inspect(options = T.unsafe(nil)); end
|
909
|
+
|
910
|
+
private
|
911
|
+
|
912
|
+
# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#20
|
913
|
+
def ap(object, options = T.unsafe(nil)); end
|
914
|
+
|
915
|
+
class << self
|
916
|
+
# source://amazing_print//lib/amazing_print/core_ext/kernel.rb#20
|
917
|
+
def ap(object, options = T.unsafe(nil)); end
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
class Logger
|
922
|
+
include ::AmazingPrint::Logger
|
923
|
+
end
|