sorbet-schema 0.6.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +20 -20
- data/lib/sorbet-schema/hash_transformer.rb +12 -35
- data/lib/sorbet-schema/serialize_value.rb +20 -0
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/sorbet-schema.rb +2 -1
- data/lib/typed/coercion/coercion_not_supported_error.rb +8 -1
- data/lib/typed/coercion.rb +3 -3
- data/lib/typed/hash_serializer.rb +2 -2
- data/lib/typed/json_serializer.rb +1 -1
- data/lib/typed/serializer.rb +5 -1
- data/sorbet/rbi/gems/minitest-focus@1.4.0.rbi +13 -13
- data/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi +27 -27
- data/sorbet/rbi/gems/psych@5.1.2.rbi +267 -230
- data/sorbet/rbi/gems/{rexml@3.3.0.rbi → rexml@3.3.1.rbi} +140 -128
- data/sorbet/rbi/gems/rubocop@1.64.1.rbi +2 -2
- data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +85 -82
- data/sorbet/rbi/gems/{standard@1.39.0.rbi → standard@1.39.1.rbi} +12 -9
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +35 -29
- data/sorbet/tapioca/config.yml +3 -0
- metadata +8 -11
- data/.tool-versions +0 -1
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4421
- data/sorbet/rbi/gems/tapioca@0.14.4.rbi +0 -3547
- /data/sorbet/rbi/gems/{minitest@5.24.0.rbi → minitest@5.24.1.rbi} +0 -0
@@ -227,7 +227,7 @@ end
|
|
227
227
|
# A class that defines the set of Attributes of an Element and provides
|
228
228
|
# operations for accessing elements in that set.
|
229
229
|
#
|
230
|
-
# source://rexml//lib/rexml/element.rb#
|
230
|
+
# source://rexml//lib/rexml/element.rb#2128
|
231
231
|
class REXML::Attributes < ::Hash
|
232
232
|
# :call-seq:
|
233
233
|
# new(element)
|
@@ -248,7 +248,7 @@ class REXML::Attributes < ::Hash
|
|
248
248
|
#
|
249
249
|
# @return [Attributes] a new instance of Attributes
|
250
250
|
#
|
251
|
-
# source://rexml//lib/rexml/element.rb#
|
251
|
+
# source://rexml//lib/rexml/element.rb#2147
|
252
252
|
def initialize(element); end
|
253
253
|
|
254
254
|
# :call-seq:
|
@@ -271,7 +271,7 @@ class REXML::Attributes < ::Hash
|
|
271
271
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
272
272
|
# attrs.include?('baz') # => true
|
273
273
|
#
|
274
|
-
# source://rexml//lib/rexml/element.rb#
|
274
|
+
# source://rexml//lib/rexml/element.rb#2524
|
275
275
|
def <<(attribute); end
|
276
276
|
|
277
277
|
# :call-seq:
|
@@ -295,7 +295,7 @@ class REXML::Attributes < ::Hash
|
|
295
295
|
#
|
296
296
|
# Related: get_attribute (returns an \Attribute object).
|
297
297
|
#
|
298
|
-
# source://rexml//lib/rexml/element.rb#
|
298
|
+
# source://rexml//lib/rexml/element.rb#2172
|
299
299
|
def [](name); end
|
300
300
|
|
301
301
|
# :call-seq:
|
@@ -321,7 +321,7 @@ class REXML::Attributes < ::Hash
|
|
321
321
|
# attrs['baz:att'] = nil
|
322
322
|
# attrs.include?('baz:att') # => false
|
323
323
|
#
|
324
|
-
# source://rexml//lib/rexml/element.rb#
|
324
|
+
# source://rexml//lib/rexml/element.rb#2356
|
325
325
|
def []=(name, value); end
|
326
326
|
|
327
327
|
# :call-seq:
|
@@ -344,7 +344,7 @@ class REXML::Attributes < ::Hash
|
|
344
344
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
345
345
|
# attrs.include?('baz') # => true
|
346
346
|
#
|
347
|
-
# source://rexml//lib/rexml/element.rb#
|
347
|
+
# source://rexml//lib/rexml/element.rb#2524
|
348
348
|
def add(attribute); end
|
349
349
|
|
350
350
|
# :call-seq:
|
@@ -375,7 +375,7 @@ class REXML::Attributes < ::Hash
|
|
375
375
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele att='<'/>
|
376
376
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele/>
|
377
377
|
#
|
378
|
-
# source://rexml//lib/rexml/element.rb#
|
378
|
+
# source://rexml//lib/rexml/element.rb#2477
|
379
379
|
def delete(attribute); end
|
380
380
|
|
381
381
|
# :call-seq:
|
@@ -394,7 +394,7 @@ class REXML::Attributes < ::Hash
|
|
394
394
|
# attrs = ele.attributes
|
395
395
|
# attrs.delete_all('att') # => [att='<']
|
396
396
|
#
|
397
|
-
# source://rexml//lib/rexml/element.rb#
|
397
|
+
# source://rexml//lib/rexml/element.rb#2546
|
398
398
|
def delete_all(name); end
|
399
399
|
|
400
400
|
# :call-seq:
|
@@ -419,7 +419,7 @@ class REXML::Attributes < ::Hash
|
|
419
419
|
# ["bar:att", "2"]
|
420
420
|
# ["att", "<"]
|
421
421
|
#
|
422
|
-
# source://rexml//lib/rexml/element.rb#
|
422
|
+
# source://rexml//lib/rexml/element.rb#2274
|
423
423
|
def each; end
|
424
424
|
|
425
425
|
# :call-seq:
|
@@ -444,7 +444,7 @@ class REXML::Attributes < ::Hash
|
|
444
444
|
# [REXML::Attribute, bar:att='2']
|
445
445
|
# [REXML::Attribute, att='<']
|
446
446
|
#
|
447
|
-
# source://rexml//lib/rexml/element.rb#
|
447
|
+
# source://rexml//lib/rexml/element.rb#2241
|
448
448
|
def each_attribute; end
|
449
449
|
|
450
450
|
# :call-seq:
|
@@ -466,7 +466,7 @@ class REXML::Attributes < ::Hash
|
|
466
466
|
# attrs.get_attribute('att') # => att='<'
|
467
467
|
# attrs.get_attribute('nosuch') # => nil
|
468
468
|
#
|
469
|
-
# source://rexml//lib/rexml/element.rb#
|
469
|
+
# source://rexml//lib/rexml/element.rb#2300
|
470
470
|
def get_attribute(name); end
|
471
471
|
|
472
472
|
# :call-seq:
|
@@ -486,7 +486,7 @@ class REXML::Attributes < ::Hash
|
|
486
486
|
# attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
|
487
487
|
# attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
|
488
488
|
#
|
489
|
-
# source://rexml//lib/rexml/element.rb#
|
489
|
+
# source://rexml//lib/rexml/element.rb#2572
|
490
490
|
def get_attribute_ns(namespace, name); end
|
491
491
|
|
492
492
|
# :call-seq:
|
@@ -503,7 +503,7 @@ class REXML::Attributes < ::Hash
|
|
503
503
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
504
504
|
# ele.attributes.length # => 3
|
505
505
|
#
|
506
|
-
# source://rexml//lib/rexml/element.rb#
|
506
|
+
# source://rexml//lib/rexml/element.rb#2212
|
507
507
|
def length; end
|
508
508
|
|
509
509
|
# :call-seq:
|
@@ -515,7 +515,7 @@ class REXML::Attributes < ::Hash
|
|
515
515
|
# d = REXML::Document.new(xml_string)
|
516
516
|
# d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
|
517
517
|
#
|
518
|
-
# source://rexml//lib/rexml/element.rb#
|
518
|
+
# source://rexml//lib/rexml/element.rb#2433
|
519
519
|
def namespaces; end
|
520
520
|
|
521
521
|
# :call-seq:
|
@@ -529,7 +529,7 @@ class REXML::Attributes < ::Hash
|
|
529
529
|
# d = REXML::Document.new(xml_string)
|
530
530
|
# d.root.attributes.prefixes # => ["x", "y"]
|
531
531
|
#
|
532
|
-
# source://rexml//lib/rexml/element.rb#
|
532
|
+
# source://rexml//lib/rexml/element.rb#2408
|
533
533
|
def prefixes; end
|
534
534
|
|
535
535
|
# :call-seq:
|
@@ -546,7 +546,7 @@ class REXML::Attributes < ::Hash
|
|
546
546
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
547
547
|
# ele.attributes.length # => 3
|
548
548
|
#
|
549
|
-
# source://rexml//lib/rexml/element.rb#
|
549
|
+
# source://rexml//lib/rexml/element.rb#2212
|
550
550
|
def size; end
|
551
551
|
|
552
552
|
# :call-seq:
|
@@ -565,7 +565,7 @@ class REXML::Attributes < ::Hash
|
|
565
565
|
# attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
|
566
566
|
# attrs.first.class # => REXML::Attribute
|
567
567
|
#
|
568
|
-
# source://rexml//lib/rexml/element.rb#
|
568
|
+
# source://rexml//lib/rexml/element.rb#2194
|
569
569
|
def to_a; end
|
570
570
|
end
|
571
571
|
|
@@ -1578,7 +1578,7 @@ end
|
|
1578
1578
|
# #attributes:: Returns the REXML::Attributes object for the element.
|
1579
1579
|
# #context:: Returns or sets the context hash for the element.
|
1580
1580
|
#
|
1581
|
-
# source://rexml//lib/rexml/element.rb#
|
1581
|
+
# source://rexml//lib/rexml/element.rb#271
|
1582
1582
|
class REXML::Element < ::REXML::Parent
|
1583
1583
|
include ::REXML::XMLTokens
|
1584
1584
|
include ::REXML::Namespace
|
@@ -1621,7 +1621,7 @@ class REXML::Element < ::REXML::Parent
|
|
1621
1621
|
#
|
1622
1622
|
# @return [Element] a new instance of Element
|
1623
1623
|
#
|
1624
|
-
# source://rexml//lib/rexml/element.rb#
|
1624
|
+
# source://rexml//lib/rexml/element.rb#319
|
1625
1625
|
def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
|
1626
1626
|
|
1627
1627
|
# :call-seq:
|
@@ -1663,7 +1663,7 @@ class REXML::Element < ::REXML::Parent
|
|
1663
1663
|
# root[:attr] # => "value"
|
1664
1664
|
# root[:nosuch] # => nil
|
1665
1665
|
#
|
1666
|
-
# source://rexml//lib/rexml/element.rb#
|
1666
|
+
# source://rexml//lib/rexml/element.rb#1237
|
1667
1667
|
def [](name_or_index); end
|
1668
1668
|
|
1669
1669
|
# :call-seq:
|
@@ -1692,7 +1692,7 @@ class REXML::Element < ::REXML::Parent
|
|
1692
1692
|
# e.add_attribute(a) # => attr='VALUE'
|
1693
1693
|
# e['attr'] # => "VALUE"
|
1694
1694
|
#
|
1695
|
-
# source://rexml//lib/rexml/element.rb#
|
1695
|
+
# source://rexml//lib/rexml/element.rb#1336
|
1696
1696
|
def add_attribute(key, value = T.unsafe(nil)); end
|
1697
1697
|
|
1698
1698
|
# :call-seq:
|
@@ -1718,7 +1718,7 @@ class REXML::Element < ::REXML::Parent
|
|
1718
1718
|
# a = [['foo' => 'bar'], ['baz' => 'bat']]
|
1719
1719
|
# e.add_attributes(a)
|
1720
1720
|
#
|
1721
|
-
# source://rexml//lib/rexml/element.rb#
|
1721
|
+
# source://rexml//lib/rexml/element.rb#1367
|
1722
1722
|
def add_attributes(hash); end
|
1723
1723
|
|
1724
1724
|
# :call-seq:
|
@@ -1755,7 +1755,7 @@ class REXML::Element < ::REXML::Parent
|
|
1755
1755
|
# e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
|
1756
1756
|
# e0[1] # => <bar bat='0' bam='1'/>
|
1757
1757
|
#
|
1758
|
-
# source://rexml//lib/rexml/element.rb#
|
1758
|
+
# source://rexml//lib/rexml/element.rb#723
|
1759
1759
|
def add_element(element, attrs = T.unsafe(nil)); end
|
1760
1760
|
|
1761
1761
|
# :call-seq:
|
@@ -1776,7 +1776,7 @@ class REXML::Element < ::REXML::Parent
|
|
1776
1776
|
# e.add_namespace('baz', 'bat')
|
1777
1777
|
# e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
|
1778
1778
|
#
|
1779
|
-
# source://rexml//lib/rexml/element.rb#
|
1779
|
+
# source://rexml//lib/rexml/element.rb#646
|
1780
1780
|
def add_namespace(prefix, uri = T.unsafe(nil)); end
|
1781
1781
|
|
1782
1782
|
# :call-seq:
|
@@ -1818,7 +1818,7 @@ class REXML::Element < ::REXML::Parent
|
|
1818
1818
|
# a.add_text(REXML::Text.new('baz'))
|
1819
1819
|
# a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
|
1820
1820
|
#
|
1821
|
-
# source://rexml//lib/rexml/element.rb#
|
1821
|
+
# source://rexml//lib/rexml/element.rb#1138
|
1822
1822
|
def add_text(text); end
|
1823
1823
|
|
1824
1824
|
# :call-seq:
|
@@ -1850,13 +1850,13 @@ class REXML::Element < ::REXML::Parent
|
|
1850
1850
|
# document.root.attribute("x") # => x='x'
|
1851
1851
|
# document.root.attribute("x", "a") # => a:x='a:x'
|
1852
1852
|
#
|
1853
|
-
# source://rexml//lib/rexml/element.rb#
|
1853
|
+
# source://rexml//lib/rexml/element.rb#1278
|
1854
1854
|
def attribute(name, namespace = T.unsafe(nil)); end
|
1855
1855
|
|
1856
1856
|
# Mechanisms for accessing attributes and child elements of this
|
1857
1857
|
# element.
|
1858
1858
|
#
|
1859
|
-
# source://rexml//lib/rexml/element.rb#
|
1859
|
+
# source://rexml//lib/rexml/element.rb#278
|
1860
1860
|
def attributes; end
|
1861
1861
|
|
1862
1862
|
# :call-seq:
|
@@ -1875,7 +1875,7 @@ class REXML::Element < ::REXML::Parent
|
|
1875
1875
|
# cds.frozen? # => true
|
1876
1876
|
# cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
|
1877
1877
|
#
|
1878
|
-
# source://rexml//lib/rexml/element.rb#
|
1878
|
+
# source://rexml//lib/rexml/element.rb#1411
|
1879
1879
|
def cdatas; end
|
1880
1880
|
|
1881
1881
|
# :call-seq:
|
@@ -1888,7 +1888,7 @@ class REXML::Element < ::REXML::Parent
|
|
1888
1888
|
# e.add_attributes({'bar' => 0, 'baz' => 1})
|
1889
1889
|
# e.clone # => <foo bar='0' baz='1'/>
|
1890
1890
|
#
|
1891
|
-
# source://rexml//lib/rexml/element.rb#
|
1891
|
+
# source://rexml//lib/rexml/element.rb#383
|
1892
1892
|
def clone; end
|
1893
1893
|
|
1894
1894
|
# :call-seq:
|
@@ -1908,19 +1908,19 @@ class REXML::Element < ::REXML::Parent
|
|
1908
1908
|
# cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
|
1909
1909
|
# cs.map {|c| c.to_s } # => ["foo", "bar"]
|
1910
1910
|
#
|
1911
|
-
# source://rexml//lib/rexml/element.rb#
|
1911
|
+
# source://rexml//lib/rexml/element.rb#1432
|
1912
1912
|
def comments; end
|
1913
1913
|
|
1914
1914
|
# The context holds information about the processing environment, such as
|
1915
1915
|
# whitespace handling.
|
1916
1916
|
#
|
1917
|
-
# source://rexml//lib/rexml/element.rb#
|
1917
|
+
# source://rexml//lib/rexml/element.rb#281
|
1918
1918
|
def context; end
|
1919
1919
|
|
1920
1920
|
# The context holds information about the processing environment, such as
|
1921
1921
|
# whitespace handling.
|
1922
1922
|
#
|
1923
|
-
# source://rexml//lib/rexml/element.rb#
|
1923
|
+
# source://rexml//lib/rexml/element.rb#281
|
1924
1924
|
def context=(_arg0); end
|
1925
1925
|
|
1926
1926
|
# :call-seq:
|
@@ -1934,7 +1934,7 @@ class REXML::Element < ::REXML::Parent
|
|
1934
1934
|
# e.delete_attribute('bar') # => <bar/>
|
1935
1935
|
# e.delete_attribute('bar') # => nil
|
1936
1936
|
#
|
1937
|
-
# source://rexml//lib/rexml/element.rb#
|
1937
|
+
# source://rexml//lib/rexml/element.rb#1386
|
1938
1938
|
def delete_attribute(key); end
|
1939
1939
|
|
1940
1940
|
# :call-seq:
|
@@ -1974,7 +1974,7 @@ class REXML::Element < ::REXML::Parent
|
|
1974
1974
|
# a.delete_element('//c') # => <c/>
|
1975
1975
|
# a.delete_element('//c') # => nil
|
1976
1976
|
#
|
1977
|
-
# source://rexml//lib/rexml/element.rb#
|
1977
|
+
# source://rexml//lib/rexml/element.rb#769
|
1978
1978
|
def delete_element(element); end
|
1979
1979
|
|
1980
1980
|
# :call-seq:
|
@@ -1999,7 +1999,7 @@ class REXML::Element < ::REXML::Parent
|
|
1999
1999
|
# d.root.delete_namespace('nosuch')
|
2000
2000
|
# d.to_s # => "<a/>"
|
2001
2001
|
#
|
2002
|
-
# source://rexml//lib/rexml/element.rb#
|
2002
|
+
# source://rexml//lib/rexml/element.rb#678
|
2003
2003
|
def delete_namespace(namespace = T.unsafe(nil)); end
|
2004
2004
|
|
2005
2005
|
# :call-seq:
|
@@ -2023,7 +2023,7 @@ class REXML::Element < ::REXML::Parent
|
|
2023
2023
|
#
|
2024
2024
|
# Related: #root, #root_node.
|
2025
2025
|
#
|
2026
|
-
# source://rexml//lib/rexml/element.rb#
|
2026
|
+
# source://rexml//lib/rexml/element.rb#470
|
2027
2027
|
def document; end
|
2028
2028
|
|
2029
2029
|
# :call-seq:
|
@@ -2042,7 +2042,7 @@ class REXML::Element < ::REXML::Parent
|
|
2042
2042
|
# <d> ... </>
|
2043
2043
|
# <e/>
|
2044
2044
|
#
|
2045
|
-
# source://rexml//lib/rexml/element.rb#
|
2045
|
+
# source://rexml//lib/rexml/element.rb#921
|
2046
2046
|
def each_element(xpath = T.unsafe(nil), &block); end
|
2047
2047
|
|
2048
2048
|
# :call-seq:
|
@@ -2094,7 +2094,7 @@ class REXML::Element < ::REXML::Parent
|
|
2094
2094
|
#
|
2095
2095
|
# <d id='1'/>
|
2096
2096
|
#
|
2097
|
-
# source://rexml//lib/rexml/element.rb#
|
2097
|
+
# source://rexml//lib/rexml/element.rb#838
|
2098
2098
|
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2099
2099
|
|
2100
2100
|
# :call-seq:
|
@@ -2144,13 +2144,13 @@ class REXML::Element < ::REXML::Parent
|
|
2144
2144
|
#
|
2145
2145
|
# <c> ... </>
|
2146
2146
|
#
|
2147
|
-
# source://rexml//lib/rexml/element.rb#
|
2147
|
+
# source://rexml//lib/rexml/element.rb#895
|
2148
2148
|
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2149
2149
|
|
2150
2150
|
# Mechanisms for accessing attributes and child elements of this
|
2151
2151
|
# element.
|
2152
2152
|
#
|
2153
|
-
# source://rexml//lib/rexml/element.rb#
|
2153
|
+
# source://rexml//lib/rexml/element.rb#278
|
2154
2154
|
def elements; end
|
2155
2155
|
|
2156
2156
|
# :call-seq:
|
@@ -2168,7 +2168,7 @@ class REXML::Element < ::REXML::Parent
|
|
2168
2168
|
# d = REXML::Document.new(xml_string)
|
2169
2169
|
# d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
|
2170
2170
|
#
|
2171
|
-
# source://rexml//lib/rexml/element.rb#
|
2171
|
+
# source://rexml//lib/rexml/element.rb#940
|
2172
2172
|
def get_elements(xpath); end
|
2173
2173
|
|
2174
2174
|
# :call-seq:
|
@@ -2188,7 +2188,7 @@ class REXML::Element < ::REXML::Parent
|
|
2188
2188
|
#
|
2189
2189
|
# d.root.get_text(1) # => "this is bold!"
|
2190
2190
|
#
|
2191
|
-
# source://rexml//lib/rexml/element.rb#
|
2191
|
+
# source://rexml//lib/rexml/element.rb#1044
|
2192
2192
|
def get_text(path = T.unsafe(nil)); end
|
2193
2193
|
|
2194
2194
|
# :call-seq:
|
@@ -2203,7 +2203,7 @@ class REXML::Element < ::REXML::Parent
|
|
2203
2203
|
#
|
2204
2204
|
# @return [Boolean]
|
2205
2205
|
#
|
2206
|
-
# source://rexml//lib/rexml/element.rb#
|
2206
|
+
# source://rexml//lib/rexml/element.rb#1306
|
2207
2207
|
def has_attributes?; end
|
2208
2208
|
|
2209
2209
|
# :call-seq:
|
@@ -2220,7 +2220,7 @@ class REXML::Element < ::REXML::Parent
|
|
2220
2220
|
#
|
2221
2221
|
# @return [Boolean]
|
2222
2222
|
#
|
2223
|
-
# source://rexml//lib/rexml/element.rb#
|
2223
|
+
# source://rexml//lib/rexml/element.rb#785
|
2224
2224
|
def has_elements?; end
|
2225
2225
|
|
2226
2226
|
# :call-seq:
|
@@ -2237,7 +2237,7 @@ class REXML::Element < ::REXML::Parent
|
|
2237
2237
|
#
|
2238
2238
|
# @return [Boolean]
|
2239
2239
|
#
|
2240
|
-
# source://rexml//lib/rexml/element.rb#
|
2240
|
+
# source://rexml//lib/rexml/element.rb#993
|
2241
2241
|
def has_text?; end
|
2242
2242
|
|
2243
2243
|
# :call-seq:
|
@@ -2247,7 +2247,7 @@ class REXML::Element < ::REXML::Parent
|
|
2247
2247
|
#
|
2248
2248
|
# See {Element Context}[../doc/rexml/context_rdoc.html].
|
2249
2249
|
#
|
2250
|
-
# source://rexml//lib/rexml/element.rb#
|
2250
|
+
# source://rexml//lib/rexml/element.rb#508
|
2251
2251
|
def ignore_whitespace_nodes; end
|
2252
2252
|
|
2253
2253
|
# :call-seq:
|
@@ -2271,7 +2271,7 @@ class REXML::Element < ::REXML::Parent
|
|
2271
2271
|
# e.add_element(REXML::Element.new('baz'))
|
2272
2272
|
# e.inspect # => "<foo bar='0' baz='1'> ... </>"
|
2273
2273
|
#
|
2274
|
-
# source://rexml//lib/rexml/element.rb#
|
2274
|
+
# source://rexml//lib/rexml/element.rb#358
|
2275
2275
|
def inspect; end
|
2276
2276
|
|
2277
2277
|
# :call-seq:
|
@@ -2291,7 +2291,7 @@ class REXML::Element < ::REXML::Parent
|
|
2291
2291
|
# is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
|
2292
2292
|
# is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
|
2293
2293
|
#
|
2294
|
-
# source://rexml//lib/rexml/element.rb#
|
2294
|
+
# source://rexml//lib/rexml/element.rb#1453
|
2295
2295
|
def instructions; end
|
2296
2296
|
|
2297
2297
|
# :call-seq:
|
@@ -2314,7 +2314,7 @@ class REXML::Element < ::REXML::Parent
|
|
2314
2314
|
# b.namespace('y') # => "2"
|
2315
2315
|
# b.namespace('nosuch') # => nil
|
2316
2316
|
#
|
2317
|
-
# source://rexml//lib/rexml/element.rb#
|
2317
|
+
# source://rexml//lib/rexml/element.rb#613
|
2318
2318
|
def namespace(prefix = T.unsafe(nil)); end
|
2319
2319
|
|
2320
2320
|
# :call-seq:
|
@@ -2336,7 +2336,7 @@ class REXML::Element < ::REXML::Parent
|
|
2336
2336
|
# d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
|
2337
2337
|
# d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
|
2338
2338
|
#
|
2339
|
-
# source://rexml//lib/rexml/element.rb#
|
2339
|
+
# source://rexml//lib/rexml/element.rb#586
|
2340
2340
|
def namespaces; end
|
2341
2341
|
|
2342
2342
|
# :call-seq:
|
@@ -2349,7 +2349,7 @@ class REXML::Element < ::REXML::Parent
|
|
2349
2349
|
# d.root.elements['b'].next_element #-> <c/>
|
2350
2350
|
# d.root.elements['c'].next_element #-> nil
|
2351
2351
|
#
|
2352
|
-
# source://rexml//lib/rexml/element.rb#
|
2352
|
+
# source://rexml//lib/rexml/element.rb#954
|
2353
2353
|
def next_element; end
|
2354
2354
|
|
2355
2355
|
# :call-seq:
|
@@ -2361,7 +2361,7 @@ class REXML::Element < ::REXML::Parent
|
|
2361
2361
|
# a = d.root # => <a/>
|
2362
2362
|
# a.node_type # => :element
|
2363
2363
|
#
|
2364
|
-
# source://rexml//lib/rexml/element.rb#
|
2364
|
+
# source://rexml//lib/rexml/element.rb#1159
|
2365
2365
|
def node_type; end
|
2366
2366
|
|
2367
2367
|
# :call-seq:
|
@@ -2383,7 +2383,7 @@ class REXML::Element < ::REXML::Parent
|
|
2383
2383
|
# d.elements['//b'].prefixes # => ["x", "y"]
|
2384
2384
|
# d.elements['//c'].prefixes # => ["x", "y", "z"]
|
2385
2385
|
#
|
2386
|
-
# source://rexml//lib/rexml/element.rb#
|
2386
|
+
# source://rexml//lib/rexml/element.rb#560
|
2387
2387
|
def prefixes; end
|
2388
2388
|
|
2389
2389
|
# :call-seq:
|
@@ -2396,7 +2396,7 @@ class REXML::Element < ::REXML::Parent
|
|
2396
2396
|
# d.root.elements['c'].previous_element #-> <b/>
|
2397
2397
|
# d.root.elements['b'].previous_element #-> nil
|
2398
2398
|
#
|
2399
|
-
# source://rexml//lib/rexml/element.rb#
|
2399
|
+
# source://rexml//lib/rexml/element.rb#970
|
2400
2400
|
def previous_element; end
|
2401
2401
|
|
2402
2402
|
# :call-seq:
|
@@ -2409,7 +2409,7 @@ class REXML::Element < ::REXML::Parent
|
|
2409
2409
|
# The evaluation is tested against +expanded_name+, and so is namespace
|
2410
2410
|
# sensitive.
|
2411
2411
|
#
|
2412
|
-
# source://rexml//lib/rexml/element.rb#
|
2412
|
+
# source://rexml//lib/rexml/element.rb#528
|
2413
2413
|
def raw; end
|
2414
2414
|
|
2415
2415
|
# :call-seq:
|
@@ -2429,7 +2429,7 @@ class REXML::Element < ::REXML::Parent
|
|
2429
2429
|
#
|
2430
2430
|
# Related: #root_node, #document.
|
2431
2431
|
#
|
2432
|
-
# source://rexml//lib/rexml/element.rb#
|
2432
|
+
# source://rexml//lib/rexml/element.rb#443
|
2433
2433
|
def root; end
|
2434
2434
|
|
2435
2435
|
# :call-seq:
|
@@ -2467,7 +2467,7 @@ class REXML::Element < ::REXML::Parent
|
|
2467
2467
|
#
|
2468
2468
|
# Related: #root, #document.
|
2469
2469
|
#
|
2470
|
-
# source://rexml//lib/rexml/element.rb#
|
2470
|
+
# source://rexml//lib/rexml/element.rb#422
|
2471
2471
|
def root_node; end
|
2472
2472
|
|
2473
2473
|
# :call-seq:
|
@@ -2494,7 +2494,7 @@ class REXML::Element < ::REXML::Parent
|
|
2494
2494
|
# Note also that the text note is retrieved by method get_text,
|
2495
2495
|
# and so is always normalized text.
|
2496
2496
|
#
|
2497
|
-
# source://rexml//lib/rexml/element.rb#
|
2497
|
+
# source://rexml//lib/rexml/element.rb#1021
|
2498
2498
|
def text(path = T.unsafe(nil)); end
|
2499
2499
|
|
2500
2500
|
# :call-seq:
|
@@ -2522,7 +2522,7 @@ class REXML::Element < ::REXML::Parent
|
|
2522
2522
|
#
|
2523
2523
|
# d.root.text = nil #-> '<a><b/><c/></a>'
|
2524
2524
|
#
|
2525
|
-
# source://rexml//lib/rexml/element.rb#
|
2525
|
+
# source://rexml//lib/rexml/element.rb#1080
|
2526
2526
|
def text=(text); end
|
2527
2527
|
|
2528
2528
|
# :call-seq:
|
@@ -2537,7 +2537,7 @@ class REXML::Element < ::REXML::Parent
|
|
2537
2537
|
# ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
|
2538
2538
|
# ts.map {|t| t.to_s } # => ["text", "more"]
|
2539
2539
|
#
|
2540
|
-
# source://rexml//lib/rexml/element.rb#
|
2540
|
+
# source://rexml//lib/rexml/element.rb#1469
|
2541
2541
|
def texts; end
|
2542
2542
|
|
2543
2543
|
# :call-seq:
|
@@ -2551,7 +2551,7 @@ class REXML::Element < ::REXML::Parent
|
|
2551
2551
|
# The evaluation is tested against the element's +expanded_name+,
|
2552
2552
|
# and so is namespace-sensitive.
|
2553
2553
|
#
|
2554
|
-
# source://rexml//lib/rexml/element.rb#
|
2554
|
+
# source://rexml//lib/rexml/element.rb#485
|
2555
2555
|
def whitespace; end
|
2556
2556
|
|
2557
2557
|
# == DEPRECATED
|
@@ -2577,7 +2577,7 @@ class REXML::Element < ::REXML::Parent
|
|
2577
2577
|
# doc.write( out ) #-> doc is written to the string 'out'
|
2578
2578
|
# doc.write( $stdout ) #-> doc written to the console
|
2579
2579
|
#
|
2580
|
-
# source://rexml//lib/rexml/element.rb#
|
2580
|
+
# source://rexml//lib/rexml/element.rb#1495
|
2581
2581
|
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
2582
2582
|
|
2583
2583
|
# :call-seq:
|
@@ -2600,17 +2600,17 @@ class REXML::Element < ::REXML::Parent
|
|
2600
2600
|
# e = REXML::Element.new('foo')
|
2601
2601
|
# e.xpath # => "foo"
|
2602
2602
|
#
|
2603
|
-
# source://rexml//lib/rexml/element.rb#
|
2603
|
+
# source://rexml//lib/rexml/element.rb#1183
|
2604
2604
|
def xpath; end
|
2605
2605
|
|
2606
2606
|
private
|
2607
2607
|
|
2608
|
-
# source://rexml//lib/rexml/element.rb#
|
2608
|
+
# source://rexml//lib/rexml/element.rb#1512
|
2609
2609
|
def __to_xpath_helper(node); end
|
2610
2610
|
|
2611
2611
|
# A private helper method
|
2612
2612
|
#
|
2613
|
-
# source://rexml//lib/rexml/element.rb#
|
2613
|
+
# source://rexml//lib/rexml/element.rb#1527
|
2614
2614
|
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
|
2615
2615
|
end
|
2616
2616
|
|
@@ -2664,7 +2664,7 @@ end
|
|
2664
2664
|
# elements = d.root.elements
|
2665
2665
|
# elements # => #<REXML::Elements @element=<bookstore> ... </>>
|
2666
2666
|
#
|
2667
|
-
# source://rexml//lib/rexml/element.rb#
|
2667
|
+
# source://rexml//lib/rexml/element.rb#1582
|
2668
2668
|
class REXML::Elements
|
2669
2669
|
include ::Enumerable
|
2670
2670
|
|
@@ -2681,7 +2681,7 @@ class REXML::Elements
|
|
2681
2681
|
#
|
2682
2682
|
# @return [Elements] a new instance of Elements
|
2683
2683
|
#
|
2684
|
-
# source://rexml//lib/rexml/element.rb#
|
2684
|
+
# source://rexml//lib/rexml/element.rb#1595
|
2685
2685
|
def initialize(parent); end
|
2686
2686
|
|
2687
2687
|
# :call-seq:
|
@@ -2746,7 +2746,7 @@ class REXML::Elements
|
|
2746
2746
|
# element.parent # => <bookstore> ... </>
|
2747
2747
|
# element.context # => {:raw=>:all}
|
2748
2748
|
#
|
2749
|
-
# source://rexml//lib/rexml/element.rb#
|
2749
|
+
# source://rexml//lib/rexml/element.rb#1912
|
2750
2750
|
def <<(element = T.unsafe(nil)); end
|
2751
2751
|
|
2752
2752
|
# :call-seq:
|
@@ -2802,7 +2802,7 @@ class REXML::Elements
|
|
2802
2802
|
# eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
|
2803
2803
|
# eles[5, 'book'] # => nil
|
2804
2804
|
#
|
2805
|
-
# source://rexml//lib/rexml/element.rb#
|
2805
|
+
# source://rexml//lib/rexml/element.rb#1667
|
2806
2806
|
def [](index, name = T.unsafe(nil)); end
|
2807
2807
|
|
2808
2808
|
# :call-seq:
|
@@ -2841,7 +2841,7 @@ class REXML::Elements
|
|
2841
2841
|
# eles[50] = REXML::Text.new('bar') # => "bar"
|
2842
2842
|
# eles.size # => 5
|
2843
2843
|
#
|
2844
|
-
# source://rexml//lib/rexml/element.rb#
|
2844
|
+
# source://rexml//lib/rexml/element.rb#1722
|
2845
2845
|
def []=(index, element); end
|
2846
2846
|
|
2847
2847
|
# :call-seq:
|
@@ -2906,7 +2906,7 @@ class REXML::Elements
|
|
2906
2906
|
# element.parent # => <bookstore> ... </>
|
2907
2907
|
# element.context # => {:raw=>:all}
|
2908
2908
|
#
|
2909
|
-
# source://rexml//lib/rexml/element.rb#
|
2909
|
+
# source://rexml//lib/rexml/element.rb#1912
|
2910
2910
|
def add(element = T.unsafe(nil)); end
|
2911
2911
|
|
2912
2912
|
# :call-seq:
|
@@ -2926,7 +2926,7 @@ class REXML::Elements
|
|
2926
2926
|
# xpath = '//book [@category="web"]'
|
2927
2927
|
# elements.collect(xpath) {|element| element.size } # => [17, 9]
|
2928
2928
|
#
|
2929
|
-
# source://rexml//lib/rexml/element.rb#
|
2929
|
+
# source://rexml//lib/rexml/element.rb#1975
|
2930
2930
|
def collect(xpath = T.unsafe(nil)); end
|
2931
2931
|
|
2932
2932
|
# :call-seq:
|
@@ -2970,7 +2970,7 @@ class REXML::Elements
|
|
2970
2970
|
# elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
|
2971
2971
|
# elements.delete('//nosuch') # => nil
|
2972
2972
|
#
|
2973
|
-
# source://rexml//lib/rexml/element.rb#
|
2973
|
+
# source://rexml//lib/rexml/element.rb#1812
|
2974
2974
|
def delete(element); end
|
2975
2975
|
|
2976
2976
|
# :call-seq:
|
@@ -2990,7 +2990,7 @@ class REXML::Elements
|
|
2990
2990
|
# elements.size # => 0
|
2991
2991
|
# elements.delete_all('//book') # => []
|
2992
2992
|
#
|
2993
|
-
# source://rexml//lib/rexml/element.rb#
|
2993
|
+
# source://rexml//lib/rexml/element.rb#1838
|
2994
2994
|
def delete_all(xpath); end
|
2995
2995
|
|
2996
2996
|
# :call-seq:
|
@@ -3021,7 +3021,7 @@ class REXML::Elements
|
|
3021
3021
|
# <book category='web'> ... </>
|
3022
3022
|
# <book category='web' cover='paperback'> ... </>
|
3023
3023
|
#
|
3024
|
-
# source://rexml//lib/rexml/element.rb#
|
3024
|
+
# source://rexml//lib/rexml/element.rb#1954
|
3025
3025
|
def each(xpath = T.unsafe(nil)); end
|
3026
3026
|
|
3027
3027
|
# :call-seq:
|
@@ -3036,7 +3036,7 @@ class REXML::Elements
|
|
3036
3036
|
#
|
3037
3037
|
# @return [Boolean]
|
3038
3038
|
#
|
3039
|
-
# source://rexml//lib/rexml/element.rb#
|
3039
|
+
# source://rexml//lib/rexml/element.rb#1742
|
3040
3040
|
def empty?; end
|
3041
3041
|
|
3042
3042
|
# :call-seq:
|
@@ -3053,7 +3053,7 @@ class REXML::Elements
|
|
3053
3053
|
# elements.index(ele_4) # => 3
|
3054
3054
|
# elements.index(ele_3) # => -1
|
3055
3055
|
#
|
3056
|
-
# source://rexml//lib/rexml/element.rb#
|
3056
|
+
# source://rexml//lib/rexml/element.rb#1760
|
3057
3057
|
def index(element); end
|
3058
3058
|
|
3059
3059
|
# :call-seq:
|
@@ -3133,7 +3133,7 @@ class REXML::Elements
|
|
3133
3133
|
# total += element.size
|
3134
3134
|
# end # => 26
|
3135
3135
|
#
|
3136
|
-
# source://rexml//lib/rexml/element.rb#
|
3136
|
+
# source://rexml//lib/rexml/element.rb#2060
|
3137
3137
|
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
|
3138
3138
|
|
3139
3139
|
# :call-seq:
|
@@ -3147,7 +3147,7 @@ class REXML::Elements
|
|
3147
3147
|
# elements = REXML::Elements.new(d.root)
|
3148
3148
|
# elements.parent == d.root # => true
|
3149
3149
|
#
|
3150
|
-
# source://rexml//lib/rexml/element.rb#
|
3150
|
+
# source://rexml//lib/rexml/element.rb#1610
|
3151
3151
|
def parent; end
|
3152
3152
|
|
3153
3153
|
# :call-seq:
|
@@ -3159,7 +3159,7 @@ class REXML::Elements
|
|
3159
3159
|
# d.root.elements.size # => 3 # Three elements.
|
3160
3160
|
# d.root.size # => 6 # Three elements plus three text nodes..
|
3161
3161
|
#
|
3162
|
-
# source://rexml//lib/rexml/element.rb#
|
3162
|
+
# source://rexml//lib/rexml/element.rb#2084
|
3163
3163
|
def size; end
|
3164
3164
|
|
3165
3165
|
# :call-seq:
|
@@ -3180,14 +3180,14 @@ class REXML::Elements
|
|
3180
3180
|
#
|
3181
3181
|
# elements.to_a('//c') # => [<c/>]
|
3182
3182
|
#
|
3183
|
-
# source://rexml//lib/rexml/element.rb#
|
3183
|
+
# source://rexml//lib/rexml/element.rb#2108
|
3184
3184
|
def to_a(xpath = T.unsafe(nil)); end
|
3185
3185
|
|
3186
3186
|
private
|
3187
3187
|
|
3188
3188
|
# Private helper class. Removes quotes from quoted strings
|
3189
3189
|
#
|
3190
|
-
# source://rexml//lib/rexml/element.rb#
|
3190
|
+
# source://rexml//lib/rexml/element.rb#2116
|
3191
3191
|
def literalize(name); end
|
3192
3192
|
end
|
3193
3193
|
|
@@ -3454,47 +3454,47 @@ end
|
|
3454
3454
|
# A Source that wraps an IO. See the Source class for method
|
3455
3455
|
# documentation
|
3456
3456
|
#
|
3457
|
-
# source://rexml//lib/rexml/source.rb#
|
3457
|
+
# source://rexml//lib/rexml/source.rb#182
|
3458
3458
|
class REXML::IOSource < ::REXML::Source
|
3459
3459
|
# block_size has been deprecated
|
3460
3460
|
#
|
3461
3461
|
# @return [IOSource] a new instance of IOSource
|
3462
3462
|
#
|
3463
|
-
# source://rexml//lib/rexml/source.rb#
|
3463
|
+
# source://rexml//lib/rexml/source.rb#186
|
3464
3464
|
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
3465
3465
|
|
3466
3466
|
# @return the current line in the source
|
3467
3467
|
#
|
3468
|
-
# source://rexml//lib/rexml/source.rb#
|
3468
|
+
# source://rexml//lib/rexml/source.rb#264
|
3469
3469
|
def current_line; end
|
3470
3470
|
|
3471
3471
|
# @return [Boolean]
|
3472
3472
|
#
|
3473
|
-
# source://rexml//lib/rexml/source.rb#
|
3473
|
+
# source://rexml//lib/rexml/source.rb#259
|
3474
3474
|
def empty?; end
|
3475
3475
|
|
3476
|
-
# source://rexml//lib/rexml/source.rb#
|
3476
|
+
# source://rexml//lib/rexml/source.rb#236
|
3477
3477
|
def ensure_buffer; end
|
3478
3478
|
|
3479
3479
|
# Note: When specifying a string for 'pattern', it must not include '>' except in the following formats:
|
3480
3480
|
# - ">"
|
3481
3481
|
# - "XXX>" (X is any string excluding '>')
|
3482
3482
|
#
|
3483
|
-
# source://rexml//lib/rexml/source.rb#
|
3483
|
+
# source://rexml//lib/rexml/source.rb#243
|
3484
3484
|
def match(pattern, cons = T.unsafe(nil)); end
|
3485
3485
|
|
3486
|
-
# source://rexml//lib/rexml/source.rb#
|
3486
|
+
# source://rexml//lib/rexml/source.rb#207
|
3487
3487
|
def read(term = T.unsafe(nil)); end
|
3488
3488
|
|
3489
|
-
# source://rexml//lib/rexml/source.rb#
|
3489
|
+
# source://rexml//lib/rexml/source.rb#218
|
3490
3490
|
def read_until(term); end
|
3491
3491
|
|
3492
3492
|
private
|
3493
3493
|
|
3494
|
-
# source://rexml//lib/rexml/source.rb#
|
3494
|
+
# source://rexml//lib/rexml/source.rb#306
|
3495
3495
|
def encoding_updated; end
|
3496
3496
|
|
3497
|
-
# source://rexml//lib/rexml/source.rb#
|
3497
|
+
# source://rexml//lib/rexml/source.rb#286
|
3498
3498
|
def readline(term = T.unsafe(nil)); end
|
3499
3499
|
end
|
3500
3500
|
|
@@ -3889,36 +3889,34 @@ end
|
|
3889
3889
|
#
|
3890
3890
|
# source://rexml//lib/rexml/parsers/baseparser.rb#40
|
3891
3891
|
class REXML::Parsers::BaseParser
|
3892
|
-
include ::REXML::Parsers::BaseParser::Private
|
3893
|
-
|
3894
3892
|
# @return [BaseParser] a new instance of BaseParser
|
3895
3893
|
#
|
3896
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3894
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#145
|
3897
3895
|
def initialize(source); end
|
3898
3896
|
|
3899
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3897
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#151
|
3900
3898
|
def add_listener(listener); end
|
3901
3899
|
|
3902
3900
|
# Returns true if there are no more events
|
3903
3901
|
#
|
3904
3902
|
# @return [Boolean]
|
3905
3903
|
#
|
3906
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3904
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#177
|
3907
3905
|
def empty?; end
|
3908
3906
|
|
3909
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3907
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#486
|
3910
3908
|
def entity(reference, entities); end
|
3911
3909
|
|
3912
3910
|
# Returns true if there are more events. Synonymous with !empty?
|
3913
3911
|
#
|
3914
3912
|
# @return [Boolean]
|
3915
3913
|
#
|
3916
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3914
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#182
|
3917
3915
|
def has_next?; end
|
3918
3916
|
|
3919
3917
|
# Escapes all possible entities
|
3920
3918
|
#
|
3921
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3919
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#497
|
3922
3920
|
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
3923
3921
|
|
3924
3922
|
# Peek at the +depth+ event in the stack. The first element on the stack
|
@@ -3928,59 +3926,59 @@ class REXML::Parsers::BaseParser
|
|
3928
3926
|
# event, so you can effectively pre-parse the entire document (pull the
|
3929
3927
|
# entire thing into memory) using this method.
|
3930
3928
|
#
|
3931
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3929
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#198
|
3932
3930
|
def peek(depth = T.unsafe(nil)); end
|
3933
3931
|
|
3934
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3932
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#167
|
3935
3933
|
def position; end
|
3936
3934
|
|
3937
3935
|
# Returns the next event. This is a +PullEvent+ object.
|
3938
3936
|
#
|
3939
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3937
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#213
|
3940
3938
|
def pull; end
|
3941
3939
|
|
3942
3940
|
# Returns the value of attribute source.
|
3943
3941
|
#
|
3944
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3942
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#155
|
3945
3943
|
def source; end
|
3946
3944
|
|
3947
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3945
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#157
|
3948
3946
|
def stream=(source); end
|
3949
3947
|
|
3950
3948
|
# Unescapes all possible entities
|
3951
3949
|
#
|
3952
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3950
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#513
|
3953
3951
|
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
3954
3952
|
|
3955
3953
|
# Push an event back on the head of the stream. This method
|
3956
3954
|
# has (theoretically) infinite depth.
|
3957
3955
|
#
|
3958
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3956
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#188
|
3959
3957
|
def unshift(token); end
|
3960
3958
|
|
3961
3959
|
private
|
3962
3960
|
|
3963
3961
|
# @return [Boolean]
|
3964
3962
|
#
|
3965
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3963
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#542
|
3966
3964
|
def need_source_encoding_update?(xml_declaration_encoding); end
|
3967
3965
|
|
3968
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3966
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#653
|
3969
3967
|
def parse_attributes(prefixes, curr_ns); end
|
3970
3968
|
|
3971
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3969
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#561
|
3972
3970
|
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
3973
3971
|
|
3974
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3972
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#589
|
3975
3973
|
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
3976
3974
|
|
3977
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3975
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#548
|
3978
3976
|
def parse_name(base_error_message); end
|
3979
3977
|
|
3980
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3978
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#627
|
3981
3979
|
def process_instruction(start_position); end
|
3982
3980
|
|
3983
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3981
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#223
|
3984
3982
|
def pull_event; end
|
3985
3983
|
end
|
3986
3984
|
|
@@ -3999,9 +3997,18 @@ module REXML::Parsers::BaseParser::Private; end
|
|
3999
3997
|
# source://rexml//lib/rexml/parsers/baseparser.rb#130
|
4000
3998
|
REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
|
4001
3999
|
|
4000
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#135
|
4001
|
+
REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4002
|
+
|
4003
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#136
|
4004
|
+
REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
|
4005
|
+
|
4002
4006
|
# source://rexml//lib/rexml/parsers/baseparser.rb#129
|
4003
4007
|
REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4004
4008
|
|
4009
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#137
|
4010
|
+
REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4011
|
+
|
4005
4012
|
# source://rexml//lib/rexml/parsers/baseparser.rb#134
|
4006
4013
|
REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4007
4014
|
|
@@ -4221,7 +4228,6 @@ end
|
|
4221
4228
|
# source://rexml//lib/rexml/source.rb#51
|
4222
4229
|
class REXML::Source
|
4223
4230
|
include ::REXML::Encoding
|
4224
|
-
include ::REXML::Source::Private
|
4225
4231
|
|
4226
4232
|
# Constructor
|
4227
4233
|
# value, overriding all encoding detection
|
@@ -4238,17 +4244,20 @@ class REXML::Source
|
|
4238
4244
|
# source://rexml//lib/rexml/source.rb#83
|
4239
4245
|
def buffer; end
|
4240
4246
|
|
4241
|
-
# source://rexml//lib/rexml/source.rb#
|
4247
|
+
# source://rexml//lib/rexml/source.rb#93
|
4242
4248
|
def buffer_encoding=(encoding); end
|
4243
4249
|
|
4244
4250
|
# @return the current line in the source
|
4245
4251
|
#
|
4246
|
-
# source://rexml//lib/rexml/source.rb#
|
4252
|
+
# source://rexml//lib/rexml/source.rb#142
|
4247
4253
|
def current_line; end
|
4248
4254
|
|
4255
|
+
# source://rexml//lib/rexml/source.rb#87
|
4256
|
+
def drop_parsed_content; end
|
4257
|
+
|
4249
4258
|
# @return [Boolean] true if the Source is exhausted
|
4250
4259
|
#
|
4251
|
-
# source://rexml//lib/rexml/source.rb#
|
4260
|
+
# source://rexml//lib/rexml/source.rb#137
|
4252
4261
|
def empty?; end
|
4253
4262
|
|
4254
4263
|
# Returns the value of attribute encoding.
|
@@ -4259,10 +4268,10 @@ class REXML::Source
|
|
4259
4268
|
# Inherited from Encoding
|
4260
4269
|
# Overridden to support optimized en/decoding
|
4261
4270
|
#
|
4262
|
-
# source://rexml//lib/rexml/source.rb#
|
4271
|
+
# source://rexml//lib/rexml/source.rb#99
|
4263
4272
|
def encoding=(enc); end
|
4264
4273
|
|
4265
|
-
# source://rexml//lib/rexml/source.rb#
|
4274
|
+
# source://rexml//lib/rexml/source.rb#117
|
4266
4275
|
def ensure_buffer; end
|
4267
4276
|
|
4268
4277
|
# The line number of the last consumed text
|
@@ -4270,36 +4279,39 @@ class REXML::Source
|
|
4270
4279
|
# source://rexml//lib/rexml/source.rb#54
|
4271
4280
|
def line; end
|
4272
4281
|
|
4273
|
-
# source://rexml//lib/rexml/source.rb#
|
4282
|
+
# source://rexml//lib/rexml/source.rb#120
|
4274
4283
|
def match(pattern, cons = T.unsafe(nil)); end
|
4275
4284
|
|
4276
|
-
# source://rexml//lib/rexml/source.rb#
|
4285
|
+
# source://rexml//lib/rexml/source.rb#128
|
4277
4286
|
def position; end
|
4278
4287
|
|
4279
|
-
# source://rexml//lib/rexml/source.rb#
|
4288
|
+
# source://rexml//lib/rexml/source.rb#132
|
4280
4289
|
def position=(pos); end
|
4281
4290
|
|
4282
|
-
# source://rexml//lib/rexml/source.rb#
|
4291
|
+
# source://rexml//lib/rexml/source.rb#104
|
4283
4292
|
def read(term = T.unsafe(nil)); end
|
4284
4293
|
|
4285
|
-
# source://rexml//lib/rexml/source.rb#
|
4294
|
+
# source://rexml//lib/rexml/source.rb#107
|
4286
4295
|
def read_until(term); end
|
4287
4296
|
|
4288
4297
|
private
|
4289
4298
|
|
4290
|
-
# source://rexml//lib/rexml/source.rb#
|
4299
|
+
# source://rexml//lib/rexml/source.rb#151
|
4291
4300
|
def detect_encoding; end
|
4292
4301
|
|
4293
|
-
# source://rexml//lib/rexml/source.rb#
|
4302
|
+
# source://rexml//lib/rexml/source.rb#169
|
4294
4303
|
def encoding_updated; end
|
4295
4304
|
end
|
4296
4305
|
|
4297
4306
|
# source://rexml//lib/rexml/source.rb#57
|
4298
4307
|
module REXML::Source::Private; end
|
4299
4308
|
|
4300
|
-
# source://rexml//lib/rexml/source.rb#
|
4309
|
+
# source://rexml//lib/rexml/source.rb#59
|
4301
4310
|
REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4302
4311
|
|
4312
|
+
# source://rexml//lib/rexml/source.rb#58
|
4313
|
+
REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer)
|
4314
|
+
|
4303
4315
|
# Represents text nodes in an XML document
|
4304
4316
|
#
|
4305
4317
|
# source://rexml//lib/rexml/text.rb#11
|