zelkova 0.1.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.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rubocop.yml +57 -0
  4. data/.travis.yml +6 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +19 -0
  7. data/Gemfile.lock +173 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +53 -0
  10. data/Rakefile +10 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/bin/tapioca +27 -0
  14. data/lib/zelkova/edge.rb +26 -0
  15. data/lib/zelkova/graph.rb +104 -0
  16. data/lib/zelkova/node.rb +32 -0
  17. data/lib/zelkova/version.rb +4 -0
  18. data/lib/zelkova.rb +10 -0
  19. data/sorbet/config +3 -0
  20. data/sorbet/rbi/gems/byebug.rbi +1041 -0
  21. data/sorbet/rbi/gems/climate_control.rbi +46 -0
  22. data/sorbet/rbi/gems/coderay.rbi +92 -0
  23. data/sorbet/rbi/gems/eikon.rbi +48 -0
  24. data/sorbet/rbi/gems/ffi.rbi +560 -0
  25. data/sorbet/rbi/gems/method_source.rbi +64 -0
  26. data/sorbet/rbi/gems/minitest.rbi +422 -0
  27. data/sorbet/rbi/gems/pry.rbi +1949 -0
  28. data/sorbet/rbi/gems/rake.rbi +645 -0
  29. data/sorbet/rbi/gems/ruby-vips.rbi +656 -0
  30. data/sorbet/rbi/gems/ruby_jard.rbi +681 -0
  31. data/sorbet/rbi/gems/terrapin.rbi +116 -0
  32. data/sorbet/rbi/gems/tty-screen.rbi +66 -0
  33. data/sorbet/rbi/gems/zelkova.rbi +15 -0
  34. data/sorbet/rbi/hidden-definitions/errors.txt +34600 -0
  35. data/sorbet/rbi/hidden-definitions/hidden.rbi +17564 -0
  36. data/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +1138 -0
  37. data/sorbet/rbi/sorbet-typed/lib/actionview/all/actionview.rbi +408 -0
  38. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6/activesupport.rbi +37 -0
  39. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1850 -0
  40. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
  41. data/sorbet/rbi/sorbet-typed/lib/railties/>=6.1/railties.rbi +15 -0
  42. data/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +110 -0
  43. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
  44. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  45. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +12 -0
  46. data/sorbet/rbi/sorbet-typed/lib/rubocop-performance/~>1.6/rubocop-performance.rbi +149 -0
  47. data/sorbet/rbi/sorbet-typed/lib/rubocop-rails/~>2.5/rubocop-rails.rbi +328 -0
  48. data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
  49. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +32 -0
  50. data/sorbet/rbi/todo.rbi +15 -0
  51. data/sorbet/tapioca/config.yml +13 -0
  52. data/sorbet/tapioca/require.rb +4 -0
  53. data/zelkova.gemspec +31 -0
  54. metadata +110 -0
@@ -0,0 +1,560 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: ignore
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/ffi/all/ffi.rbi
9
+ #
10
+ # ffi-1.15.5
11
+
12
+ class FFI::Type
13
+ def alignment; end
14
+ def initialize(arg0); end
15
+ def inspect; end
16
+ def size; end
17
+ end
18
+ class FFI::Type::Builtin < FFI::Type
19
+ def inspect; end
20
+ end
21
+ class FFI::ArrayType < FFI::Type
22
+ def elem_type; end
23
+ def initialize(arg0, arg1); end
24
+ def length; end
25
+ end
26
+ module FFI::LastError
27
+ def error; end
28
+ def error=(arg0); end
29
+ def self.error; end
30
+ def self.error=(arg0); end
31
+ end
32
+ class FFI::AbstractMemory
33
+ def [](arg0); end
34
+ def __copy_from__(arg0, arg1); end
35
+ def clear; end
36
+ def get(arg0, arg1); end
37
+ def get_array_of_char(arg0, arg1); end
38
+ def get_array_of_double(arg0, arg1); end
39
+ def get_array_of_float(arg0, arg1); end
40
+ def get_array_of_float32(arg0, arg1); end
41
+ def get_array_of_float64(arg0, arg1); end
42
+ def get_array_of_int(arg0, arg1); end
43
+ def get_array_of_int16(arg0, arg1); end
44
+ def get_array_of_int32(arg0, arg1); end
45
+ def get_array_of_int64(arg0, arg1); end
46
+ def get_array_of_int8(arg0, arg1); end
47
+ def get_array_of_long(arg0, arg1); end
48
+ def get_array_of_long_long(arg0, arg1); end
49
+ def get_array_of_pointer(arg0, arg1); end
50
+ def get_array_of_short(arg0, arg1); end
51
+ def get_array_of_string(*arg0); end
52
+ def get_array_of_uchar(arg0, arg1); end
53
+ def get_array_of_uint(arg0, arg1); end
54
+ def get_array_of_uint16(arg0, arg1); end
55
+ def get_array_of_uint32(arg0, arg1); end
56
+ def get_array_of_uint64(arg0, arg1); end
57
+ def get_array_of_uint8(arg0, arg1); end
58
+ def get_array_of_ulong(arg0, arg1); end
59
+ def get_array_of_ulong_long(arg0, arg1); end
60
+ def get_array_of_ushort(arg0, arg1); end
61
+ def get_bytes(arg0, arg1); end
62
+ def get_char(arg0); end
63
+ def get_double(arg0); end
64
+ def get_float(arg0); end
65
+ def get_float32(arg0); end
66
+ def get_float64(arg0); end
67
+ def get_int(arg0); end
68
+ def get_int16(arg0); end
69
+ def get_int32(arg0); end
70
+ def get_int64(arg0); end
71
+ def get_int8(arg0); end
72
+ def get_long(arg0); end
73
+ def get_long_long(arg0); end
74
+ def get_pointer(arg0); end
75
+ def get_short(arg0); end
76
+ def get_string(*arg0); end
77
+ def get_uchar(arg0); end
78
+ def get_uint(arg0); end
79
+ def get_uint16(arg0); end
80
+ def get_uint32(arg0); end
81
+ def get_uint64(arg0); end
82
+ def get_uint8(arg0); end
83
+ def get_ulong(arg0); end
84
+ def get_ulong_long(arg0); end
85
+ def get_ushort(arg0); end
86
+ def put(arg0, arg1, arg2); end
87
+ def put_array_of_char(arg0, arg1); end
88
+ def put_array_of_double(arg0, arg1); end
89
+ def put_array_of_float(arg0, arg1); end
90
+ def put_array_of_float32(arg0, arg1); end
91
+ def put_array_of_float64(arg0, arg1); end
92
+ def put_array_of_int(arg0, arg1); end
93
+ def put_array_of_int16(arg0, arg1); end
94
+ def put_array_of_int32(arg0, arg1); end
95
+ def put_array_of_int64(arg0, arg1); end
96
+ def put_array_of_int8(arg0, arg1); end
97
+ def put_array_of_long(arg0, arg1); end
98
+ def put_array_of_long_long(arg0, arg1); end
99
+ def put_array_of_pointer(arg0, arg1); end
100
+ def put_array_of_short(arg0, arg1); end
101
+ def put_array_of_uchar(arg0, arg1); end
102
+ def put_array_of_uint(arg0, arg1); end
103
+ def put_array_of_uint16(arg0, arg1); end
104
+ def put_array_of_uint32(arg0, arg1); end
105
+ def put_array_of_uint64(arg0, arg1); end
106
+ def put_array_of_uint8(arg0, arg1); end
107
+ def put_array_of_ulong(arg0, arg1); end
108
+ def put_array_of_ulong_long(arg0, arg1); end
109
+ def put_array_of_ushort(arg0, arg1); end
110
+ def put_bytes(*arg0); end
111
+ def put_char(arg0, arg1); end
112
+ def put_double(arg0, arg1); end
113
+ def put_float(arg0, arg1); end
114
+ def put_float32(arg0, arg1); end
115
+ def put_float64(arg0, arg1); end
116
+ def put_int(arg0, arg1); end
117
+ def put_int16(arg0, arg1); end
118
+ def put_int32(arg0, arg1); end
119
+ def put_int64(arg0, arg1); end
120
+ def put_int8(arg0, arg1); end
121
+ def put_long(arg0, arg1); end
122
+ def put_long_long(arg0, arg1); end
123
+ def put_pointer(arg0, arg1); end
124
+ def put_short(arg0, arg1); end
125
+ def put_string(arg0, arg1); end
126
+ def put_uchar(arg0, arg1); end
127
+ def put_uint(arg0, arg1); end
128
+ def put_uint16(arg0, arg1); end
129
+ def put_uint32(arg0, arg1); end
130
+ def put_uint64(arg0, arg1); end
131
+ def put_uint8(arg0, arg1); end
132
+ def put_ulong(arg0, arg1); end
133
+ def put_ulong_long(arg0, arg1); end
134
+ def put_ushort(arg0, arg1); end
135
+ def read_array_of_char(arg0); end
136
+ def read_array_of_double(arg0); end
137
+ def read_array_of_float(arg0); end
138
+ def read_array_of_int(arg0); end
139
+ def read_array_of_int16(arg0); end
140
+ def read_array_of_int32(arg0); end
141
+ def read_array_of_int64(arg0); end
142
+ def read_array_of_int8(arg0); end
143
+ def read_array_of_long(arg0); end
144
+ def read_array_of_long_long(arg0); end
145
+ def read_array_of_pointer(arg0); end
146
+ def read_array_of_short(arg0); end
147
+ def read_array_of_uchar(arg0); end
148
+ def read_array_of_uint(arg0); end
149
+ def read_array_of_uint16(arg0); end
150
+ def read_array_of_uint32(arg0); end
151
+ def read_array_of_uint64(arg0); end
152
+ def read_array_of_uint8(arg0); end
153
+ def read_array_of_ulong(arg0); end
154
+ def read_array_of_ulong_long(arg0); end
155
+ def read_array_of_ushort(arg0); end
156
+ def read_bytes(arg0); end
157
+ def read_char; end
158
+ def read_double; end
159
+ def read_float; end
160
+ def read_int16; end
161
+ def read_int32; end
162
+ def read_int64; end
163
+ def read_int8; end
164
+ def read_int; end
165
+ def read_long; end
166
+ def read_long_long; end
167
+ def read_pointer; end
168
+ def read_short; end
169
+ def read_uchar; end
170
+ def read_uint16; end
171
+ def read_uint32; end
172
+ def read_uint64; end
173
+ def read_uint8; end
174
+ def read_uint; end
175
+ def read_ulong; end
176
+ def read_ulong_long; end
177
+ def read_ushort; end
178
+ def size; end
179
+ def size_limit?; end
180
+ def total; end
181
+ def type_size; end
182
+ def write_array_of_char(arg0); end
183
+ def write_array_of_double(arg0); end
184
+ def write_array_of_float(arg0); end
185
+ def write_array_of_int(arg0); end
186
+ def write_array_of_int16(arg0); end
187
+ def write_array_of_int32(arg0); end
188
+ def write_array_of_int64(arg0); end
189
+ def write_array_of_int8(arg0); end
190
+ def write_array_of_long(arg0); end
191
+ def write_array_of_long_long(arg0); end
192
+ def write_array_of_pointer(arg0); end
193
+ def write_array_of_short(arg0); end
194
+ def write_array_of_uchar(arg0); end
195
+ def write_array_of_uint(arg0); end
196
+ def write_array_of_uint16(arg0); end
197
+ def write_array_of_uint32(arg0); end
198
+ def write_array_of_uint64(arg0); end
199
+ def write_array_of_uint8(arg0); end
200
+ def write_array_of_ulong(arg0); end
201
+ def write_array_of_ulong_long(arg0); end
202
+ def write_array_of_ushort(arg0); end
203
+ def write_bytes(*arg0); end
204
+ def write_char(arg0); end
205
+ def write_double(arg0); end
206
+ def write_float(arg0); end
207
+ def write_int(arg0); end
208
+ def write_int16(arg0); end
209
+ def write_int32(arg0); end
210
+ def write_int64(arg0); end
211
+ def write_int8(arg0); end
212
+ def write_long(arg0); end
213
+ def write_long_long(arg0); end
214
+ def write_pointer(arg0); end
215
+ def write_short(arg0); end
216
+ def write_uchar(arg0); end
217
+ def write_uint(arg0); end
218
+ def write_uint16(arg0); end
219
+ def write_uint32(arg0); end
220
+ def write_uint64(arg0); end
221
+ def write_uint8(arg0); end
222
+ def write_ulong(arg0); end
223
+ def write_ulong_long(arg0); end
224
+ def write_ushort(arg0); end
225
+ end
226
+ class FFI::Pointer < FFI::AbstractMemory
227
+ def +(arg0); end
228
+ def ==(arg0); end
229
+ def address; end
230
+ def autorelease=(arg0); end
231
+ def autorelease?; end
232
+ def free; end
233
+ def initialize(*arg0); end
234
+ def initialize_copy(arg0); end
235
+ def inspect; end
236
+ def null?; end
237
+ def order(*arg0); end
238
+ def read(type); end
239
+ def read_array_of_type(type, reader, length); end
240
+ def read_string(len = nil); end
241
+ def read_string_length(len); end
242
+ def read_string_to_null; end
243
+ def self.size; end
244
+ def slice(arg0, arg1); end
245
+ def to_i; end
246
+ def to_ptr; end
247
+ def to_s; end
248
+ def type_size; end
249
+ def write(type, value); end
250
+ def write_array_of_type(type, writer, ary); end
251
+ def write_string(str, len = nil); end
252
+ def write_string_length(str, len); end
253
+ end
254
+ class FFI::FunctionType < FFI::Type
255
+ def initialize(*arg0); end
256
+ def param_types; end
257
+ def result_type; end
258
+ end
259
+ class FFI::Function < FFI::Pointer
260
+ def attach(arg0, arg1); end
261
+ def autorelease; end
262
+ def autorelease=(arg0); end
263
+ def autorelease?; end
264
+ def call(*arg0); end
265
+ def free; end
266
+ def initialize(*arg0); end
267
+ def initialize_copy(arg0); end
268
+ end
269
+ class FFI::MemoryPointer < FFI::Pointer
270
+ def initialize(*arg0); end
271
+ def self.from_string(arg0); end
272
+ end
273
+ class FFI::Buffer < FFI::AbstractMemory
274
+ def +(arg0); end
275
+ def initialize(*arg0); end
276
+ def initialize_copy(arg0); end
277
+ def inspect; end
278
+ def length; end
279
+ def order(*arg0); end
280
+ def self.alloc_in(*arg0); end
281
+ def self.alloc_inout(*arg0); end
282
+ def self.alloc_out(*arg0); end
283
+ def self.new_in(*arg0); end
284
+ def self.new_inout(*arg0); end
285
+ def self.new_out(*arg0); end
286
+ def slice(arg0, arg1); end
287
+ end
288
+ class FFI::StructByValue < FFI::Type
289
+ def initialize(arg0); end
290
+ def layout; end
291
+ def struct_class; end
292
+ end
293
+ class FFI::StructLayout::Field
294
+ def alignment; end
295
+ def get(arg0); end
296
+ def initialize(*arg0); end
297
+ def name; end
298
+ def offset; end
299
+ def put(arg0, arg1); end
300
+ def size; end
301
+ def type; end
302
+ end
303
+ class FFI::StructLayout::Function < FFI::StructLayout::Field
304
+ def get(arg0); end
305
+ def put(arg0, arg1); end
306
+ end
307
+ class FFI::StructLayout::Array < FFI::StructLayout::Field
308
+ def get(arg0); end
309
+ def put(arg0, arg1); end
310
+ end
311
+ class FFI::StructLayout < FFI::Type
312
+ def [](arg0); end
313
+ def __union!; end
314
+ def fields; end
315
+ def initialize(arg0, arg1, arg2); end
316
+ def members; end
317
+ def offset_of(field_name); end
318
+ def offsets; end
319
+ def to_a; end
320
+ end
321
+ class FFI::Struct
322
+ def [](arg0); end
323
+ def []=(arg0, arg1); end
324
+ def align; end
325
+ def alignment; end
326
+ def clear; end
327
+ def initialize(*arg0); end
328
+ def initialize_copy(arg0); end
329
+ def layout; end
330
+ def layout=(arg0); end
331
+ def members; end
332
+ def null?; end
333
+ def offset_of(name); end
334
+ def offsets; end
335
+ def order(*arg0); end
336
+ def pointer; end
337
+ def pointer=(arg0); end
338
+ def self.align(alignment = nil); end
339
+ def self.aligned(alignment = nil); end
340
+ def self.alignment; end
341
+ def self.alloc_in(*arg0, ****); end
342
+ def self.alloc_inout(*arg0, ****); end
343
+ def self.alloc_out(*arg0, ****); end
344
+ def self.array_layout(builder, spec); end
345
+ def self.auto_ptr; end
346
+ def self.by_ref(flags = nil); end
347
+ def self.by_value; end
348
+ def self.callback(params, ret); end
349
+ def self.enclosing_module; end
350
+ def self.find_field_type(type, mod = nil); end
351
+ def self.find_type(type, mod = nil); end
352
+ def self.hash_layout(builder, spec); end
353
+ def self.in; end
354
+ def self.layout(*spec); end
355
+ def self.members; end
356
+ def self.new_in(*arg0, ****); end
357
+ def self.new_inout(*arg0, ****); end
358
+ def self.new_out(*arg0, ****); end
359
+ def self.offset_of(name); end
360
+ def self.offsets; end
361
+ def self.out; end
362
+ def self.pack(packed = nil); end
363
+ def self.packed(packed = nil); end
364
+ def self.ptr(flags = nil); end
365
+ def self.size; end
366
+ def self.size=(size); end
367
+ def self.val; end
368
+ def size; end
369
+ def to_ptr; end
370
+ def values; end
371
+ end
372
+ class FFI::Struct::InlineArray
373
+ def [](arg0); end
374
+ def []=(arg0, arg1); end
375
+ def each; end
376
+ def initialize(arg0, arg1); end
377
+ def size; end
378
+ def to_a; end
379
+ def to_ptr; end
380
+ end
381
+ class FFI::StructLayout::CharArray < FFI::Struct::InlineArray
382
+ def to_s; end
383
+ def to_str; end
384
+ end
385
+ class FFI::DynamicLibrary
386
+ def find_function(arg0); end
387
+ def find_symbol(arg0); end
388
+ def find_variable(arg0); end
389
+ def initialize(arg0, arg1); end
390
+ def last_error; end
391
+ def name; end
392
+ def self.last_error; end
393
+ def self.open(arg0, arg1); end
394
+ end
395
+ class FFI::DynamicLibrary::Symbol < FFI::Pointer
396
+ def initialize_copy(arg0); end
397
+ def inspect; end
398
+ end
399
+ class FFI::VariadicInvoker
400
+ def attach(mod, mname); end
401
+ def call(*args, &block); end
402
+ def initialize(arg0, arg1, arg2, arg3); end
403
+ def invoke(arg0, arg1); end
404
+ end
405
+ class FFI::Type::Mapped < FFI::Type
406
+ def from_native(*arg0); end
407
+ def initialize(arg0); end
408
+ def native_type; end
409
+ def to_native(*arg0); end
410
+ def type; end
411
+ end
412
+ module FFI
413
+ def self.add_typedef(old, add); end
414
+ def self.errno; end
415
+ def self.errno=(error); end
416
+ def self.find_type(name, type_map = nil); end
417
+ def self.map_library_name(lib); end
418
+ def self.type_size(type); end
419
+ def self.typedef(old, add); end
420
+ end
421
+ class FFI::PlatformError < LoadError
422
+ end
423
+ module FFI::Platform
424
+ def self.bsd?; end
425
+ def self.is_os(os); end
426
+ def self.mac?; end
427
+ def self.solaris?; end
428
+ def self.unix?; end
429
+ def self.windows?; end
430
+ end
431
+ module FFI::DataConverter
432
+ def from_native(value, ctx); end
433
+ def native_type(type = nil); end
434
+ def to_native(value, ctx); end
435
+ end
436
+ class FFI::StrPtrConverter
437
+ def self.from_native(val, ctx); end
438
+ extend FFI::DataConverter
439
+ end
440
+ class FFI::NotFoundError < LoadError
441
+ def initialize(function, *libraries); end
442
+ end
443
+ module FFI::Library
444
+ def attach_function(name, func, args, returns = nil, options = nil); end
445
+ def attach_variable(mname, a1, a2 = nil); end
446
+ def bitmask(*args); end
447
+ def callback(*args); end
448
+ def enum(*args); end
449
+ def enum_type(name); end
450
+ def enum_value(symbol); end
451
+ def ffi_convention(convention = nil); end
452
+ def ffi_lib(*names); end
453
+ def ffi_lib_flags(*flags); end
454
+ def ffi_libraries; end
455
+ def find_type(t); end
456
+ def function_names(name, arg_types); end
457
+ def generic_enum(klass, *args); end
458
+ def self.extended(mod); end
459
+ def typedef(old, add, info = nil); end
460
+ end
461
+ class FFI::StructLayout::Enum < FFI::StructLayout::Field
462
+ def get(ptr); end
463
+ def put(ptr, value); end
464
+ end
465
+ class FFI::StructLayout::InnerStruct < FFI::StructLayout::Field
466
+ def get(ptr); end
467
+ def put(ptr, value); end
468
+ end
469
+ class FFI::StructLayout::Mapped < FFI::StructLayout::Field
470
+ def get(ptr); end
471
+ def initialize(name, offset, type, orig_field); end
472
+ def put(ptr, value); end
473
+ end
474
+ class FFI::StructLayoutBuilder
475
+ def add(name, type, offset = nil); end
476
+ def add_array(name, type, count, offset = nil); end
477
+ def add_field(name, type, offset = nil); end
478
+ def add_struct(name, type, offset = nil); end
479
+ def align(offset, align); end
480
+ def alignment; end
481
+ def alignment=(align); end
482
+ def build; end
483
+ def field_for_type(name, offset, type); end
484
+ def initialize; end
485
+ def packed=(packed); end
486
+ def size; end
487
+ def size=(size); end
488
+ def union=(is_union); end
489
+ def union?; end
490
+ end
491
+ class FFI::StructByReference
492
+ def from_native(value, ctx); end
493
+ def initialize(struct_class); end
494
+ def native_type; end
495
+ def struct_class; end
496
+ def to_native(value, ctx); end
497
+ include FFI::DataConverter
498
+ end
499
+ class FFI::Struct::ManagedStructConverter < FFI::StructByReference
500
+ def from_native(ptr, ctx); end
501
+ def initialize(struct_class); end
502
+ end
503
+ class FFI::Union < FFI::Struct
504
+ def self.builder; end
505
+ end
506
+ class FFI::ManagedStruct < FFI::Struct
507
+ def initialize(pointer = nil); end
508
+ end
509
+ module FFI::IO
510
+ def self.for_fd(fd, mode = nil); end
511
+ def self.native_read(io, buf, len); end
512
+ end
513
+ class FFI::AutoPointer < FFI::Pointer
514
+ def autorelease=(autorelease); end
515
+ def autorelease?; end
516
+ def free; end
517
+ def initialize(ptr, proc = nil, &block); end
518
+ def self.from_native(val, ctx); end
519
+ def self.native_type; end
520
+ extend FFI::DataConverter
521
+ end
522
+ class FFI::AutoPointer::Releaser
523
+ def autorelease; end
524
+ def autorelease=(arg0); end
525
+ def call(*args); end
526
+ def free; end
527
+ def initialize(ptr, proc); end
528
+ end
529
+ class FFI::AutoPointer::DefaultReleaser < FFI::AutoPointer::Releaser
530
+ def release(ptr); end
531
+ end
532
+ class FFI::AutoPointer::CallableReleaser < FFI::AutoPointer::Releaser
533
+ def release(ptr); end
534
+ end
535
+ class FFI::Enums
536
+ def <<(enum); end
537
+ def __map_symbol(symbol); end
538
+ def find(query); end
539
+ def initialize; end
540
+ end
541
+ class FFI::Enum
542
+ def [](query); end
543
+ def find(query); end
544
+ def from_native(val, ctx); end
545
+ def initialize(*args); end
546
+ def native_type; end
547
+ def symbol_map; end
548
+ def symbols; end
549
+ def tag; end
550
+ def to_h; end
551
+ def to_hash; end
552
+ def to_native(val, ctx); end
553
+ include FFI::DataConverter
554
+ end
555
+ class FFI::Bitmask < FFI::Enum
556
+ def [](*query); end
557
+ def from_native(val, ctx); end
558
+ def initialize(*args); end
559
+ def to_native(query, ctx); end
560
+ end
@@ -0,0 +1,64 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/method_source/all/method_source.rbi
9
+ #
10
+ # method_source-1.0.0
11
+
12
+ module MethodSource
13
+ def self.comment_helper(source_location, name = nil); end
14
+ def self.extract_code(source_location); end
15
+ def self.lines_for(file_name, name = nil); end
16
+ def self.source_helper(source_location, name = nil); end
17
+ def self.valid_expression?(str); end
18
+ extend MethodSource::CodeHelpers
19
+ end
20
+ module MethodSource::ReeSourceLocation
21
+ def source_location; end
22
+ end
23
+ module MethodSource::SourceLocation
24
+ end
25
+ module MethodSource::SourceLocation::MethodExtensions
26
+ def source_location; end
27
+ def trace_func(event, file, line, id, binding, classname); end
28
+ end
29
+ module MethodSource::SourceLocation::ProcExtensions
30
+ def source_location; end
31
+ end
32
+ module MethodSource::SourceLocation::UnboundMethodExtensions
33
+ def source_location; end
34
+ end
35
+ module MethodSource::CodeHelpers
36
+ def comment_describing(file, line_number); end
37
+ def complete_expression?(str); end
38
+ def expression_at(file, line_number, options = nil); end
39
+ def extract_first_expression(lines, consume = nil, &block); end
40
+ def extract_last_comment(lines); end
41
+ end
42
+ module MethodSource::CodeHelpers::IncompleteExpression
43
+ def self.===(ex); end
44
+ def self.rbx?; end
45
+ end
46
+ class MethodSource::SourceNotFoundError < StandardError
47
+ end
48
+ module MethodSource::MethodExtensions
49
+ def comment; end
50
+ def self.included(klass); end
51
+ def source; end
52
+ end
53
+ class Method
54
+ include MethodSource::MethodExtensions
55
+ include MethodSource::SourceLocation::MethodExtensions
56
+ end
57
+ class UnboundMethod
58
+ include MethodSource::MethodExtensions
59
+ include MethodSource::SourceLocation::UnboundMethodExtensions
60
+ end
61
+ class Proc
62
+ include MethodSource::MethodExtensions
63
+ include MethodSource::SourceLocation::ProcExtensions
64
+ end