ruby-lint 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1957 @@
1
+ # This file was automatically generated, any manual changes will be lost the
2
+ # next time this file is generated.
3
+ #
4
+ # Platform: rbx 2.2.10.n219
5
+
6
+ RubyLint.registry.register('Sinatra') do |defs|
7
+ defs.define_constant('Sinatra') do |klass|
8
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
9
+
10
+ klass.define_method('helpers') do |method|
11
+ method.define_rest_argument('extensions')
12
+ method.define_block_argument('block')
13
+ end
14
+
15
+ klass.define_method('new') do |method|
16
+ method.define_optional_argument('base')
17
+ method.define_optional_argument('options')
18
+ method.define_block_argument('block')
19
+
20
+ method.returns { |object| object.instance }
21
+ end
22
+
23
+ klass.define_method('register') do |method|
24
+ method.define_rest_argument('extensions')
25
+ method.define_block_argument('block')
26
+ end
27
+
28
+ klass.define_method('use') do |method|
29
+ method.define_rest_argument('args')
30
+ method.define_block_argument('block')
31
+ end
32
+ end
33
+
34
+ defs.define_constant('Sinatra::Application') do |klass|
35
+ klass.inherits(defs.constant_proxy('Sinatra::Base', RubyLint.registry))
36
+
37
+ klass.define_method('app_file')
38
+
39
+ klass.define_method('app_file=') do |method|
40
+ method.define_argument('val')
41
+ end
42
+
43
+ klass.define_method('app_file?')
44
+
45
+ klass.define_method('logging')
46
+
47
+ klass.define_method('logging=') do |method|
48
+ method.define_argument('val')
49
+ end
50
+
51
+ klass.define_method('logging?')
52
+
53
+ klass.define_method('method_override')
54
+
55
+ klass.define_method('method_override=') do |method|
56
+ method.define_argument('val')
57
+ end
58
+
59
+ klass.define_method('method_override?')
60
+
61
+ klass.define_method('register') do |method|
62
+ method.define_rest_argument('extensions')
63
+ method.define_block_argument('block')
64
+ end
65
+
66
+ klass.define_method('run')
67
+
68
+ klass.define_method('run=') do |method|
69
+ method.define_argument('val')
70
+ end
71
+
72
+ klass.define_method('run?')
73
+
74
+ klass.define_method('session_secret')
75
+
76
+ klass.define_method('session_secret=') do |method|
77
+ method.define_argument('val')
78
+ end
79
+
80
+ klass.define_method('session_secret?')
81
+ end
82
+
83
+ defs.define_constant('Sinatra::Application::ContentTyped') do |klass|
84
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
85
+
86
+ klass.define_instance_method('content_type')
87
+
88
+ klass.define_instance_method('content_type=')
89
+ end
90
+
91
+ defs.define_constant('Sinatra::Application::Context') do |klass|
92
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
93
+
94
+ klass.define_instance_method('app')
95
+
96
+ klass.define_instance_method('call') do |method|
97
+ method.define_argument('env')
98
+ end
99
+
100
+ klass.define_instance_method('context') do |method|
101
+ method.define_argument('env')
102
+ method.define_optional_argument('app')
103
+ end
104
+
105
+ klass.define_instance_method('for')
106
+
107
+ klass.define_instance_method('initialize') do |method|
108
+ method.define_argument('app_f')
109
+ method.define_argument('app_r')
110
+
111
+ method.returns { |object| object.instance }
112
+ end
113
+
114
+ klass.define_instance_method('recontext') do |method|
115
+ method.define_argument('app')
116
+ end
117
+ end
118
+
119
+ defs.define_constant('Sinatra::Application::DEFAULT_SEP') do |klass|
120
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
121
+
122
+ end
123
+
124
+ defs.define_constant('Sinatra::Application::ESCAPE_HTML') do |klass|
125
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
126
+
127
+ end
128
+
129
+ defs.define_constant('Sinatra::Application::ESCAPE_HTML_PATTERN') do |klass|
130
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
131
+
132
+ end
133
+
134
+ defs.define_constant('Sinatra::Application::HTTP_STATUS_CODES') do |klass|
135
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
136
+
137
+ end
138
+
139
+ defs.define_constant('Sinatra::Application::HeaderHash') do |klass|
140
+ klass.inherits(defs.constant_proxy('Hash', RubyLint.registry))
141
+
142
+ klass.define_method('new') do |method|
143
+ method.define_optional_argument('hash')
144
+
145
+ method.returns { |object| object.instance }
146
+ end
147
+
148
+ klass.define_instance_method('[]') do |method|
149
+ method.define_argument('k')
150
+ end
151
+
152
+ klass.define_instance_method('[]=') do |method|
153
+ method.define_argument('k')
154
+ method.define_argument('v')
155
+ end
156
+
157
+ klass.define_instance_method('delete') do |method|
158
+ method.define_argument('k')
159
+ end
160
+
161
+ klass.define_instance_method('each')
162
+
163
+ klass.define_instance_method('has_key?') do |method|
164
+ method.define_argument('k')
165
+ end
166
+
167
+ klass.define_instance_method('include?') do |method|
168
+ method.define_argument('k')
169
+ end
170
+
171
+ klass.define_instance_method('initialize') do |method|
172
+ method.define_optional_argument('hash')
173
+
174
+ method.returns { |object| object.instance }
175
+ end
176
+
177
+ klass.define_instance_method('key?') do |method|
178
+ method.define_argument('k')
179
+ end
180
+
181
+ klass.define_instance_method('member?') do |method|
182
+ method.define_argument('k')
183
+ end
184
+
185
+ klass.define_instance_method('merge') do |method|
186
+ method.define_argument('other')
187
+ end
188
+
189
+ klass.define_instance_method('merge!') do |method|
190
+ method.define_argument('other')
191
+ end
192
+
193
+ klass.define_instance_method('replace') do |method|
194
+ method.define_argument('other')
195
+ end
196
+
197
+ klass.define_instance_method('to_hash')
198
+ end
199
+
200
+ defs.define_constant('Sinatra::Application::KeySpaceConstrainedParams') do |klass|
201
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
202
+
203
+ klass.define_instance_method('[]') do |method|
204
+ method.define_argument('key')
205
+ end
206
+
207
+ klass.define_instance_method('[]=') do |method|
208
+ method.define_argument('key')
209
+ method.define_argument('value')
210
+ end
211
+
212
+ klass.define_instance_method('initialize') do |method|
213
+ method.define_optional_argument('limit')
214
+
215
+ method.returns { |object| object.instance }
216
+ end
217
+
218
+ klass.define_instance_method('key?') do |method|
219
+ method.define_argument('key')
220
+ end
221
+
222
+ klass.define_instance_method('to_params_hash')
223
+ end
224
+
225
+ defs.define_constant('Sinatra::Application::Multipart') do |klass|
226
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
227
+
228
+ klass.define_method('build_multipart') do |method|
229
+ method.define_argument('params')
230
+ method.define_optional_argument('first')
231
+ end
232
+
233
+ klass.define_method('parse_multipart') do |method|
234
+ method.define_argument('env')
235
+ end
236
+ end
237
+
238
+ defs.define_constant('Sinatra::Application::OkJson') do |klass|
239
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
240
+
241
+ klass.define_instance_method('abbrev') do |method|
242
+ method.define_argument('s')
243
+ end
244
+
245
+ klass.define_instance_method('arrenc') do |method|
246
+ method.define_argument('a')
247
+ end
248
+
249
+ klass.define_instance_method('arrparse') do |method|
250
+ method.define_argument('ts')
251
+ end
252
+
253
+ klass.define_instance_method('decode') do |method|
254
+ method.define_argument('s')
255
+ end
256
+
257
+ klass.define_instance_method('eat') do |method|
258
+ method.define_argument('typ')
259
+ method.define_argument('ts')
260
+ end
261
+
262
+ klass.define_instance_method('encode') do |method|
263
+ method.define_argument('x')
264
+ end
265
+
266
+ klass.define_instance_method('falsetok') do |method|
267
+ method.define_argument('s')
268
+ end
269
+
270
+ klass.define_instance_method('hexdec4') do |method|
271
+ method.define_argument('s')
272
+ end
273
+
274
+ klass.define_instance_method('keyenc') do |method|
275
+ method.define_argument('k')
276
+ end
277
+
278
+ klass.define_instance_method('lex') do |method|
279
+ method.define_argument('s')
280
+ end
281
+
282
+ klass.define_instance_method('nibble') do |method|
283
+ method.define_argument('c')
284
+ end
285
+
286
+ klass.define_instance_method('nulltok') do |method|
287
+ method.define_argument('s')
288
+ end
289
+
290
+ klass.define_instance_method('numenc') do |method|
291
+ method.define_argument('x')
292
+ end
293
+
294
+ klass.define_instance_method('numtok') do |method|
295
+ method.define_argument('s')
296
+ end
297
+
298
+ klass.define_instance_method('objenc') do |method|
299
+ method.define_argument('x')
300
+ end
301
+
302
+ klass.define_instance_method('objparse') do |method|
303
+ method.define_argument('ts')
304
+ end
305
+
306
+ klass.define_instance_method('pairparse') do |method|
307
+ method.define_argument('ts')
308
+ end
309
+
310
+ klass.define_instance_method('strenc') do |method|
311
+ method.define_argument('s')
312
+ end
313
+
314
+ klass.define_instance_method('strtok') do |method|
315
+ method.define_argument('s')
316
+ end
317
+
318
+ klass.define_instance_method('subst') do |method|
319
+ method.define_argument('u1')
320
+ method.define_argument('u2')
321
+ end
322
+
323
+ klass.define_instance_method('surrogate?') do |method|
324
+ method.define_argument('u')
325
+ end
326
+
327
+ klass.define_instance_method('textparse') do |method|
328
+ method.define_argument('ts')
329
+ end
330
+
331
+ klass.define_instance_method('tok') do |method|
332
+ method.define_argument('s')
333
+ end
334
+
335
+ klass.define_instance_method('truetok') do |method|
336
+ method.define_argument('s')
337
+ end
338
+
339
+ klass.define_instance_method('ucharcopy') do |method|
340
+ method.define_argument('t')
341
+ method.define_argument('s')
342
+ method.define_argument('i')
343
+ end
344
+
345
+ klass.define_instance_method('ucharenc') do |method|
346
+ method.define_argument('a')
347
+ method.define_argument('i')
348
+ method.define_argument('u')
349
+ end
350
+
351
+ klass.define_instance_method('unquote') do |method|
352
+ method.define_argument('q')
353
+ end
354
+
355
+ klass.define_instance_method('valenc') do |method|
356
+ method.define_argument('x')
357
+ end
358
+
359
+ klass.define_instance_method('valparse') do |method|
360
+ method.define_argument('ts')
361
+ end
362
+ end
363
+
364
+ defs.define_constant('Sinatra::Application::STATUS_WITH_NO_ENTITY_BODY') do |klass|
365
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
366
+
367
+ end
368
+
369
+ defs.define_constant('Sinatra::Application::SYMBOL_TO_STATUS_CODE') do |klass|
370
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
371
+
372
+ end
373
+
374
+ defs.define_constant('Sinatra::Application::Stream') do |klass|
375
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
376
+
377
+ klass.define_method('defer') do |method|
378
+ method.define_rest_argument('arg1')
379
+ end
380
+
381
+ klass.define_method('schedule') do |method|
382
+ method.define_rest_argument('arg1')
383
+ end
384
+
385
+ klass.define_instance_method('<<') do |method|
386
+ method.define_argument('data')
387
+ end
388
+
389
+ klass.define_instance_method('callback') do |method|
390
+ method.define_block_argument('block')
391
+ end
392
+
393
+ klass.define_instance_method('close')
394
+
395
+ klass.define_instance_method('closed?')
396
+
397
+ klass.define_instance_method('each') do |method|
398
+ method.define_block_argument('front')
399
+ end
400
+
401
+ klass.define_instance_method('errback') do |method|
402
+ method.define_block_argument('block')
403
+ end
404
+
405
+ klass.define_instance_method('initialize') do |method|
406
+ method.define_optional_argument('scheduler')
407
+ method.define_optional_argument('keep_open')
408
+ method.define_block_argument('back')
409
+
410
+ method.returns { |object| object.instance }
411
+ end
412
+ end
413
+
414
+ defs.define_constant('Sinatra::Application::URI') do |klass|
415
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
416
+
417
+ end
418
+
419
+ defs.define_constant('Sinatra::Base') do |klass|
420
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
421
+ klass.inherits(defs.constant_proxy('Sinatra::Templates', RubyLint.registry))
422
+ klass.inherits(defs.constant_proxy('Sinatra::Helpers', RubyLint.registry))
423
+ klass.inherits(defs.constant_proxy('Rack::Utils', RubyLint.registry))
424
+
425
+ klass.define_method('absolute_redirects')
426
+
427
+ klass.define_method('absolute_redirects=') do |method|
428
+ method.define_argument('val')
429
+ end
430
+
431
+ klass.define_method('absolute_redirects?')
432
+
433
+ klass.define_method('add_charset')
434
+
435
+ klass.define_method('add_charset=') do |method|
436
+ method.define_argument('val')
437
+ end
438
+
439
+ klass.define_method('add_charset?')
440
+
441
+ klass.define_method('add_filter') do |method|
442
+ method.define_argument('type')
443
+ method.define_optional_argument('path')
444
+ method.define_optional_argument('options')
445
+ method.define_block_argument('block')
446
+ end
447
+
448
+ klass.define_method('after') do |method|
449
+ method.define_optional_argument('path')
450
+ method.define_optional_argument('options')
451
+ method.define_block_argument('block')
452
+ end
453
+
454
+ klass.define_method('app_file')
455
+
456
+ klass.define_method('app_file=') do |method|
457
+ method.define_argument('val')
458
+ end
459
+
460
+ klass.define_method('app_file?')
461
+
462
+ klass.define_method('before') do |method|
463
+ method.define_optional_argument('path')
464
+ method.define_optional_argument('options')
465
+ method.define_block_argument('block')
466
+ end
467
+
468
+ klass.define_method('bind')
469
+
470
+ klass.define_method('bind=') do |method|
471
+ method.define_argument('val')
472
+ end
473
+
474
+ klass.define_method('bind?')
475
+
476
+ klass.define_method('build') do |method|
477
+ method.define_argument('app')
478
+ end
479
+
480
+ klass.define_method('call') do |method|
481
+ method.define_argument('env')
482
+ end
483
+
484
+ klass.define_method('caller_files')
485
+
486
+ klass.define_method('caller_locations')
487
+
488
+ klass.define_method('condition') do |method|
489
+ method.define_optional_argument('name')
490
+ method.define_block_argument('block')
491
+ end
492
+
493
+ klass.define_method('configure') do |method|
494
+ method.define_rest_argument('envs')
495
+ method.define_block_argument('block')
496
+ end
497
+
498
+ klass.define_method('default_encoding')
499
+
500
+ klass.define_method('default_encoding=') do |method|
501
+ method.define_argument('val')
502
+ end
503
+
504
+ klass.define_method('default_encoding?')
505
+
506
+ klass.define_method('delete') do |method|
507
+ method.define_argument('path')
508
+ method.define_optional_argument('opts')
509
+ method.define_block_argument('bk')
510
+ end
511
+
512
+ klass.define_method('development?')
513
+
514
+ klass.define_method('disable') do |method|
515
+ method.define_rest_argument('opts')
516
+ end
517
+
518
+ klass.define_method('dump_errors')
519
+
520
+ klass.define_method('dump_errors=') do |method|
521
+ method.define_argument('val')
522
+ end
523
+
524
+ klass.define_method('dump_errors?')
525
+
526
+ klass.define_method('empty_path_info')
527
+
528
+ klass.define_method('empty_path_info=') do |method|
529
+ method.define_argument('val')
530
+ end
531
+
532
+ klass.define_method('empty_path_info?')
533
+
534
+ klass.define_method('enable') do |method|
535
+ method.define_rest_argument('opts')
536
+ end
537
+
538
+ klass.define_method('environment')
539
+
540
+ klass.define_method('environment=') do |method|
541
+ method.define_argument('val')
542
+ end
543
+
544
+ klass.define_method('environment?')
545
+
546
+ klass.define_method('error') do |method|
547
+ method.define_rest_argument('codes')
548
+ method.define_block_argument('block')
549
+ end
550
+
551
+ klass.define_method('errors')
552
+
553
+ klass.define_method('extensions')
554
+
555
+ klass.define_method('filters')
556
+
557
+ klass.define_method('force_encoding') do |method|
558
+ method.define_argument('data')
559
+ method.define_optional_argument('encoding')
560
+ end
561
+
562
+ klass.define_method('get') do |method|
563
+ method.define_argument('path')
564
+ method.define_optional_argument('opts')
565
+ method.define_block_argument('block')
566
+ end
567
+
568
+ klass.define_method('head') do |method|
569
+ method.define_argument('path')
570
+ method.define_optional_argument('opts')
571
+ method.define_block_argument('bk')
572
+ end
573
+
574
+ klass.define_method('helpers') do |method|
575
+ method.define_rest_argument('extensions')
576
+ method.define_block_argument('block')
577
+ end
578
+
579
+ klass.define_method('inline_templates=') do |method|
580
+ method.define_optional_argument('file')
581
+ end
582
+
583
+ klass.define_method('layout') do |method|
584
+ method.define_optional_argument('name')
585
+ method.define_block_argument('block')
586
+ end
587
+
588
+ klass.define_method('link') do |method|
589
+ method.define_argument('path')
590
+ method.define_optional_argument('opts')
591
+ method.define_block_argument('bk')
592
+ end
593
+
594
+ klass.define_method('lock')
595
+
596
+ klass.define_method('lock=') do |method|
597
+ method.define_argument('val')
598
+ end
599
+
600
+ klass.define_method('lock?')
601
+
602
+ klass.define_method('logging')
603
+
604
+ klass.define_method('logging=') do |method|
605
+ method.define_argument('val')
606
+ end
607
+
608
+ klass.define_method('logging?')
609
+
610
+ klass.define_method('method_override')
611
+
612
+ klass.define_method('method_override=') do |method|
613
+ method.define_argument('val')
614
+ end
615
+
616
+ klass.define_method('method_override?')
617
+
618
+ klass.define_method('methodoverride=') do |method|
619
+ method.define_argument('val')
620
+ end
621
+
622
+ klass.define_method('methodoverride?')
623
+
624
+ klass.define_method('middleware')
625
+
626
+ klass.define_method('mime_type') do |method|
627
+ method.define_argument('type')
628
+ method.define_optional_argument('value')
629
+ end
630
+
631
+ klass.define_method('mime_types') do |method|
632
+ method.define_argument('type')
633
+ end
634
+
635
+ klass.define_method('new') do |method|
636
+ method.define_rest_argument('args')
637
+ method.define_block_argument('bk')
638
+
639
+ method.returns { |object| object.instance }
640
+ end
641
+
642
+ klass.define_method('new!') do |method|
643
+ method.define_rest_argument('args')
644
+ end
645
+
646
+ klass.define_method('not_found') do |method|
647
+ method.define_block_argument('block')
648
+ end
649
+
650
+ klass.define_method('options') do |method|
651
+ method.define_argument('path')
652
+ method.define_optional_argument('opts')
653
+ method.define_block_argument('bk')
654
+ end
655
+
656
+ klass.define_method('patch') do |method|
657
+ method.define_argument('path')
658
+ method.define_optional_argument('opts')
659
+ method.define_block_argument('bk')
660
+ end
661
+
662
+ klass.define_method('port')
663
+
664
+ klass.define_method('port=') do |method|
665
+ method.define_argument('val')
666
+ end
667
+
668
+ klass.define_method('port?')
669
+
670
+ klass.define_method('post') do |method|
671
+ method.define_argument('path')
672
+ method.define_optional_argument('opts')
673
+ method.define_block_argument('bk')
674
+ end
675
+
676
+ klass.define_method('prefixed_redirects')
677
+
678
+ klass.define_method('prefixed_redirects=') do |method|
679
+ method.define_argument('val')
680
+ end
681
+
682
+ klass.define_method('prefixed_redirects?')
683
+
684
+ klass.define_method('production?')
685
+
686
+ klass.define_method('protection')
687
+
688
+ klass.define_method('protection=') do |method|
689
+ method.define_argument('val')
690
+ end
691
+
692
+ klass.define_method('protection?')
693
+
694
+ klass.define_method('prototype')
695
+
696
+ klass.define_method('public=') do |method|
697
+ method.define_argument('value')
698
+ end
699
+
700
+ klass.define_method('public_dir')
701
+
702
+ klass.define_method('public_dir=') do |method|
703
+ method.define_argument('value')
704
+ end
705
+
706
+ klass.define_method('public_folder')
707
+
708
+ klass.define_method('public_folder=') do |method|
709
+ method.define_argument('val')
710
+ end
711
+
712
+ klass.define_method('public_folder?')
713
+
714
+ klass.define_method('put') do |method|
715
+ method.define_argument('path')
716
+ method.define_optional_argument('opts')
717
+ method.define_block_argument('bk')
718
+ end
719
+
720
+ klass.define_method('quit!') do |method|
721
+ method.define_argument('server')
722
+ method.define_argument('handler_name')
723
+ end
724
+
725
+ klass.define_method('raise_errors')
726
+
727
+ klass.define_method('raise_errors=') do |method|
728
+ method.define_argument('val')
729
+ end
730
+
731
+ klass.define_method('raise_errors?')
732
+
733
+ klass.define_method('register') do |method|
734
+ method.define_rest_argument('extensions')
735
+ method.define_block_argument('block')
736
+ end
737
+
738
+ klass.define_method('reload_templates')
739
+
740
+ klass.define_method('reload_templates=') do |method|
741
+ method.define_argument('val')
742
+ end
743
+
744
+ klass.define_method('reload_templates?')
745
+
746
+ klass.define_method('reset!')
747
+
748
+ klass.define_method('root')
749
+
750
+ klass.define_method('root=') do |method|
751
+ method.define_argument('val')
752
+ end
753
+
754
+ klass.define_method('root?')
755
+
756
+ klass.define_method('routes')
757
+
758
+ klass.define_method('run')
759
+
760
+ klass.define_method('run!') do |method|
761
+ method.define_optional_argument('options')
762
+ end
763
+
764
+ klass.define_method('run=') do |method|
765
+ method.define_argument('val')
766
+ end
767
+
768
+ klass.define_method('run?')
769
+
770
+ klass.define_method('running')
771
+
772
+ klass.define_method('running=') do |method|
773
+ method.define_argument('val')
774
+ end
775
+
776
+ klass.define_method('running?')
777
+
778
+ klass.define_method('server')
779
+
780
+ klass.define_method('server=') do |method|
781
+ method.define_argument('val')
782
+ end
783
+
784
+ klass.define_method('server?')
785
+
786
+ klass.define_method('session_secret')
787
+
788
+ klass.define_method('session_secret=') do |method|
789
+ method.define_argument('val')
790
+ end
791
+
792
+ klass.define_method('session_secret?')
793
+
794
+ klass.define_method('sessions')
795
+
796
+ klass.define_method('sessions=') do |method|
797
+ method.define_argument('val')
798
+ end
799
+
800
+ klass.define_method('sessions?')
801
+
802
+ klass.define_method('set') do |method|
803
+ method.define_argument('option')
804
+ method.define_optional_argument('value')
805
+ method.define_optional_argument('ignore_setter')
806
+ method.define_block_argument('block')
807
+ end
808
+
809
+ klass.define_method('settings')
810
+
811
+ klass.define_method('show_exceptions')
812
+
813
+ klass.define_method('show_exceptions=') do |method|
814
+ method.define_argument('val')
815
+ end
816
+
817
+ klass.define_method('show_exceptions?')
818
+
819
+ klass.define_method('static')
820
+
821
+ klass.define_method('static=') do |method|
822
+ method.define_argument('val')
823
+ end
824
+
825
+ klass.define_method('static?')
826
+
827
+ klass.define_method('static_cache_control')
828
+
829
+ klass.define_method('static_cache_control=') do |method|
830
+ method.define_argument('val')
831
+ end
832
+
833
+ klass.define_method('static_cache_control?')
834
+
835
+ klass.define_method('template') do |method|
836
+ method.define_argument('name')
837
+ method.define_block_argument('block')
838
+ end
839
+
840
+ klass.define_method('templates')
841
+
842
+ klass.define_method('test?')
843
+
844
+ klass.define_method('threaded')
845
+
846
+ klass.define_method('threaded=') do |method|
847
+ method.define_argument('val')
848
+ end
849
+
850
+ klass.define_method('threaded?')
851
+
852
+ klass.define_method('unlink') do |method|
853
+ method.define_argument('path')
854
+ method.define_optional_argument('opts')
855
+ method.define_block_argument('bk')
856
+ end
857
+
858
+ klass.define_method('use') do |method|
859
+ method.define_argument('middleware')
860
+ method.define_rest_argument('args')
861
+ method.define_block_argument('block')
862
+ end
863
+
864
+ klass.define_method('use_code')
865
+
866
+ klass.define_method('use_code=') do |method|
867
+ method.define_argument('val')
868
+ end
869
+
870
+ klass.define_method('use_code?')
871
+
872
+ klass.define_method('views')
873
+
874
+ klass.define_method('views=') do |method|
875
+ method.define_argument('val')
876
+ end
877
+
878
+ klass.define_method('views?')
879
+
880
+ klass.define_method('x_cascade')
881
+
882
+ klass.define_method('x_cascade=') do |method|
883
+ method.define_argument('val')
884
+ end
885
+
886
+ klass.define_method('x_cascade?')
887
+
888
+ klass.define_instance_method('app')
889
+
890
+ klass.define_instance_method('app=')
891
+
892
+ klass.define_instance_method('call') do |method|
893
+ method.define_argument('env')
894
+ end
895
+
896
+ klass.define_instance_method('call!') do |method|
897
+ method.define_argument('env')
898
+ end
899
+
900
+ klass.define_instance_method('env')
901
+
902
+ klass.define_instance_method('env=')
903
+
904
+ klass.define_instance_method('forward')
905
+
906
+ klass.define_instance_method('halt') do |method|
907
+ method.define_rest_argument('response')
908
+ end
909
+
910
+ klass.define_instance_method('initialize') do |method|
911
+ method.define_optional_argument('app')
912
+
913
+ method.returns { |object| object.instance }
914
+ end
915
+
916
+ klass.define_instance_method('options')
917
+
918
+ klass.define_instance_method('params')
919
+
920
+ klass.define_instance_method('params=')
921
+
922
+ klass.define_instance_method('pass') do |method|
923
+ method.define_block_argument('block')
924
+ end
925
+
926
+ klass.define_instance_method('request')
927
+
928
+ klass.define_instance_method('request=')
929
+
930
+ klass.define_instance_method('response')
931
+
932
+ klass.define_instance_method('response=')
933
+
934
+ klass.define_instance_method('settings')
935
+
936
+ klass.define_instance_method('template_cache')
937
+ end
938
+
939
+ defs.define_constant('Sinatra::Base::ContentTyped') do |klass|
940
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
941
+
942
+ klass.define_instance_method('content_type')
943
+
944
+ klass.define_instance_method('content_type=')
945
+ end
946
+
947
+ defs.define_constant('Sinatra::Base::Context') do |klass|
948
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
949
+
950
+ klass.define_instance_method('app')
951
+
952
+ klass.define_instance_method('call') do |method|
953
+ method.define_argument('env')
954
+ end
955
+
956
+ klass.define_instance_method('context') do |method|
957
+ method.define_argument('env')
958
+ method.define_optional_argument('app')
959
+ end
960
+
961
+ klass.define_instance_method('for')
962
+
963
+ klass.define_instance_method('initialize') do |method|
964
+ method.define_argument('app_f')
965
+ method.define_argument('app_r')
966
+
967
+ method.returns { |object| object.instance }
968
+ end
969
+
970
+ klass.define_instance_method('recontext') do |method|
971
+ method.define_argument('app')
972
+ end
973
+ end
974
+
975
+ defs.define_constant('Sinatra::Base::DEFAULT_SEP') do |klass|
976
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
977
+
978
+ end
979
+
980
+ defs.define_constant('Sinatra::Base::ESCAPE_HTML') do |klass|
981
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
982
+
983
+ end
984
+
985
+ defs.define_constant('Sinatra::Base::ESCAPE_HTML_PATTERN') do |klass|
986
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
987
+
988
+ end
989
+
990
+ defs.define_constant('Sinatra::Base::HTTP_STATUS_CODES') do |klass|
991
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
992
+
993
+ end
994
+
995
+ defs.define_constant('Sinatra::Base::HeaderHash') do |klass|
996
+ klass.inherits(defs.constant_proxy('Hash', RubyLint.registry))
997
+
998
+ klass.define_method('new') do |method|
999
+ method.define_optional_argument('hash')
1000
+
1001
+ method.returns { |object| object.instance }
1002
+ end
1003
+
1004
+ klass.define_instance_method('[]') do |method|
1005
+ method.define_argument('k')
1006
+ end
1007
+
1008
+ klass.define_instance_method('[]=') do |method|
1009
+ method.define_argument('k')
1010
+ method.define_argument('v')
1011
+ end
1012
+
1013
+ klass.define_instance_method('delete') do |method|
1014
+ method.define_argument('k')
1015
+ end
1016
+
1017
+ klass.define_instance_method('each')
1018
+
1019
+ klass.define_instance_method('has_key?') do |method|
1020
+ method.define_argument('k')
1021
+ end
1022
+
1023
+ klass.define_instance_method('include?') do |method|
1024
+ method.define_argument('k')
1025
+ end
1026
+
1027
+ klass.define_instance_method('initialize') do |method|
1028
+ method.define_optional_argument('hash')
1029
+
1030
+ method.returns { |object| object.instance }
1031
+ end
1032
+
1033
+ klass.define_instance_method('key?') do |method|
1034
+ method.define_argument('k')
1035
+ end
1036
+
1037
+ klass.define_instance_method('member?') do |method|
1038
+ method.define_argument('k')
1039
+ end
1040
+
1041
+ klass.define_instance_method('merge') do |method|
1042
+ method.define_argument('other')
1043
+ end
1044
+
1045
+ klass.define_instance_method('merge!') do |method|
1046
+ method.define_argument('other')
1047
+ end
1048
+
1049
+ klass.define_instance_method('replace') do |method|
1050
+ method.define_argument('other')
1051
+ end
1052
+
1053
+ klass.define_instance_method('to_hash')
1054
+ end
1055
+
1056
+ defs.define_constant('Sinatra::Base::KeySpaceConstrainedParams') do |klass|
1057
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1058
+
1059
+ klass.define_instance_method('[]') do |method|
1060
+ method.define_argument('key')
1061
+ end
1062
+
1063
+ klass.define_instance_method('[]=') do |method|
1064
+ method.define_argument('key')
1065
+ method.define_argument('value')
1066
+ end
1067
+
1068
+ klass.define_instance_method('initialize') do |method|
1069
+ method.define_optional_argument('limit')
1070
+
1071
+ method.returns { |object| object.instance }
1072
+ end
1073
+
1074
+ klass.define_instance_method('key?') do |method|
1075
+ method.define_argument('key')
1076
+ end
1077
+
1078
+ klass.define_instance_method('to_params_hash')
1079
+ end
1080
+
1081
+ defs.define_constant('Sinatra::Base::Multipart') do |klass|
1082
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1083
+
1084
+ klass.define_method('build_multipart') do |method|
1085
+ method.define_argument('params')
1086
+ method.define_optional_argument('first')
1087
+ end
1088
+
1089
+ klass.define_method('parse_multipart') do |method|
1090
+ method.define_argument('env')
1091
+ end
1092
+ end
1093
+
1094
+ defs.define_constant('Sinatra::Base::OkJson') do |klass|
1095
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1096
+
1097
+ klass.define_instance_method('abbrev') do |method|
1098
+ method.define_argument('s')
1099
+ end
1100
+
1101
+ klass.define_instance_method('arrenc') do |method|
1102
+ method.define_argument('a')
1103
+ end
1104
+
1105
+ klass.define_instance_method('arrparse') do |method|
1106
+ method.define_argument('ts')
1107
+ end
1108
+
1109
+ klass.define_instance_method('decode') do |method|
1110
+ method.define_argument('s')
1111
+ end
1112
+
1113
+ klass.define_instance_method('eat') do |method|
1114
+ method.define_argument('typ')
1115
+ method.define_argument('ts')
1116
+ end
1117
+
1118
+ klass.define_instance_method('encode') do |method|
1119
+ method.define_argument('x')
1120
+ end
1121
+
1122
+ klass.define_instance_method('falsetok') do |method|
1123
+ method.define_argument('s')
1124
+ end
1125
+
1126
+ klass.define_instance_method('hexdec4') do |method|
1127
+ method.define_argument('s')
1128
+ end
1129
+
1130
+ klass.define_instance_method('keyenc') do |method|
1131
+ method.define_argument('k')
1132
+ end
1133
+
1134
+ klass.define_instance_method('lex') do |method|
1135
+ method.define_argument('s')
1136
+ end
1137
+
1138
+ klass.define_instance_method('nibble') do |method|
1139
+ method.define_argument('c')
1140
+ end
1141
+
1142
+ klass.define_instance_method('nulltok') do |method|
1143
+ method.define_argument('s')
1144
+ end
1145
+
1146
+ klass.define_instance_method('numenc') do |method|
1147
+ method.define_argument('x')
1148
+ end
1149
+
1150
+ klass.define_instance_method('numtok') do |method|
1151
+ method.define_argument('s')
1152
+ end
1153
+
1154
+ klass.define_instance_method('objenc') do |method|
1155
+ method.define_argument('x')
1156
+ end
1157
+
1158
+ klass.define_instance_method('objparse') do |method|
1159
+ method.define_argument('ts')
1160
+ end
1161
+
1162
+ klass.define_instance_method('pairparse') do |method|
1163
+ method.define_argument('ts')
1164
+ end
1165
+
1166
+ klass.define_instance_method('strenc') do |method|
1167
+ method.define_argument('s')
1168
+ end
1169
+
1170
+ klass.define_instance_method('strtok') do |method|
1171
+ method.define_argument('s')
1172
+ end
1173
+
1174
+ klass.define_instance_method('subst') do |method|
1175
+ method.define_argument('u1')
1176
+ method.define_argument('u2')
1177
+ end
1178
+
1179
+ klass.define_instance_method('surrogate?') do |method|
1180
+ method.define_argument('u')
1181
+ end
1182
+
1183
+ klass.define_instance_method('textparse') do |method|
1184
+ method.define_argument('ts')
1185
+ end
1186
+
1187
+ klass.define_instance_method('tok') do |method|
1188
+ method.define_argument('s')
1189
+ end
1190
+
1191
+ klass.define_instance_method('truetok') do |method|
1192
+ method.define_argument('s')
1193
+ end
1194
+
1195
+ klass.define_instance_method('ucharcopy') do |method|
1196
+ method.define_argument('t')
1197
+ method.define_argument('s')
1198
+ method.define_argument('i')
1199
+ end
1200
+
1201
+ klass.define_instance_method('ucharenc') do |method|
1202
+ method.define_argument('a')
1203
+ method.define_argument('i')
1204
+ method.define_argument('u')
1205
+ end
1206
+
1207
+ klass.define_instance_method('unquote') do |method|
1208
+ method.define_argument('q')
1209
+ end
1210
+
1211
+ klass.define_instance_method('valenc') do |method|
1212
+ method.define_argument('x')
1213
+ end
1214
+
1215
+ klass.define_instance_method('valparse') do |method|
1216
+ method.define_argument('ts')
1217
+ end
1218
+ end
1219
+
1220
+ defs.define_constant('Sinatra::Base::STATUS_WITH_NO_ENTITY_BODY') do |klass|
1221
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1222
+
1223
+ end
1224
+
1225
+ defs.define_constant('Sinatra::Base::SYMBOL_TO_STATUS_CODE') do |klass|
1226
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1227
+
1228
+ end
1229
+
1230
+ defs.define_constant('Sinatra::Base::Stream') do |klass|
1231
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1232
+
1233
+ klass.define_method('defer') do |method|
1234
+ method.define_rest_argument('arg1')
1235
+ end
1236
+
1237
+ klass.define_method('schedule') do |method|
1238
+ method.define_rest_argument('arg1')
1239
+ end
1240
+
1241
+ klass.define_instance_method('<<') do |method|
1242
+ method.define_argument('data')
1243
+ end
1244
+
1245
+ klass.define_instance_method('callback') do |method|
1246
+ method.define_block_argument('block')
1247
+ end
1248
+
1249
+ klass.define_instance_method('close')
1250
+
1251
+ klass.define_instance_method('closed?')
1252
+
1253
+ klass.define_instance_method('each') do |method|
1254
+ method.define_block_argument('front')
1255
+ end
1256
+
1257
+ klass.define_instance_method('errback') do |method|
1258
+ method.define_block_argument('block')
1259
+ end
1260
+
1261
+ klass.define_instance_method('initialize') do |method|
1262
+ method.define_optional_argument('scheduler')
1263
+ method.define_optional_argument('keep_open')
1264
+ method.define_block_argument('back')
1265
+
1266
+ method.returns { |object| object.instance }
1267
+ end
1268
+ end
1269
+
1270
+ defs.define_constant('Sinatra::Base::URI') do |klass|
1271
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1272
+
1273
+ end
1274
+
1275
+ defs.define_constant('Sinatra::CommonLogger') do |klass|
1276
+ klass.inherits(defs.constant_proxy('Rack::CommonLogger', RubyLint.registry))
1277
+
1278
+ klass.define_instance_method('call') do |method|
1279
+ method.define_argument('env')
1280
+ end
1281
+ end
1282
+
1283
+ defs.define_constant('Sinatra::CommonLogger::FORMAT') do |klass|
1284
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1285
+
1286
+ end
1287
+
1288
+ defs.define_constant('Sinatra::Delegator') do |klass|
1289
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1290
+
1291
+ klass.define_method('delegate') do |method|
1292
+ method.define_rest_argument('methods')
1293
+ end
1294
+
1295
+ klass.define_method('target')
1296
+
1297
+ klass.define_method('target=')
1298
+ end
1299
+
1300
+ defs.define_constant('Sinatra::ExtendedRack') do |klass|
1301
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1302
+
1303
+ klass.define_instance_method('call') do |method|
1304
+ method.define_argument('env')
1305
+ end
1306
+ end
1307
+
1308
+ defs.define_constant('Sinatra::ExtendedRack::Enumerator') do |klass|
1309
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1310
+ klass.inherits(defs.constant_proxy('Enumerable', RubyLint.registry))
1311
+
1312
+ klass.define_instance_method('each') do |method|
1313
+ method.define_rest_argument('args')
1314
+ end
1315
+
1316
+ klass.define_instance_method('each_with_index')
1317
+
1318
+ klass.define_instance_method('feed') do |method|
1319
+ method.define_argument('val')
1320
+ end
1321
+
1322
+ klass.define_instance_method('initialize') do |method|
1323
+ method.define_optional_argument('receiver_or_size')
1324
+ method.define_optional_argument('method_name')
1325
+ method.define_rest_argument('method_args')
1326
+
1327
+ method.returns { |object| object.instance }
1328
+ end
1329
+
1330
+ klass.define_instance_method('next')
1331
+
1332
+ klass.define_instance_method('next_values')
1333
+
1334
+ klass.define_instance_method('peek')
1335
+
1336
+ klass.define_instance_method('peek_values')
1337
+
1338
+ klass.define_instance_method('rewind')
1339
+
1340
+ klass.define_instance_method('size')
1341
+
1342
+ klass.define_instance_method('with_index') do |method|
1343
+ method.define_optional_argument('offset')
1344
+ end
1345
+ end
1346
+
1347
+ defs.define_constant('Sinatra::ExtendedRack::Group') do |klass|
1348
+ klass.inherits(defs.constant_proxy('Rubinius::FFI::Struct', RubyLint.registry))
1349
+
1350
+ klass.define_instance_method('gid')
1351
+
1352
+ klass.define_instance_method('mem')
1353
+
1354
+ klass.define_instance_method('name')
1355
+
1356
+ klass.define_instance_method('passwd')
1357
+ end
1358
+
1359
+ defs.define_constant('Sinatra::ExtendedRack::Passwd') do |klass|
1360
+ klass.inherits(defs.constant_proxy('Rubinius::FFI::Struct', RubyLint.registry))
1361
+
1362
+ klass.define_instance_method('dir')
1363
+
1364
+ klass.define_instance_method('gecos')
1365
+
1366
+ klass.define_instance_method('gid')
1367
+
1368
+ klass.define_instance_method('name')
1369
+
1370
+ klass.define_instance_method('passwd')
1371
+
1372
+ klass.define_instance_method('shell')
1373
+
1374
+ klass.define_instance_method('uid')
1375
+ end
1376
+
1377
+ defs.define_constant('Sinatra::ExtendedRack::STRUCT_ATTRS') do |klass|
1378
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1379
+
1380
+ end
1381
+
1382
+ defs.define_constant('Sinatra::ExtendedRack::SortedElement') do |klass|
1383
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1384
+
1385
+ klass.define_instance_method('<=>') do |method|
1386
+ method.define_argument('other')
1387
+ end
1388
+
1389
+ klass.define_instance_method('initialize') do |method|
1390
+ method.define_argument('val')
1391
+ method.define_argument('sort_id')
1392
+
1393
+ method.returns { |object| object.instance }
1394
+ end
1395
+
1396
+ klass.define_instance_method('sort_id')
1397
+
1398
+ klass.define_instance_method('value')
1399
+ end
1400
+
1401
+ defs.define_constant('Sinatra::ExtendedRack::Tms') do |klass|
1402
+ klass.inherits(defs.constant_proxy('Struct', RubyLint.registry))
1403
+
1404
+ klass.define_method('[]') do |method|
1405
+ method.define_rest_argument('args')
1406
+ end
1407
+
1408
+ klass.define_method('new') do |method|
1409
+ method.define_rest_argument('args')
1410
+
1411
+ method.returns { |object| object.instance }
1412
+ end
1413
+
1414
+ klass.define_instance_method('cstime')
1415
+
1416
+ klass.define_instance_method('cstime=')
1417
+
1418
+ klass.define_instance_method('cutime')
1419
+
1420
+ klass.define_instance_method('cutime=')
1421
+
1422
+ klass.define_instance_method('initialize') do |method|
1423
+ method.define_optional_argument('utime')
1424
+ method.define_optional_argument('stime')
1425
+ method.define_optional_argument('cutime')
1426
+ method.define_optional_argument('cstime')
1427
+ method.define_optional_argument('tutime')
1428
+ method.define_optional_argument('tstime')
1429
+
1430
+ method.returns { |object| object.instance }
1431
+ end
1432
+
1433
+ klass.define_instance_method('stime')
1434
+
1435
+ klass.define_instance_method('stime=')
1436
+
1437
+ klass.define_instance_method('tstime')
1438
+
1439
+ klass.define_instance_method('tstime=')
1440
+
1441
+ klass.define_instance_method('tutime')
1442
+
1443
+ klass.define_instance_method('tutime=')
1444
+
1445
+ klass.define_instance_method('utime')
1446
+
1447
+ klass.define_instance_method('utime=')
1448
+ end
1449
+
1450
+ defs.define_constant('Sinatra::Helpers') do |klass|
1451
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1452
+
1453
+ klass.define_instance_method('attachment') do |method|
1454
+ method.define_optional_argument('filename')
1455
+ method.define_optional_argument('disposition')
1456
+ end
1457
+
1458
+ klass.define_instance_method('back')
1459
+
1460
+ klass.define_instance_method('body') do |method|
1461
+ method.define_optional_argument('value')
1462
+ method.define_block_argument('block')
1463
+ end
1464
+
1465
+ klass.define_instance_method('cache_control') do |method|
1466
+ method.define_rest_argument('values')
1467
+ end
1468
+
1469
+ klass.define_instance_method('client_error?')
1470
+
1471
+ klass.define_instance_method('content_type') do |method|
1472
+ method.define_optional_argument('type')
1473
+ method.define_optional_argument('params')
1474
+ end
1475
+
1476
+ klass.define_instance_method('error') do |method|
1477
+ method.define_argument('code')
1478
+ method.define_optional_argument('body')
1479
+ end
1480
+
1481
+ klass.define_instance_method('etag') do |method|
1482
+ method.define_argument('value')
1483
+ method.define_optional_argument('options')
1484
+ end
1485
+
1486
+ klass.define_instance_method('expires') do |method|
1487
+ method.define_argument('amount')
1488
+ method.define_rest_argument('values')
1489
+ end
1490
+
1491
+ klass.define_instance_method('headers') do |method|
1492
+ method.define_optional_argument('hash')
1493
+ end
1494
+
1495
+ klass.define_instance_method('informational?')
1496
+
1497
+ klass.define_instance_method('last_modified') do |method|
1498
+ method.define_argument('time')
1499
+ end
1500
+
1501
+ klass.define_instance_method('logger')
1502
+
1503
+ klass.define_instance_method('mime_type') do |method|
1504
+ method.define_argument('type')
1505
+ end
1506
+
1507
+ klass.define_instance_method('not_found') do |method|
1508
+ method.define_optional_argument('body')
1509
+ end
1510
+
1511
+ klass.define_instance_method('not_found?')
1512
+
1513
+ klass.define_instance_method('redirect') do |method|
1514
+ method.define_argument('uri')
1515
+ method.define_rest_argument('args')
1516
+ end
1517
+
1518
+ klass.define_instance_method('redirect?')
1519
+
1520
+ klass.define_instance_method('send_file') do |method|
1521
+ method.define_argument('path')
1522
+ method.define_optional_argument('opts')
1523
+ end
1524
+
1525
+ klass.define_instance_method('server_error?')
1526
+
1527
+ klass.define_instance_method('session')
1528
+
1529
+ klass.define_instance_method('status') do |method|
1530
+ method.define_optional_argument('value')
1531
+ end
1532
+
1533
+ klass.define_instance_method('stream') do |method|
1534
+ method.define_optional_argument('keep_open')
1535
+ end
1536
+
1537
+ klass.define_instance_method('success?')
1538
+
1539
+ klass.define_instance_method('time_for') do |method|
1540
+ method.define_argument('value')
1541
+ end
1542
+
1543
+ klass.define_instance_method('to') do |method|
1544
+ method.define_optional_argument('addr')
1545
+ method.define_optional_argument('absolute')
1546
+ method.define_optional_argument('add_script_name')
1547
+ end
1548
+
1549
+ klass.define_instance_method('uri') do |method|
1550
+ method.define_optional_argument('addr')
1551
+ method.define_optional_argument('absolute')
1552
+ method.define_optional_argument('add_script_name')
1553
+ end
1554
+
1555
+ klass.define_instance_method('url') do |method|
1556
+ method.define_optional_argument('addr')
1557
+ method.define_optional_argument('absolute')
1558
+ method.define_optional_argument('add_script_name')
1559
+ end
1560
+ end
1561
+
1562
+ defs.define_constant('Sinatra::Helpers::Stream') do |klass|
1563
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1564
+
1565
+ klass.define_method('defer') do |method|
1566
+ method.define_rest_argument('arg1')
1567
+ end
1568
+
1569
+ klass.define_method('schedule') do |method|
1570
+ method.define_rest_argument('arg1')
1571
+ end
1572
+
1573
+ klass.define_instance_method('<<') do |method|
1574
+ method.define_argument('data')
1575
+ end
1576
+
1577
+ klass.define_instance_method('callback') do |method|
1578
+ method.define_block_argument('block')
1579
+ end
1580
+
1581
+ klass.define_instance_method('close')
1582
+
1583
+ klass.define_instance_method('closed?')
1584
+
1585
+ klass.define_instance_method('each') do |method|
1586
+ method.define_block_argument('front')
1587
+ end
1588
+
1589
+ klass.define_instance_method('errback') do |method|
1590
+ method.define_block_argument('block')
1591
+ end
1592
+
1593
+ klass.define_instance_method('initialize') do |method|
1594
+ method.define_optional_argument('scheduler')
1595
+ method.define_optional_argument('keep_open')
1596
+ method.define_block_argument('back')
1597
+
1598
+ method.returns { |object| object.instance }
1599
+ end
1600
+ end
1601
+
1602
+ defs.define_constant('Sinatra::NotFound') do |klass|
1603
+ klass.inherits(defs.constant_proxy('NameError', RubyLint.registry))
1604
+
1605
+ klass.define_instance_method('http_status')
1606
+ end
1607
+
1608
+ defs.define_constant('Sinatra::Request') do |klass|
1609
+ klass.inherits(defs.constant_proxy('Rack::Request', RubyLint.registry))
1610
+
1611
+ klass.define_instance_method('accept')
1612
+
1613
+ klass.define_instance_method('accept?') do |method|
1614
+ method.define_argument('type')
1615
+ end
1616
+
1617
+ klass.define_instance_method('forwarded?')
1618
+
1619
+ klass.define_instance_method('idempotent?')
1620
+
1621
+ klass.define_instance_method('link?')
1622
+
1623
+ klass.define_instance_method('preferred_type') do |method|
1624
+ method.define_rest_argument('types')
1625
+ end
1626
+
1627
+ klass.define_instance_method('safe?')
1628
+
1629
+ klass.define_instance_method('secure?')
1630
+
1631
+ klass.define_instance_method('unlink?')
1632
+ end
1633
+
1634
+ defs.define_constant('Sinatra::Request::AcceptEntry') do |klass|
1635
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1636
+
1637
+ klass.define_instance_method('<=>') do |method|
1638
+ method.define_argument('other')
1639
+ end
1640
+
1641
+ klass.define_instance_method('initialize') do |method|
1642
+ method.define_argument('entry')
1643
+
1644
+ method.returns { |object| object.instance }
1645
+ end
1646
+
1647
+ klass.define_instance_method('method_missing') do |method|
1648
+ method.define_rest_argument('args')
1649
+ method.define_block_argument('block')
1650
+ end
1651
+
1652
+ klass.define_instance_method('params')
1653
+
1654
+ klass.define_instance_method('params=')
1655
+
1656
+ klass.define_instance_method('priority')
1657
+
1658
+ klass.define_instance_method('respond_to?') do |method|
1659
+ method.define_rest_argument('args')
1660
+ end
1661
+
1662
+ klass.define_instance_method('to_s') do |method|
1663
+ method.define_optional_argument('full')
1664
+ end
1665
+
1666
+ klass.define_instance_method('to_str')
1667
+ end
1668
+
1669
+ defs.define_constant('Sinatra::Request::DEFAULT_PORTS') do |klass|
1670
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1671
+
1672
+ end
1673
+
1674
+ defs.define_constant('Sinatra::Request::FORM_DATA_MEDIA_TYPES') do |klass|
1675
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1676
+
1677
+ end
1678
+
1679
+ defs.define_constant('Sinatra::Request::HEADER_PARAM') do |klass|
1680
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1681
+
1682
+ end
1683
+
1684
+ defs.define_constant('Sinatra::Request::HEADER_VALUE_WITH_PARAMS') do |klass|
1685
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1686
+
1687
+ end
1688
+
1689
+ defs.define_constant('Sinatra::Request::PARSEABLE_DATA_MEDIA_TYPES') do |klass|
1690
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1691
+
1692
+ end
1693
+
1694
+ defs.define_constant('Sinatra::Response') do |klass|
1695
+ klass.inherits(defs.constant_proxy('Rack::Response', RubyLint.registry))
1696
+
1697
+ klass.define_instance_method('body=') do |method|
1698
+ method.define_argument('value')
1699
+ end
1700
+
1701
+ klass.define_instance_method('each')
1702
+
1703
+ klass.define_instance_method('finish')
1704
+
1705
+ klass.define_instance_method('initialize') do |method|
1706
+ method.define_rest_argument('arg1')
1707
+
1708
+ method.returns { |object| object.instance }
1709
+ end
1710
+ end
1711
+
1712
+ defs.define_constant('Sinatra::Response::Helpers') do |klass|
1713
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1714
+
1715
+ klass.define_instance_method('bad_request?')
1716
+
1717
+ klass.define_instance_method('client_error?')
1718
+
1719
+ klass.define_instance_method('content_length')
1720
+
1721
+ klass.define_instance_method('content_type')
1722
+
1723
+ klass.define_instance_method('forbidden?')
1724
+
1725
+ klass.define_instance_method('headers')
1726
+
1727
+ klass.define_instance_method('include?') do |method|
1728
+ method.define_argument('header')
1729
+ end
1730
+
1731
+ klass.define_instance_method('informational?')
1732
+
1733
+ klass.define_instance_method('invalid?')
1734
+
1735
+ klass.define_instance_method('location')
1736
+
1737
+ klass.define_instance_method('method_not_allowed?')
1738
+
1739
+ klass.define_instance_method('not_found?')
1740
+
1741
+ klass.define_instance_method('ok?')
1742
+
1743
+ klass.define_instance_method('original_headers')
1744
+
1745
+ klass.define_instance_method('redirect?')
1746
+
1747
+ klass.define_instance_method('redirection?')
1748
+
1749
+ klass.define_instance_method('server_error?')
1750
+
1751
+ klass.define_instance_method('successful?')
1752
+
1753
+ klass.define_instance_method('unprocessable?')
1754
+ end
1755
+
1756
+ defs.define_constant('Sinatra::ShowExceptions') do |klass|
1757
+ klass.inherits(defs.constant_proxy('Rack::ShowExceptions', RubyLint.registry))
1758
+
1759
+ klass.define_instance_method('call') do |method|
1760
+ method.define_argument('env')
1761
+ end
1762
+
1763
+ klass.define_instance_method('initialize') do |method|
1764
+ method.define_argument('app')
1765
+
1766
+ method.returns { |object| object.instance }
1767
+ end
1768
+ end
1769
+
1770
+ defs.define_constant('Sinatra::ShowExceptions::CONTEXT') do |klass|
1771
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1772
+
1773
+ end
1774
+
1775
+ defs.define_constant('Sinatra::ShowExceptions::TEMPLATE') do |klass|
1776
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1777
+
1778
+ end
1779
+
1780
+ defs.define_constant('Sinatra::Templates') do |klass|
1781
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1782
+
1783
+ klass.define_instance_method('builder') do |method|
1784
+ method.define_optional_argument('template')
1785
+ method.define_optional_argument('options')
1786
+ method.define_optional_argument('locals')
1787
+ method.define_block_argument('block')
1788
+ end
1789
+
1790
+ klass.define_instance_method('coffee') do |method|
1791
+ method.define_argument('template')
1792
+ method.define_optional_argument('options')
1793
+ method.define_optional_argument('locals')
1794
+ end
1795
+
1796
+ klass.define_instance_method('creole') do |method|
1797
+ method.define_argument('template')
1798
+ method.define_optional_argument('options')
1799
+ method.define_optional_argument('locals')
1800
+ end
1801
+
1802
+ klass.define_instance_method('erb') do |method|
1803
+ method.define_argument('template')
1804
+ method.define_optional_argument('options')
1805
+ method.define_optional_argument('locals')
1806
+ method.define_block_argument('block')
1807
+ end
1808
+
1809
+ klass.define_instance_method('erubis') do |method|
1810
+ method.define_argument('template')
1811
+ method.define_optional_argument('options')
1812
+ method.define_optional_argument('locals')
1813
+ end
1814
+
1815
+ klass.define_instance_method('find_template') do |method|
1816
+ method.define_argument('views')
1817
+ method.define_argument('name')
1818
+ method.define_argument('engine')
1819
+ end
1820
+
1821
+ klass.define_instance_method('haml') do |method|
1822
+ method.define_argument('template')
1823
+ method.define_optional_argument('options')
1824
+ method.define_optional_argument('locals')
1825
+ method.define_block_argument('block')
1826
+ end
1827
+
1828
+ klass.define_instance_method('less') do |method|
1829
+ method.define_argument('template')
1830
+ method.define_optional_argument('options')
1831
+ method.define_optional_argument('locals')
1832
+ end
1833
+
1834
+ klass.define_instance_method('liquid') do |method|
1835
+ method.define_argument('template')
1836
+ method.define_optional_argument('options')
1837
+ method.define_optional_argument('locals')
1838
+ method.define_block_argument('block')
1839
+ end
1840
+
1841
+ klass.define_instance_method('markaby') do |method|
1842
+ method.define_optional_argument('template')
1843
+ method.define_optional_argument('options')
1844
+ method.define_optional_argument('locals')
1845
+ method.define_block_argument('block')
1846
+ end
1847
+
1848
+ klass.define_instance_method('markdown') do |method|
1849
+ method.define_argument('template')
1850
+ method.define_optional_argument('options')
1851
+ method.define_optional_argument('locals')
1852
+ end
1853
+
1854
+ klass.define_instance_method('nokogiri') do |method|
1855
+ method.define_optional_argument('template')
1856
+ method.define_optional_argument('options')
1857
+ method.define_optional_argument('locals')
1858
+ method.define_block_argument('block')
1859
+ end
1860
+
1861
+ klass.define_instance_method('rabl') do |method|
1862
+ method.define_argument('template')
1863
+ method.define_optional_argument('options')
1864
+ method.define_optional_argument('locals')
1865
+ end
1866
+
1867
+ klass.define_instance_method('radius') do |method|
1868
+ method.define_argument('template')
1869
+ method.define_optional_argument('options')
1870
+ method.define_optional_argument('locals')
1871
+ end
1872
+
1873
+ klass.define_instance_method('rdoc') do |method|
1874
+ method.define_argument('template')
1875
+ method.define_optional_argument('options')
1876
+ method.define_optional_argument('locals')
1877
+ end
1878
+
1879
+ klass.define_instance_method('sass') do |method|
1880
+ method.define_argument('template')
1881
+ method.define_optional_argument('options')
1882
+ method.define_optional_argument('locals')
1883
+ end
1884
+
1885
+ klass.define_instance_method('scss') do |method|
1886
+ method.define_argument('template')
1887
+ method.define_optional_argument('options')
1888
+ method.define_optional_argument('locals')
1889
+ end
1890
+
1891
+ klass.define_instance_method('slim') do |method|
1892
+ method.define_argument('template')
1893
+ method.define_optional_argument('options')
1894
+ method.define_optional_argument('locals')
1895
+ method.define_block_argument('block')
1896
+ end
1897
+
1898
+ klass.define_instance_method('stylus') do |method|
1899
+ method.define_argument('template')
1900
+ method.define_optional_argument('options')
1901
+ method.define_optional_argument('locals')
1902
+ end
1903
+
1904
+ klass.define_instance_method('textile') do |method|
1905
+ method.define_argument('template')
1906
+ method.define_optional_argument('options')
1907
+ method.define_optional_argument('locals')
1908
+ end
1909
+
1910
+ klass.define_instance_method('wlang') do |method|
1911
+ method.define_argument('template')
1912
+ method.define_optional_argument('options')
1913
+ method.define_optional_argument('locals')
1914
+ method.define_block_argument('block')
1915
+ end
1916
+
1917
+ klass.define_instance_method('yajl') do |method|
1918
+ method.define_argument('template')
1919
+ method.define_optional_argument('options')
1920
+ method.define_optional_argument('locals')
1921
+ end
1922
+ end
1923
+
1924
+ defs.define_constant('Sinatra::Templates::ContentTyped') do |klass|
1925
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1926
+
1927
+ klass.define_instance_method('content_type')
1928
+
1929
+ klass.define_instance_method('content_type=')
1930
+ end
1931
+
1932
+ defs.define_constant('Sinatra::VERSION') do |klass|
1933
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1934
+
1935
+ end
1936
+
1937
+ defs.define_constant('Sinatra::Wrapper') do |klass|
1938
+ klass.inherits(defs.constant_proxy('Object', RubyLint.registry))
1939
+
1940
+ klass.define_instance_method('call') do |method|
1941
+ method.define_argument('env')
1942
+ end
1943
+
1944
+ klass.define_instance_method('helpers')
1945
+
1946
+ klass.define_instance_method('initialize') do |method|
1947
+ method.define_argument('stack')
1948
+ method.define_argument('instance')
1949
+
1950
+ method.returns { |object| object.instance }
1951
+ end
1952
+
1953
+ klass.define_instance_method('inspect')
1954
+
1955
+ klass.define_instance_method('settings')
1956
+ end
1957
+ end