sorbet-result 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +8 -7
- data/sorbet/rbi/gems/{erb@4.0.4.rbi → erb@5.0.1.rbi} +93 -125
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5243 -0
- data/sorbet/rbi/gems/{spoom@1.6.1.rbi → spoom@1.6.3.rbi} +211 -500
- metadata +7 -11
- data/sorbet/rbi/gems/cgi@0.5.0.rbi +0 -2961
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21c7af9a93f6edb6eead4f80d1b52812c3cd6f60783dda278bd628a006670613
|
4
|
+
data.tar.gz: 61741a3c3bb2faa001402056d4e8e9ac2bf911ddd6a5d8e4d5d62f05e8153799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb10df27c3b01b8172c84f6ba9d894d15876a46a2c6bd40cac69de522f079a50ae8397ba5d6752f69d47c4b79ab6717d83d64252e84c47c2455ed37ccfdddbc9
|
7
|
+
data.tar.gz: 003dbda92982ffea053ff46edeacea02d675a4ddf4852fbb714b8246dc5452049fc69e0b61293411796a13016145973e44afc4e9a6bd82c99e536459c6144d28
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.8
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sorbet-result (1.
|
4
|
+
sorbet-result (1.4.0)
|
5
5
|
sorbet-runtime (~> 0.5)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,13 +9,11 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
ast (2.4.3)
|
11
11
|
benchmark (0.4.1)
|
12
|
-
cgi (0.5.0)
|
13
12
|
date (3.4.1)
|
14
13
|
debug (1.11.0)
|
15
14
|
irb (~> 1.10)
|
16
15
|
reline (>= 0.3.8)
|
17
|
-
erb (
|
18
|
-
cgi (>= 0.3.3)
|
16
|
+
erb (5.0.1)
|
19
17
|
erubi (1.13.1)
|
20
18
|
io-console (0.8.0)
|
21
19
|
irb (1.15.2)
|
@@ -53,6 +51,7 @@ GEM
|
|
53
51
|
regexp_parser (2.10.0)
|
54
52
|
reline (0.6.1)
|
55
53
|
io-console (~> 0.5)
|
54
|
+
rexml (3.4.1)
|
56
55
|
rubocop (1.75.8)
|
57
56
|
json (~> 2.3)
|
58
57
|
language_server-protocol (~> 3.17.0.2)
|
@@ -83,10 +82,11 @@ GEM
|
|
83
82
|
sorbet-static-and-runtime (0.5.12210)
|
84
83
|
sorbet (= 0.5.12210)
|
85
84
|
sorbet-runtime (= 0.5.12210)
|
86
|
-
spoom (1.6.
|
85
|
+
spoom (1.6.3)
|
87
86
|
erubi (>= 1.10.0)
|
88
87
|
prism (>= 0.28.0)
|
89
|
-
rbi (>= 0.
|
88
|
+
rbi (>= 0.3.3)
|
89
|
+
rexml (>= 3.2.6)
|
90
90
|
sorbet-static-and-runtime (>= 0.5.10187)
|
91
91
|
thor (>= 0.19.2)
|
92
92
|
standard (1.50.0)
|
@@ -127,6 +127,7 @@ GEM
|
|
127
127
|
PLATFORMS
|
128
128
|
arm64-darwin-22
|
129
129
|
arm64-darwin-23
|
130
|
+
arm64-darwin-24
|
130
131
|
x86_64-linux
|
131
132
|
|
132
133
|
DEPENDENCIES
|
@@ -142,4 +143,4 @@ DEPENDENCIES
|
|
142
143
|
tapioca
|
143
144
|
|
144
145
|
BUNDLED WITH
|
145
|
-
2.
|
146
|
+
2.6.9
|
@@ -272,7 +272,7 @@ class ERB
|
|
272
272
|
# # build data class
|
273
273
|
# class Listings
|
274
274
|
# PRODUCT = { :name => "Chicken Fried Steak",
|
275
|
-
# :desc => "A well
|
275
|
+
# :desc => "A well messaged pattie, breaded and fried.",
|
276
276
|
# :cost => 9.95 }
|
277
277
|
#
|
278
278
|
# attr_reader :product, :price
|
@@ -305,14 +305,14 @@ class ERB
|
|
305
305
|
# _Generates_
|
306
306
|
#
|
307
307
|
# Chicken Fried Steak
|
308
|
-
# A well
|
308
|
+
# A well massaged pattie, breaded and fried.
|
309
309
|
#
|
310
310
|
# Chicken Fried Steak -- 9.95
|
311
|
-
# A well
|
311
|
+
# A well massaged pattie, breaded and fried.
|
312
312
|
#
|
313
313
|
# @return [ERB] a new instance of ERB
|
314
314
|
#
|
315
|
-
# source://erb//lib/erb.rb#
|
315
|
+
# source://erb//lib/erb.rb#334
|
316
316
|
def initialize(str, safe_level = T.unsafe(nil), legacy_trim_mode = T.unsafe(nil), legacy_eoutvar = T.unsafe(nil), trim_mode: T.unsafe(nil), eoutvar: T.unsafe(nil)); end
|
317
317
|
|
318
318
|
# Define unnamed class which has _methodname_ as instance method, and return it.
|
@@ -329,7 +329,7 @@ class ERB
|
|
329
329
|
# MyClass = erb.def_class(MyClass_, 'render()')
|
330
330
|
# print MyClass.new('foo', 123).render()
|
331
331
|
#
|
332
|
-
# source://erb//lib/erb.rb#
|
332
|
+
# source://erb//lib/erb.rb#499
|
333
333
|
def def_class(superklass = T.unsafe(nil), methodname = T.unsafe(nil)); end
|
334
334
|
|
335
335
|
# Define _methodname_ as instance method of _mod_ from compiled Ruby source.
|
@@ -340,7 +340,7 @@ class ERB
|
|
340
340
|
# erb.def_method(MyClass, 'render(arg1, arg2)', filename)
|
341
341
|
# print MyClass.new.render('foo', 123)
|
342
342
|
#
|
343
|
-
# source://erb//lib/erb.rb#
|
343
|
+
# source://erb//lib/erb.rb#463
|
344
344
|
def def_method(mod, methodname, fname = T.unsafe(nil)); end
|
345
345
|
|
346
346
|
# Create unnamed module, define _methodname_ as instance method of it, and return it.
|
@@ -354,36 +354,36 @@ class ERB
|
|
354
354
|
# include MyModule
|
355
355
|
# end
|
356
356
|
#
|
357
|
-
# source://erb//lib/erb.rb#
|
357
|
+
# source://erb//lib/erb.rb#480
|
358
358
|
def def_module(methodname = T.unsafe(nil)); end
|
359
359
|
|
360
360
|
# The encoding to eval
|
361
361
|
#
|
362
|
-
# source://erb//lib/erb.rb#
|
362
|
+
# source://erb//lib/erb.rb#369
|
363
363
|
def encoding; end
|
364
364
|
|
365
365
|
# The optional _filename_ argument passed to Kernel#eval when the ERB code
|
366
366
|
# is run
|
367
367
|
#
|
368
|
-
# source://erb//lib/erb.rb#
|
368
|
+
# source://erb//lib/erb.rb#373
|
369
369
|
def filename; end
|
370
370
|
|
371
371
|
# The optional _filename_ argument passed to Kernel#eval when the ERB code
|
372
372
|
# is run
|
373
373
|
#
|
374
|
-
# source://erb//lib/erb.rb#
|
374
|
+
# source://erb//lib/erb.rb#373
|
375
375
|
def filename=(_arg0); end
|
376
376
|
|
377
377
|
# The optional _lineno_ argument passed to Kernel#eval when the ERB code
|
378
378
|
# is run
|
379
379
|
#
|
380
|
-
# source://erb//lib/erb.rb#
|
380
|
+
# source://erb//lib/erb.rb#377
|
381
381
|
def lineno; end
|
382
382
|
|
383
383
|
# The optional _lineno_ argument passed to Kernel#eval when the ERB code
|
384
384
|
# is run
|
385
385
|
#
|
386
|
-
# source://erb//lib/erb.rb#
|
386
|
+
# source://erb//lib/erb.rb#377
|
387
387
|
def lineno=(_arg0); end
|
388
388
|
|
389
389
|
# Sets optional filename and line number that will be used in ERB code
|
@@ -400,45 +400,44 @@ class ERB
|
|
400
400
|
# # undefined local variable or method `some_x'
|
401
401
|
# # from file.erb:4
|
402
402
|
#
|
403
|
-
# source://erb//lib/erb.rb#
|
403
|
+
# source://erb//lib/erb.rb#394
|
404
404
|
def location=(_arg0); end
|
405
405
|
|
406
406
|
# Creates a new compiler for ERB. See ERB::Compiler.new for details
|
407
407
|
#
|
408
|
-
# source://erb//lib/erb.rb#
|
408
|
+
# source://erb//lib/erb.rb#361
|
409
409
|
def make_compiler(trim_mode); end
|
410
410
|
|
411
411
|
# Executes the generated ERB code to produce a completed template, returning
|
412
|
-
# the results of that code.
|
413
|
-
# can be affected by _safe_level_.)
|
412
|
+
# the results of that code.
|
414
413
|
#
|
415
414
|
# _b_ accepts a Binding object which is used to set the context of
|
416
415
|
# code evaluation.
|
417
416
|
#
|
418
|
-
# source://erb//lib/erb.rb#
|
417
|
+
# source://erb//lib/erb.rb#423
|
419
418
|
def result(b = T.unsafe(nil)); end
|
420
419
|
|
421
420
|
# Render a template on a new toplevel binding with local variables specified
|
422
421
|
# by a Hash object.
|
423
422
|
#
|
424
|
-
# source://erb//lib/erb.rb#
|
423
|
+
# source://erb//lib/erb.rb#432
|
425
424
|
def result_with_hash(hash); end
|
426
425
|
|
427
426
|
# Generate results and print them. (see ERB#result)
|
428
427
|
#
|
429
|
-
# source://erb//lib/erb.rb#
|
428
|
+
# source://erb//lib/erb.rb#412
|
430
429
|
def run(b = T.unsafe(nil)); end
|
431
430
|
|
432
431
|
# Can be used to set _eoutvar_ as described in ERB::new. It's probably
|
433
432
|
# easier to just use the constructor though, since calling this method
|
434
433
|
# requires the setup of an ERB _compiler_ object.
|
435
434
|
#
|
436
|
-
# source://erb//lib/erb.rb#
|
435
|
+
# source://erb//lib/erb.rb#404
|
437
436
|
def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end
|
438
437
|
|
439
438
|
# The Ruby code generated by ERB
|
440
439
|
#
|
441
|
-
# source://erb//lib/erb.rb#
|
440
|
+
# source://erb//lib/erb.rb#366
|
442
441
|
def src; end
|
443
442
|
|
444
443
|
private
|
@@ -446,13 +445,13 @@ class ERB
|
|
446
445
|
# Returns a new binding each time *near* TOPLEVEL_BINDING for runs that do
|
447
446
|
# not specify a binding.
|
448
447
|
#
|
449
|
-
# source://erb//lib/erb.rb#
|
448
|
+
# source://erb//lib/erb.rb#444
|
450
449
|
def new_toplevel(vars = T.unsafe(nil)); end
|
451
450
|
|
452
451
|
class << self
|
453
452
|
# Returns revision information for the erb.rb module.
|
454
453
|
#
|
455
|
-
# source://erb//lib/erb.rb#
|
454
|
+
# source://erb//lib/erb.rb#266
|
456
455
|
def version; end
|
457
456
|
end
|
458
457
|
end
|
@@ -536,13 +535,13 @@ class ERB::Compiler
|
|
536
535
|
#
|
537
536
|
# @return [Compiler] a new instance of Compiler
|
538
537
|
#
|
539
|
-
# source://erb//lib/erb/compiler.rb#
|
538
|
+
# source://erb//lib/erb/compiler.rb#433
|
540
539
|
def initialize(trim_mode); end
|
541
540
|
|
542
|
-
# source://erb//lib/erb/compiler.rb#
|
541
|
+
# source://erb//lib/erb/compiler.rb#315
|
543
542
|
def add_insert_cmd(out, content); end
|
544
543
|
|
545
|
-
# source://erb//lib/erb/compiler.rb#
|
544
|
+
# source://erb//lib/erb/compiler.rb#311
|
546
545
|
def add_put_cmd(out, content); end
|
547
546
|
|
548
547
|
# Compiles an ERB template into Ruby code. Returns an array of the code
|
@@ -550,118 +549,120 @@ class ERB::Compiler
|
|
550
549
|
#
|
551
550
|
# @raise [ArgumentError]
|
552
551
|
#
|
553
|
-
# source://erb//lib/erb/compiler.rb#
|
552
|
+
# source://erb//lib/erb/compiler.rb#321
|
554
553
|
def compile(s); end
|
555
554
|
|
556
|
-
# source://erb//lib/erb/compiler.rb#
|
555
|
+
# source://erb//lib/erb/compiler.rb#381
|
557
556
|
def compile_content(stag, out); end
|
558
557
|
|
559
|
-
# source://erb//lib/erb/compiler.rb#
|
558
|
+
# source://erb//lib/erb/compiler.rb#368
|
560
559
|
def compile_etag(etag, out, scanner); end
|
561
560
|
|
562
|
-
# source://erb//lib/erb/compiler.rb#
|
561
|
+
# source://erb//lib/erb/compiler.rb#344
|
563
562
|
def compile_stag(stag, out, scanner); end
|
564
563
|
|
565
564
|
# The command to handle text that is inserted prior to a newline
|
566
565
|
#
|
567
|
-
# source://erb//lib/erb/compiler.rb#
|
566
|
+
# source://erb//lib/erb/compiler.rb#446
|
568
567
|
def insert_cmd; end
|
569
568
|
|
570
569
|
# The command to handle text that is inserted prior to a newline
|
571
570
|
#
|
572
|
-
# source://erb//lib/erb/compiler.rb#
|
571
|
+
# source://erb//lib/erb/compiler.rb#446
|
573
572
|
def insert_cmd=(_arg0); end
|
574
573
|
|
575
|
-
# source://erb//lib/erb/compiler.rb#
|
574
|
+
# source://erb//lib/erb/compiler.rb#427
|
576
575
|
def make_scanner(src); end
|
577
576
|
|
578
577
|
# Returns the value of attribute percent.
|
579
578
|
#
|
580
|
-
# source://erb//lib/erb/compiler.rb#
|
579
|
+
# source://erb//lib/erb/compiler.rb#440
|
581
580
|
def percent; end
|
582
581
|
|
583
582
|
# An array of commands appended to compiled code
|
584
583
|
#
|
585
|
-
# source://erb//lib/erb/compiler.rb#
|
584
|
+
# source://erb//lib/erb/compiler.rb#452
|
586
585
|
def post_cmd; end
|
587
586
|
|
588
587
|
# An array of commands appended to compiled code
|
589
588
|
#
|
590
|
-
# source://erb//lib/erb/compiler.rb#
|
589
|
+
# source://erb//lib/erb/compiler.rb#452
|
591
590
|
def post_cmd=(_arg0); end
|
592
591
|
|
593
592
|
# An array of commands prepended to compiled code
|
594
593
|
#
|
595
|
-
# source://erb//lib/erb/compiler.rb#
|
594
|
+
# source://erb//lib/erb/compiler.rb#449
|
596
595
|
def pre_cmd; end
|
597
596
|
|
598
597
|
# An array of commands prepended to compiled code
|
599
598
|
#
|
600
|
-
# source://erb//lib/erb/compiler.rb#
|
599
|
+
# source://erb//lib/erb/compiler.rb#449
|
601
600
|
def pre_cmd=(_arg0); end
|
602
601
|
|
603
|
-
# source://erb//lib/erb/compiler.rb#
|
602
|
+
# source://erb//lib/erb/compiler.rb#398
|
604
603
|
def prepare_trim_mode(mode); end
|
605
604
|
|
606
605
|
# The command to handle text that ends with a newline
|
607
606
|
#
|
608
|
-
# source://erb//lib/erb/compiler.rb#
|
607
|
+
# source://erb//lib/erb/compiler.rb#443
|
609
608
|
def put_cmd; end
|
610
609
|
|
611
610
|
# The command to handle text that ends with a newline
|
612
611
|
#
|
613
|
-
# source://erb//lib/erb/compiler.rb#
|
612
|
+
# source://erb//lib/erb/compiler.rb#443
|
614
613
|
def put_cmd=(_arg0); end
|
615
614
|
|
616
615
|
# Returns the value of attribute trim_mode.
|
617
616
|
#
|
618
|
-
# source://erb//lib/erb/compiler.rb#
|
617
|
+
# source://erb//lib/erb/compiler.rb#440
|
619
618
|
def trim_mode; end
|
620
619
|
|
621
620
|
private
|
622
621
|
|
623
622
|
# A buffered text in #compile
|
624
623
|
#
|
625
|
-
# source://erb//lib/erb/compiler.rb#
|
624
|
+
# source://erb//lib/erb/compiler.rb#457
|
626
625
|
def content; end
|
627
626
|
|
628
627
|
# A buffered text in #compile
|
629
628
|
#
|
630
|
-
# source://erb//lib/erb/compiler.rb#
|
629
|
+
# source://erb//lib/erb/compiler.rb#457
|
631
630
|
def content=(_arg0); end
|
632
631
|
|
633
|
-
# source://erb//lib/erb/compiler.rb#
|
632
|
+
# source://erb//lib/erb/compiler.rb#459
|
634
633
|
def detect_magic_comment(s, enc = T.unsafe(nil)); end
|
635
634
|
|
636
|
-
#
|
635
|
+
# :startdoc:
|
636
|
+
#
|
637
|
+
# source://erb//lib/erb/compiler.rb#485
|
637
638
|
def warn_invalid_trim_mode(mode, uplevel:); end
|
638
639
|
end
|
639
640
|
|
640
|
-
# source://erb//lib/erb/compiler.rb#
|
641
|
+
# source://erb//lib/erb/compiler.rb#278
|
641
642
|
class ERB::Compiler::Buffer
|
642
643
|
# @return [Buffer] a new instance of Buffer
|
643
644
|
#
|
644
|
-
# source://erb//lib/erb/compiler.rb#
|
645
|
+
# source://erb//lib/erb/compiler.rb#279
|
645
646
|
def initialize(compiler, enc = T.unsafe(nil), frozen = T.unsafe(nil)); end
|
646
647
|
|
647
|
-
# source://erb//lib/erb/compiler.rb#
|
648
|
+
# source://erb//lib/erb/compiler.rb#301
|
648
649
|
def close; end
|
649
650
|
|
650
|
-
# source://erb//lib/erb/compiler.rb#
|
651
|
+
# source://erb//lib/erb/compiler.rb#295
|
651
652
|
def cr; end
|
652
653
|
|
653
|
-
# source://erb//lib/erb/compiler.rb#
|
654
|
+
# source://erb//lib/erb/compiler.rb#291
|
654
655
|
def push(cmd); end
|
655
656
|
|
656
657
|
# Returns the value of attribute script.
|
657
658
|
#
|
658
|
-
# source://erb//lib/erb/compiler.rb#
|
659
|
+
# source://erb//lib/erb/compiler.rb#289
|
659
660
|
def script; end
|
660
661
|
end
|
661
662
|
|
662
|
-
# source://erb//lib/erb/compiler.rb#
|
663
|
+
# source://erb//lib/erb/compiler.rb#254
|
663
664
|
class ERB::Compiler::ExplicitScanner < ::ERB::Compiler::Scanner
|
664
|
-
# source://erb//lib/erb/compiler.rb#
|
665
|
+
# source://erb//lib/erb/compiler.rb#255
|
665
666
|
def scan; end
|
666
667
|
end
|
667
668
|
|
@@ -687,93 +688,97 @@ end
|
|
687
688
|
class ERB::Compiler::Scanner
|
688
689
|
# @return [Scanner] a new instance of Scanner
|
689
690
|
#
|
690
|
-
# source://erb//lib/erb/compiler.rb#
|
691
|
+
# source://erb//lib/erb/compiler.rb#108
|
691
692
|
def initialize(src, trim_mode, percent); end
|
692
693
|
|
693
694
|
# Returns the value of attribute etags.
|
694
695
|
#
|
695
|
-
# source://erb//lib/erb/compiler.rb#
|
696
|
+
# source://erb//lib/erb/compiler.rb#115
|
696
697
|
def etags; end
|
697
698
|
|
698
|
-
# source://erb//lib/erb/compiler.rb#
|
699
|
+
# source://erb//lib/erb/compiler.rb#117
|
699
700
|
def scan; end
|
700
701
|
|
701
702
|
# Returns the value of attribute stag.
|
702
703
|
#
|
703
|
-
# source://erb//lib/erb/compiler.rb#
|
704
|
+
# source://erb//lib/erb/compiler.rb#114
|
704
705
|
def stag; end
|
705
706
|
|
706
707
|
# Sets the attribute stag
|
707
708
|
#
|
708
709
|
# @param value the value to set the attribute stag to.
|
709
710
|
#
|
710
|
-
# source://erb//lib/erb/compiler.rb#
|
711
|
+
# source://erb//lib/erb/compiler.rb#114
|
711
712
|
def stag=(_arg0); end
|
712
713
|
|
713
714
|
# Returns the value of attribute stags.
|
714
715
|
#
|
715
|
-
# source://erb//lib/erb/compiler.rb#
|
716
|
+
# source://erb//lib/erb/compiler.rb#115
|
716
717
|
def stags; end
|
717
718
|
|
718
719
|
class << self
|
719
|
-
# source://erb//lib/erb/compiler.rb#
|
720
|
+
# source://erb//lib/erb/compiler.rb#97
|
720
721
|
def default_scanner=(klass); end
|
721
722
|
|
722
|
-
# source://erb//lib/erb/compiler.rb#
|
723
|
+
# source://erb//lib/erb/compiler.rb#101
|
723
724
|
def make_scanner(src, trim_mode, percent); end
|
724
725
|
|
725
|
-
# source://erb//lib/erb/compiler.rb#
|
726
|
+
# source://erb//lib/erb/compiler.rb#86
|
726
727
|
def regist_scanner(klass, trim_mode, percent); end
|
727
728
|
|
728
|
-
# source://erb//lib/erb/compiler.rb#
|
729
|
+
# source://erb//lib/erb/compiler.rb#86
|
729
730
|
def register_scanner(klass, trim_mode, percent); end
|
730
731
|
end
|
731
732
|
end
|
732
733
|
|
733
|
-
# source://erb//lib/erb/compiler.rb#
|
734
|
+
# source://erb//lib/erb/compiler.rb#107
|
734
735
|
ERB::Compiler::Scanner::DEFAULT_ETAGS = T.let(T.unsafe(nil), Array)
|
735
736
|
|
736
|
-
# source://erb//lib/erb/compiler.rb#
|
737
|
+
# source://erb//lib/erb/compiler.rb#106
|
737
738
|
ERB::Compiler::Scanner::DEFAULT_STAGS = T.let(T.unsafe(nil), Array)
|
738
739
|
|
739
|
-
# source://erb//lib/erb/compiler.rb#
|
740
|
+
# source://erb//lib/erb/compiler.rb#240
|
740
741
|
class ERB::Compiler::SimpleScanner < ::ERB::Compiler::Scanner
|
741
|
-
# source://erb//lib/erb/compiler.rb#
|
742
|
+
# source://erb//lib/erb/compiler.rb#241
|
742
743
|
def scan; end
|
743
744
|
end
|
744
745
|
|
745
|
-
# source://erb//lib/erb/compiler.rb#
|
746
|
+
# source://erb//lib/erb/compiler.rb#120
|
746
747
|
class ERB::Compiler::TrimScanner < ::ERB::Compiler::Scanner
|
747
748
|
# @return [TrimScanner] a new instance of TrimScanner
|
748
749
|
#
|
749
|
-
# source://erb//lib/erb/compiler.rb#
|
750
|
+
# source://erb//lib/erb/compiler.rb#121
|
750
751
|
def initialize(src, trim_mode, percent); end
|
751
752
|
|
752
|
-
# source://erb//lib/erb/compiler.rb#
|
753
|
+
# source://erb//lib/erb/compiler.rb#210
|
753
754
|
def explicit_trim_line(line); end
|
754
755
|
|
755
756
|
# @return [Boolean]
|
756
757
|
#
|
757
|
-
# source://erb//lib/erb/compiler.rb#
|
758
|
+
# source://erb//lib/erb/compiler.rb#229
|
758
759
|
def is_erb_stag?(s); end
|
759
760
|
|
760
|
-
# source://erb//lib/erb/compiler.rb#
|
761
|
+
# source://erb//lib/erb/compiler.rb#152
|
761
762
|
def percent_line(line, &block); end
|
762
763
|
|
763
|
-
# source://erb//lib/erb/compiler.rb#
|
764
|
+
# source://erb//lib/erb/compiler.rb#140
|
764
765
|
def scan(&block); end
|
765
766
|
|
766
|
-
# source://erb//lib/erb/compiler.rb#
|
767
|
+
# source://erb//lib/erb/compiler.rb#165
|
767
768
|
def scan_line(line); end
|
768
769
|
|
769
|
-
# source://erb//lib/erb/compiler.rb#
|
770
|
+
# source://erb//lib/erb/compiler.rb#174
|
770
771
|
def trim_line1(line); end
|
771
772
|
|
772
|
-
# source://erb//lib/erb/compiler.rb#
|
773
|
+
# source://erb//lib/erb/compiler.rb#188
|
773
774
|
def trim_line2(line); end
|
774
775
|
end
|
775
776
|
|
776
|
-
#
|
777
|
+
# :stopdoc:
|
778
|
+
#
|
779
|
+
# source://erb//lib/erb/compiler.rb#476
|
780
|
+
ERB::Compiler::WARNING_UPLEVEL = T.let(T.unsafe(nil), Integer)
|
781
|
+
|
777
782
|
# ERB::DefMethod
|
778
783
|
#
|
779
784
|
# Utility module to define eRuby script as instance method.
|
@@ -833,75 +838,38 @@ module ERB::Escape
|
|
833
838
|
end
|
834
839
|
end
|
835
840
|
|
836
|
-
# source://erb//lib/erb.rb#
|
841
|
+
# source://erb//lib/erb.rb#355
|
837
842
|
ERB::NOT_GIVEN = T.let(T.unsafe(nil), Object)
|
838
843
|
|
839
|
-
# --
|
840
844
|
# ERB::Util
|
841
845
|
#
|
842
846
|
# A utility module for conversion routines, often handy in HTML generation.
|
843
847
|
#
|
844
|
-
# source://erb//lib/erb/util.rb#
|
848
|
+
# source://erb//lib/erb/util.rb#32
|
845
849
|
module ERB::Util
|
846
850
|
include ::ERB::Escape
|
847
851
|
|
848
852
|
private
|
849
853
|
|
850
|
-
#
|
854
|
+
# cgi.gem <= v0.3.2
|
851
855
|
#
|
852
|
-
#
|
853
|
-
# include ERB::Util
|
854
|
-
#
|
855
|
-
# puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
|
856
|
-
#
|
857
|
-
# _Generates_
|
858
|
-
#
|
859
|
-
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
|
860
|
-
#
|
861
|
-
# source://erb//lib/erb/util.rb#57
|
856
|
+
# source://erb//lib/erb/util.rb#63
|
862
857
|
def u(s); end
|
863
858
|
|
864
|
-
#
|
865
|
-
#
|
866
|
-
# require "erb"
|
867
|
-
# include ERB::Util
|
859
|
+
# cgi.gem <= v0.3.2
|
868
860
|
#
|
869
|
-
#
|
870
|
-
#
|
871
|
-
# _Generates_
|
872
|
-
#
|
873
|
-
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
|
874
|
-
#
|
875
|
-
# source://erb//lib/erb/util.rb#57
|
861
|
+
# source://erb//lib/erb/util.rb#63
|
876
862
|
def url_encode(s); end
|
877
863
|
|
878
864
|
class << self
|
879
|
-
#
|
880
|
-
#
|
881
|
-
# require "erb"
|
882
|
-
# include ERB::Util
|
883
|
-
#
|
884
|
-
# puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
|
865
|
+
# cgi.gem <= v0.3.2
|
885
866
|
#
|
886
|
-
#
|
887
|
-
#
|
888
|
-
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
|
889
|
-
#
|
890
|
-
# source://erb//lib/erb/util.rb#57
|
867
|
+
# source://erb//lib/erb/util.rb#63
|
891
868
|
def u(s); end
|
892
869
|
|
893
|
-
#
|
894
|
-
#
|
895
|
-
# require "erb"
|
896
|
-
# include ERB::Util
|
897
|
-
#
|
898
|
-
# puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
|
899
|
-
#
|
900
|
-
# _Generates_
|
901
|
-
#
|
902
|
-
# Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
|
870
|
+
# cgi.gem <= v0.3.2
|
903
871
|
#
|
904
|
-
# source://erb//lib/erb/util.rb#
|
872
|
+
# source://erb//lib/erb/util.rb#63
|
905
873
|
def url_encode(s); end
|
906
874
|
end
|
907
875
|
end
|