tsumanne 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +8 -0
  3. data/.mdlrc +6 -0
  4. data/.rubocop.yml +20 -12
  5. data/Dockerfile +24 -0
  6. data/README.md +0 -4
  7. data/Rakefile +19 -16
  8. data/exe/tsumanne +2 -1
  9. data/lib/tsumanne/api.rb +22 -21
  10. data/lib/tsumanne/cli.rb +153 -2
  11. data/lib/tsumanne/models/get_threads.rb +8 -3
  12. data/lib/tsumanne/models/register_thread.rb +5 -1
  13. data/lib/tsumanne/models/search_indexes.rb +7 -2
  14. data/lib/tsumanne/models/search_thread_from_uri.rb +14 -2
  15. data/lib/tsumanne/version.rb +1 -1
  16. data/mise.toml +42 -0
  17. data/sorbet/rbi/gems/.gitattributes +1 -0
  18. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +45 -79
  19. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
  20. data/sorbet/rbi/gems/{chef-utils@18.2.7.rbi → chef-utils@18.8.54.rbi} +1 -0
  21. data/sorbet/rbi/gems/{concurrent-ruby@1.2.2.rbi → concurrent-ruby@1.3.5.rbi} +1 -0
  22. data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.6.2.rbi} +183 -199
  23. data/sorbet/rbi/gems/docile@1.4.0.rbi +147 -147
  24. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +36 -26
  25. data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.19.4.rbi} +920 -251
  26. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +32 -63
  27. data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +896 -711
  28. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  29. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  30. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  31. data/sorbet/rbi/gems/{mdl@0.12.0.rbi → mdl@0.15.0.rbi} +109 -113
  32. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +35 -41
  33. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +147 -142
  34. data/sorbet/rbi/gems/{mixlib-shellout@3.2.7.rbi → mixlib-shellout@3.3.9.rbi} +127 -150
  35. data/sorbet/rbi/gems/netrc@0.11.0.rbi +45 -56
  36. data/sorbet/rbi/gems/optimist@3.2.1.rbi +895 -0
  37. data/sorbet/rbi/gems/parallel@1.28.0.rbi +270 -0
  38. data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
  39. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  40. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +48 -44
  41. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +101 -141
  42. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.4.2.rbi} +867 -761
  43. data/sorbet/rbi/gems/rbi@0.3.10.rbi +5520 -0
  44. data/sorbet/rbi/gems/rbs@4.0.2.rbi +6908 -0
  45. data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
  46. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  47. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.4.rbi} +1032 -908
  48. data/sorbet/rbi/gems/{rspec-core@3.12.2.rbi → rspec-core@3.13.6.rbi} +2860 -4206
  49. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +6108 -0
  50. data/sorbet/rbi/gems/{rspec-mocks@3.12.6.rbi → rspec-mocks@3.13.7.rbi} +1264 -1787
  51. data/sorbet/rbi/gems/rspec-support@3.13.6.rbi +1274 -0
  52. data/sorbet/rbi/gems/rspec@3.13.2.rbi +15 -0
  53. data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7212 -0
  54. data/sorbet/rbi/gems/rubocop-performance@1.26.1.rbi +3403 -0
  55. data/sorbet/rbi/gems/{rubocop-rake@0.6.0.rbi → rubocop-rake@0.7.1.rbi} +89 -103
  56. data/sorbet/rbi/gems/rubocop-rspec@3.9.0.rbi +7606 -0
  57. data/sorbet/rbi/gems/rubocop-sorbet@0.12.0.rbi +2448 -0
  58. data/sorbet/rbi/gems/rubocop@1.86.1.rbi +62232 -0
  59. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +326 -655
  60. data/sorbet/rbi/gems/rubydex@0.1.0.beta14.rbi +655 -0
  61. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +24 -158
  62. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +450 -606
  63. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +32 -166
  64. data/sorbet/rbi/gems/spoom@1.7.13.rbi +6151 -0
  65. data/sorbet/rbi/gems/{tapioca@0.11.8.rbi → tapioca@0.19.1.rbi} +1609 -1379
  66. data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.5.0.rbi} +1075 -1170
  67. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +1 -0
  68. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  69. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  70. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  71. metadata +69 -66
  72. data/.ruby-version +0 -1
  73. data/sorbet/rbi/gems/base64@0.1.1.rbi +0 -172
  74. data/sorbet/rbi/gems/ffi-compiler@1.0.1.rbi +0 -206
  75. data/sorbet/rbi/gems/ffi@1.15.5.rbi +0 -1994
  76. data/sorbet/rbi/gems/http-parser@1.2.3.rbi +0 -422
  77. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +0 -14237
  78. data/sorbet/rbi/gems/mhtml@0.1.6.rbi +0 -353
  79. data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -273
  80. data/sorbet/rbi/gems/parser@3.2.2.3.rbi +0 -7253
  81. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  82. data/sorbet/rbi/gems/rbi@0.0.17.rbi +0 -2967
  83. data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +0 -3749
  84. data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +0 -8100
  85. data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +0 -1609
  86. data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -82
  87. data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +0 -7144
  88. data/sorbet/rbi/gems/rubocop-capybara@2.18.0.rbi +0 -827
  89. data/sorbet/rbi/gems/rubocop-factory_bot@2.23.1.rbi +0 -812
  90. data/sorbet/rbi/gems/rubocop-performance@1.19.0.rbi +0 -3157
  91. data/sorbet/rbi/gems/rubocop-rspec@2.23.2.rbi +0 -7691
  92. data/sorbet/rbi/gems/rubocop-sorbet@0.7.3.rbi +0 -1226
  93. data/sorbet/rbi/gems/rubocop@1.56.2.rbi +0 -56541
  94. data/sorbet/rbi/gems/spoom@1.2.3.rbi +0 -3199
  95. data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +0 -22855
  96. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +0 -65
  97. data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
  98. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -425
  99. data/sorbet/rbi/gems/yard@0.9.34.rbi +0 -18219
@@ -1,9 +1,10 @@
1
- # typed: true
1
+ # typed: false
2
2
 
3
3
  # DO NOT EDIT MANUALLY
4
4
  # This is an autogenerated file for types exported from the `rexml` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem rexml`.
6
6
 
7
+
7
8
  # This class needs:
8
9
  # * Documentation
9
10
  # * Work! Not all types of attlists are intelligently parsed, so we just
@@ -16,7 +17,7 @@
16
17
  # AttlistDecls onto an intuitive Ruby interface, let me know. I'm desperate
17
18
  # for anything to make DTDs more palateable.
18
19
  #
19
- # source://rexml//lib/rexml/attlistdecl.rb#18
20
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:18
20
21
  class REXML::AttlistDecl < ::REXML::Child
21
22
  include ::Enumerable
22
23
 
@@ -26,42 +27,38 @@ class REXML::AttlistDecl < ::REXML::Child
26
27
  # Sorry, but for the foreseeable future, DTD support in REXML is pretty
27
28
  # weak on convenience. Have I mentioned how much I hate DTDs?
28
29
  #
29
- # @return [AttlistDecl] a new instance of AttlistDecl
30
- #
31
- # source://rexml//lib/rexml/attlistdecl.rb#29
30
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:29
32
31
  def initialize(source); end
33
32
 
34
33
  # Access the attlist attribute/value pairs.
35
34
  # value = attlist_decl[ attribute_name ]
36
35
  #
37
- # source://rexml//lib/rexml/attlistdecl.rb#38
36
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:38
38
37
  def [](key); end
39
38
 
40
39
  # Iterate over the key/value pairs:
41
40
  # attlist_decl.each { |attribute_name, attribute_value| ... }
42
41
  #
43
- # source://rexml//lib/rexml/attlistdecl.rb#50
42
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:50
44
43
  def each(&block); end
45
44
 
46
45
  # What is this? Got me.
47
46
  #
48
- # source://rexml//lib/rexml/attlistdecl.rb#22
47
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:22
49
48
  def element_name; end
50
49
 
51
50
  # Whether an attlist declaration includes the given attribute definition
52
51
  # if attlist_decl.include? "xmlns:foobar"
53
52
  #
54
- # @return [Boolean]
55
- #
56
- # source://rexml//lib/rexml/attlistdecl.rb#44
53
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:44
57
54
  def include?(key); end
58
55
 
59
- # source://rexml//lib/rexml/attlistdecl.rb#59
56
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:59
60
57
  def node_type; end
61
58
 
62
59
  # Write out exactly what we got in.
63
60
  #
64
- # source://rexml//lib/rexml/attlistdecl.rb#55
61
+ # pkg:gem/rexml#lib/rexml/attlistdecl.rb:55
65
62
  def write(out, indent = T.unsafe(nil)); end
66
63
  end
67
64
 
@@ -70,7 +67,7 @@ end
70
67
  # namespaces. General users of REXML will not interact with the
71
68
  # Attribute class much.
72
69
  #
73
- # source://rexml//lib/rexml/attribute.rb#10
70
+ # pkg:gem/rexml#lib/rexml/attribute.rb:10
74
71
  class REXML::Attribute
75
72
  include ::REXML::Node
76
73
  include ::REXML::XMLTokens
@@ -99,28 +96,29 @@ class REXML::Attribute
99
96
  # Attribute.new( "attr", "attr_value" )
100
97
  # Attribute.new( "attr", "attr_value", parent_element )
101
98
  #
102
- # @return [Attribute] a new instance of Attribute
103
- #
104
- # source://rexml//lib/rexml/attribute.rb#42
99
+ # pkg:gem/rexml#lib/rexml/attribute.rb:42
105
100
  def initialize(first, second = T.unsafe(nil), parent = T.unsafe(nil)); end
106
101
 
107
102
  # Returns true if other is an Attribute and has the same name and value,
108
103
  # false otherwise.
109
104
  #
110
- # source://rexml//lib/rexml/attribute.rb#106
105
+ # pkg:gem/rexml#lib/rexml/attribute.rb:106
111
106
  def ==(other); end
112
107
 
113
108
  # Returns a copy of this attribute
114
109
  #
115
- # source://rexml//lib/rexml/attribute.rb#163
110
+ # pkg:gem/rexml#lib/rexml/attribute.rb:161
116
111
  def clone; end
117
112
 
118
- # source://rexml//lib/rexml/attribute.rb#132
113
+ # pkg:gem/rexml#lib/rexml/attribute.rb:132
119
114
  def doctype; end
120
115
 
116
+ # pkg:gem/rexml#lib/rexml/attribute.rb:205
117
+ def document; end
118
+
121
119
  # The element to which this attribute belongs
122
120
  #
123
- # source://rexml//lib/rexml/attribute.rb#15
121
+ # pkg:gem/rexml#lib/rexml/attribute.rb:15
124
122
  def element; end
125
123
 
126
124
  # Sets the element of which this object is an attribute. Normally, this
@@ -128,15 +126,15 @@ class REXML::Attribute
128
126
  #
129
127
  # Returns this attribute
130
128
  #
131
- # source://rexml//lib/rexml/attribute.rb#171
129
+ # pkg:gem/rexml#lib/rexml/attribute.rb:169
132
130
  def element=(element); end
133
131
 
134
132
  # Creates (and returns) a hash from both the name and value
135
133
  #
136
- # source://rexml//lib/rexml/attribute.rb#111
134
+ # pkg:gem/rexml#lib/rexml/attribute.rb:111
137
135
  def hash; end
138
136
 
139
- # source://rexml//lib/rexml/attribute.rb#197
137
+ # pkg:gem/rexml#lib/rexml/attribute.rb:195
140
138
  def inspect; end
141
139
 
142
140
  # Returns the namespace URL, if defined, or nil otherwise
@@ -161,16 +159,16 @@ class REXML::Attribute
161
159
  # e.add_attribute("a", "b")
162
160
  # e.attribute("a").namespace # => ""
163
161
  #
164
- # source://rexml//lib/rexml/attribute.rb#95
162
+ # pkg:gem/rexml#lib/rexml/attribute.rb:95
165
163
  def namespace(arg = T.unsafe(nil)); end
166
164
 
167
- # source://rexml//lib/rexml/attribute.rb#193
165
+ # pkg:gem/rexml#lib/rexml/attribute.rb:191
168
166
  def node_type; end
169
167
 
170
168
  # The normalized value of this attribute. That is, the attribute with
171
169
  # entities intact.
172
170
  #
173
- # source://rexml//lib/rexml/attribute.rb#157
171
+ # pkg:gem/rexml#lib/rexml/attribute.rb:155
174
172
  def normalized=(new_normalized); end
175
173
 
176
174
  # Returns the namespace of the attribute.
@@ -183,19 +181,19 @@ class REXML::Attribute
183
181
  # a = Attribute.new( "x", "y" )
184
182
  # a.prefix # -> ""
185
183
  #
186
- # source://rexml//lib/rexml/attribute.rb#70
184
+ # pkg:gem/rexml#lib/rexml/attribute.rb:70
187
185
  def prefix; end
188
186
 
189
187
  # Removes this Attribute from the tree, and returns true if successful
190
188
  #
191
189
  # This method is usually not called directly.
192
190
  #
193
- # source://rexml//lib/rexml/attribute.rb#184
191
+ # pkg:gem/rexml#lib/rexml/attribute.rb:182
194
192
  def remove; end
195
193
 
196
194
  # Returns the attribute value, with entities replaced
197
195
  #
198
- # source://rexml//lib/rexml/attribute.rb#140
196
+ # pkg:gem/rexml#lib/rexml/attribute.rb:137
199
197
  def to_s; end
200
198
 
201
199
  # Returns this attribute out as XML source, expanding the name
@@ -205,28 +203,28 @@ class REXML::Attribute
205
203
  # b = Attribute.new( "ns:x", "y" )
206
204
  # b.to_string # -> "ns:x='y'"
207
205
  #
208
- # source://rexml//lib/rexml/attribute.rb#121
206
+ # pkg:gem/rexml#lib/rexml/attribute.rb:121
209
207
  def to_string; end
210
208
 
211
209
  # Returns the UNNORMALIZED value of this attribute. That is, entities
212
210
  # have been expanded to their values
213
211
  #
214
- # source://rexml//lib/rexml/attribute.rb#149
212
+ # pkg:gem/rexml#lib/rexml/attribute.rb:146
215
213
  def value; end
216
214
 
217
215
  # Writes this attribute (EG, puts 'key="value"' to the output)
218
216
  #
219
- # source://rexml//lib/rexml/attribute.rb#189
217
+ # pkg:gem/rexml#lib/rexml/attribute.rb:187
220
218
  def write(output, indent = T.unsafe(nil)); end
221
219
 
222
- # source://rexml//lib/rexml/attribute.rb#203
220
+ # pkg:gem/rexml#lib/rexml/attribute.rb:201
223
221
  def xpath; end
224
222
  end
225
223
 
226
224
  # A class that defines the set of Attributes of an Element and provides
227
225
  # operations for accessing elements in that set.
228
226
  #
229
- # source://rexml//lib/rexml/element.rb#2141
227
+ # pkg:gem/rexml#lib/rexml/element.rb:2131
230
228
  class REXML::Attributes < ::Hash
231
229
  # :call-seq:
232
230
  # new(element)
@@ -245,32 +243,10 @@ class REXML::Attributes < ::Hash
245
243
  # - +element.prefix+.
246
244
  # - +element.expanded_name+.
247
245
  #
248
- # @return [Attributes] a new instance of Attributes
249
- #
250
- # source://rexml//lib/rexml/element.rb#2160
246
+ # pkg:gem/rexml#lib/rexml/element.rb:2150
251
247
  def initialize(element); end
252
248
 
253
- # :call-seq:
254
- # add(attribute) -> attribute
255
- #
256
- # Adds attribute +attribute+, replacing the previous
257
- # attribute of the same name if it exists;
258
- # returns +attribute+:
259
- #
260
- # xml_string = <<-EOT
261
- # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
262
- # <ele foo:att='1' bar:att='2' att='&lt;'/>
263
- # </root>
264
- # EOT
265
- # d = REXML::Document.new(xml_string)
266
- # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
267
- # attrs = ele.attributes
268
- # attrs # => {"att"=>{"foo"=>foo:att='1', "bar"=>bar:att='2', ""=>att='&lt;'}}
269
- # attrs.add(REXML::Attribute.new('foo:att', '2')) # => foo:att='2'
270
- # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
271
- # attrs.include?('baz') # => true
272
- #
273
- # source://rexml//lib/rexml/element.rb#2537
249
+ # pkg:gem/rexml#lib/rexml/element.rb:2520
274
250
  def <<(attribute); end
275
251
 
276
252
  # :call-seq:
@@ -294,7 +270,7 @@ class REXML::Attributes < ::Hash
294
270
  #
295
271
  # Related: get_attribute (returns an \Attribute object).
296
272
  #
297
- # source://rexml//lib/rexml/element.rb#2185
273
+ # pkg:gem/rexml#lib/rexml/element.rb:2175
298
274
  def [](name); end
299
275
 
300
276
  # :call-seq:
@@ -320,7 +296,7 @@ class REXML::Attributes < ::Hash
320
296
  # attrs['baz:att'] = nil
321
297
  # attrs.include?('baz:att') # => false
322
298
  #
323
- # source://rexml//lib/rexml/element.rb#2369
299
+ # pkg:gem/rexml#lib/rexml/element.rb:2358
324
300
  def []=(name, value); end
325
301
 
326
302
  # :call-seq:
@@ -343,7 +319,7 @@ class REXML::Attributes < ::Hash
343
319
  # attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
344
320
  # attrs.include?('baz') # => true
345
321
  #
346
- # source://rexml//lib/rexml/element.rb#2537
322
+ # pkg:gem/rexml#lib/rexml/element.rb:2516
347
323
  def add(attribute); end
348
324
 
349
325
  # :call-seq:
@@ -374,7 +350,7 @@ class REXML::Attributes < ::Hash
374
350
  # attrs.delete(attr) # => <ele att='&lt;'/> # => <ele att='&lt;'/>
375
351
  # attrs.delete(attr) # => <ele att='&lt;'/> # => <ele/>
376
352
  #
377
- # source://rexml//lib/rexml/element.rb#2490
353
+ # pkg:gem/rexml#lib/rexml/element.rb:2471
378
354
  def delete(attribute); end
379
355
 
380
356
  # :call-seq:
@@ -393,7 +369,7 @@ class REXML::Attributes < ::Hash
393
369
  # attrs = ele.attributes
394
370
  # attrs.delete_all('att') # => [att='&lt;']
395
371
  #
396
- # source://rexml//lib/rexml/element.rb#2559
372
+ # pkg:gem/rexml#lib/rexml/element.rb:2538
397
373
  def delete_all(name); end
398
374
 
399
375
  # :call-seq:
@@ -418,7 +394,7 @@ class REXML::Attributes < ::Hash
418
394
  # ["bar:att", "2"]
419
395
  # ["att", "<"]
420
396
  #
421
- # source://rexml//lib/rexml/element.rb#2287
397
+ # pkg:gem/rexml#lib/rexml/element.rb:2276
422
398
  def each; end
423
399
 
424
400
  # :call-seq:
@@ -443,7 +419,7 @@ class REXML::Attributes < ::Hash
443
419
  # [REXML::Attribute, bar:att='2']
444
420
  # [REXML::Attribute, att='&lt;']
445
421
  #
446
- # source://rexml//lib/rexml/element.rb#2254
422
+ # pkg:gem/rexml#lib/rexml/element.rb:2243
447
423
  def each_attribute; end
448
424
 
449
425
  # :call-seq:
@@ -465,7 +441,7 @@ class REXML::Attributes < ::Hash
465
441
  # attrs.get_attribute('att') # => att='&lt;'
466
442
  # attrs.get_attribute('nosuch') # => nil
467
443
  #
468
- # source://rexml//lib/rexml/element.rb#2313
444
+ # pkg:gem/rexml#lib/rexml/element.rb:2302
469
445
  def get_attribute(name); end
470
446
 
471
447
  # :call-seq:
@@ -485,7 +461,7 @@ class REXML::Attributes < ::Hash
485
461
  # attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
486
462
  # attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
487
463
  #
488
- # source://rexml//lib/rexml/element.rb#2585
464
+ # pkg:gem/rexml#lib/rexml/element.rb:2564
489
465
  def get_attribute_ns(namespace, name); end
490
466
 
491
467
  # :call-seq:
@@ -502,7 +478,7 @@ class REXML::Attributes < ::Hash
502
478
  # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
503
479
  # ele.attributes.length # => 3
504
480
  #
505
- # source://rexml//lib/rexml/element.rb#2225
481
+ # pkg:gem/rexml#lib/rexml/element.rb:2214
506
482
  def length; end
507
483
 
508
484
  # :call-seq:
@@ -514,7 +490,7 @@ class REXML::Attributes < ::Hash
514
490
  # d = REXML::Document.new(xml_string)
515
491
  # d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
516
492
  #
517
- # source://rexml//lib/rexml/element.rb#2446
493
+ # pkg:gem/rexml#lib/rexml/element.rb:2426
518
494
  def namespaces; end
519
495
 
520
496
  # :call-seq:
@@ -528,24 +504,10 @@ class REXML::Attributes < ::Hash
528
504
  # d = REXML::Document.new(xml_string)
529
505
  # d.root.attributes.prefixes # => ["x", "y"]
530
506
  #
531
- # source://rexml//lib/rexml/element.rb#2421
507
+ # pkg:gem/rexml#lib/rexml/element.rb:2400
532
508
  def prefixes; end
533
509
 
534
- # :call-seq:
535
- # length
536
- #
537
- # Returns the count of attributes:
538
- #
539
- # xml_string = <<-EOT
540
- # <root xmlns:foo="http://foo" xmlns:bar="http://bar">
541
- # <ele foo:att='1' bar:att='2' att='&lt;'/>
542
- # </root>
543
- # EOT
544
- # d = REXML::Document.new(xml_string)
545
- # ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='&lt;'/>
546
- # ele.attributes.length # => 3
547
- #
548
- # source://rexml//lib/rexml/element.rb#2225
510
+ # pkg:gem/rexml#lib/rexml/element.rb:2219
549
511
  def size; end
550
512
 
551
513
  # :call-seq:
@@ -564,22 +526,20 @@ class REXML::Attributes < ::Hash
564
526
  # attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='&lt;']
565
527
  # attrs.first.class # => REXML::Attribute
566
528
  #
567
- # source://rexml//lib/rexml/element.rb#2207
529
+ # pkg:gem/rexml#lib/rexml/element.rb:2196
568
530
  def to_a; end
569
531
  end
570
532
 
571
- # source://rexml//lib/rexml/cdata.rb#5
533
+ # pkg:gem/rexml#lib/rexml/cdata.rb:5
572
534
  class REXML::CData < ::REXML::Text
573
- # Constructor. CData is data between <![CDATA[ ... ]]>
535
+ # Constructor. CData is data between <![CDATA[ ... ]]>
574
536
  #
575
537
  # _Examples_
576
538
  # CData.new( source )
577
539
  # CData.new( "Here is some CDATA" )
578
540
  # CData.new( "Some unprocessed data", respect_whitespace_TF, parent_element )
579
541
  #
580
- # @return [CData] a new instance of CData
581
- #
582
- # source://rexml//lib/rexml/cdata.rb#16
542
+ # pkg:gem/rexml#lib/rexml/cdata.rb:16
583
543
  def initialize(first, whitespace = T.unsafe(nil), parent = T.unsafe(nil)); end
584
544
 
585
545
  # Make a copy of this object
@@ -589,7 +549,7 @@ class REXML::CData < ::REXML::Text
589
549
  # d = c.clone
590
550
  # d.to_s # -> "Some text"
591
551
  #
592
- # source://rexml//lib/rexml/cdata.rb#26
552
+ # pkg:gem/rexml#lib/rexml/cdata.rb:26
593
553
  def clone; end
594
554
 
595
555
  # Returns the content of this CData object
@@ -598,10 +558,10 @@ class REXML::CData < ::REXML::Text
598
558
  # c = CData.new( "Some text" )
599
559
  # c.to_s # -> "Some text"
600
560
  #
601
- # source://rexml//lib/rexml/cdata.rb#35
561
+ # pkg:gem/rexml#lib/rexml/cdata.rb:35
602
562
  def to_s; end
603
563
 
604
- # source://rexml//lib/rexml/cdata.rb#39
564
+ # pkg:gem/rexml#lib/rexml/cdata.rb:39
605
565
  def value; end
606
566
 
607
567
  # == DEPRECATED
@@ -622,7 +582,7 @@ class REXML::CData < ::REXML::Text
622
582
  # c = CData.new( " Some text " )
623
583
  # c.write( $stdout ) #-> <![CDATA[ Some text ]]>
624
584
  #
625
- # source://rexml//lib/rexml/cdata.rb#60
585
+ # pkg:gem/rexml#lib/rexml/cdata.rb:60
626
586
  def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
627
587
  end
628
588
 
@@ -630,7 +590,7 @@ end
630
590
  # contains methods to support that. Most user code will not use this
631
591
  # class directly.
632
592
  #
633
- # source://rexml//lib/rexml/child.rb#9
593
+ # pkg:gem/rexml#lib/rexml/child.rb:9
634
594
  class REXML::Child
635
595
  include ::REXML::Node
636
596
 
@@ -640,23 +600,21 @@ class REXML::Child
640
600
  # if supplied, the parent of this child will be set to the
641
601
  # supplied value, and self will be added to the parent
642
602
  #
643
- # @return [Child] a new instance of Child
644
- #
645
- # source://rexml//lib/rexml/child.rb#18
603
+ # pkg:gem/rexml#lib/rexml/child.rb:18
646
604
  def initialize(parent = T.unsafe(nil)); end
647
605
 
648
606
  # This doesn't yet handle encodings
649
607
  #
650
- # source://rexml//lib/rexml/child.rb#91
608
+ # pkg:gem/rexml#lib/rexml/child.rb:90
651
609
  def bytes; end
652
610
 
653
611
  # Returns:: the document this child belongs to, or nil if this child
654
612
  # belongs to no document
655
613
  #
656
- # source://rexml//lib/rexml/child.rb#85
614
+ # pkg:gem/rexml#lib/rexml/child.rb:85
657
615
  def document; end
658
616
 
659
- # source://rexml//lib/rexml/node.rb#11
617
+ # pkg:gem/rexml#lib/rexml/child.rb:58
660
618
  def next_sibling; end
661
619
 
662
620
  # Sets the next sibling of this child. This can be used to insert a child
@@ -667,12 +625,10 @@ class REXML::Child
667
625
  # b.next_sibling = c
668
626
  # # => <a><b/><c/></a>
669
627
  #
670
- # source://rexml//lib/rexml/child.rb#68
628
+ # pkg:gem/rexml#lib/rexml/child.rb:68
671
629
  def next_sibling=(other); end
672
630
 
673
- # The Parent of this object
674
- #
675
- # source://rexml//lib/rexml/child.rb#11
631
+ # pkg:gem/rexml#lib/rexml/child.rb:11
676
632
  def parent; end
677
633
 
678
634
  # Sets the parent of this child to the supplied argument.
@@ -684,10 +640,10 @@ class REXML::Child
684
640
  # to the new parent.
685
641
  # Returns:: The parent added
686
642
  #
687
- # source://rexml//lib/rexml/child.rb#52
643
+ # pkg:gem/rexml#lib/rexml/child.rb:52
688
644
  def parent=(other); end
689
645
 
690
- # source://rexml//lib/rexml/node.rb#17
646
+ # pkg:gem/rexml#lib/rexml/child.rb:59
691
647
  def previous_sibling; end
692
648
 
693
649
  # Sets the previous sibling of this child. This can be used to insert a
@@ -698,14 +654,14 @@ class REXML::Child
698
654
  # b.previous_sibling = c
699
655
  # # => <a><b/><c/></a>
700
656
  #
701
- # source://rexml//lib/rexml/child.rb#79
657
+ # pkg:gem/rexml#lib/rexml/child.rb:79
702
658
  def previous_sibling=(other); end
703
659
 
704
660
  # Removes this child from the parent.
705
661
  #
706
662
  # Returns:: self
707
663
  #
708
- # source://rexml//lib/rexml/child.rb#37
664
+ # pkg:gem/rexml#lib/rexml/child.rb:37
709
665
  def remove; end
710
666
 
711
667
  # Replaces this object with another object. Basically, calls
@@ -713,60 +669,56 @@ class REXML::Child
713
669
  #
714
670
  # Returns:: self
715
671
  #
716
- # source://rexml//lib/rexml/child.rb#29
672
+ # pkg:gem/rexml#lib/rexml/child.rb:29
717
673
  def replace_with(child); end
718
674
  end
719
675
 
720
676
  # Represents an XML comment; that is, text between \<!-- ... -->
721
677
  #
722
- # source://rexml//lib/rexml/comment.rb#7
678
+ # pkg:gem/rexml#lib/rexml/comment.rb:7
723
679
  class REXML::Comment < ::REXML::Child
724
680
  include ::Comparable
725
681
 
726
682
  # Constructor. The first argument can be one of three types:
683
+ # @param first If String, the contents of this comment are set to the
727
684
  # argument. If Comment, the argument is duplicated. If
728
685
  # Source, the argument is scanned for a comment.
686
+ # @param second If the first argument is a Source, this argument
729
687
  # should be nil, not supplied, or a Parent to be set as the parent
730
688
  # of this object
731
689
  #
732
- # @param first If String, the contents of this comment are set to the
733
- # @param second If the first argument is a Source, this argument
734
- # @return [Comment] a new instance of Comment
735
- #
736
- # source://rexml//lib/rexml/comment.rb#24
690
+ # pkg:gem/rexml#lib/rexml/comment.rb:24
737
691
  def initialize(first, second = T.unsafe(nil)); end
738
692
 
739
693
  # Compares this Comment to another; the contents of the comment are used
740
694
  # in the comparison.
741
695
  #
742
- # source://rexml//lib/rexml/comment.rb#63
696
+ # pkg:gem/rexml#lib/rexml/comment.rb:63
743
697
  def <=>(other); end
744
698
 
745
699
  # Compares this Comment to another; the contents of the comment are used
746
700
  # in the comparison.
747
701
  #
748
- # source://rexml//lib/rexml/comment.rb#70
702
+ # pkg:gem/rexml#lib/rexml/comment.rb:70
749
703
  def ==(other); end
750
704
 
751
- # source://rexml//lib/rexml/comment.rb#33
705
+ # pkg:gem/rexml#lib/rexml/comment.rb:33
752
706
  def clone; end
753
707
 
754
- # source://rexml//lib/rexml/comment.rb#75
708
+ # pkg:gem/rexml#lib/rexml/comment.rb:75
755
709
  def node_type; end
756
710
 
757
711
  # The content text
758
712
  #
759
- # source://rexml//lib/rexml/comment.rb#14
713
+ # pkg:gem/rexml#lib/rexml/comment.rb:14
760
714
  def string; end
761
715
 
762
716
  # The content text
763
717
  #
764
- # source://rexml//lib/rexml/comment.rb#14
718
+ # pkg:gem/rexml#lib/rexml/comment.rb:14
765
719
  def string=(_arg0); end
766
720
 
767
- # The content text
768
- #
769
- # source://rexml//lib/rexml/comment.rb#14
721
+ # pkg:gem/rexml#lib/rexml/comment.rb:58
770
722
  def to_s; end
771
723
 
772
724
  # == DEPRECATED
@@ -783,30 +735,28 @@ class REXML::Comment < ::REXML::Child
783
735
  # ie_hack::
784
736
  # Needed for conformity to the child API, but not used by this class.
785
737
  #
786
- # source://rexml//lib/rexml/comment.rb#50
738
+ # pkg:gem/rexml#lib/rexml/comment.rb:50
787
739
  def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
788
740
  end
789
741
 
790
- # source://rexml//lib/rexml/xpath_parser.rb#11
742
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:11
791
743
  module REXML::DClonable; end
792
744
 
793
745
  # This is an abstract class. You never use this directly; it serves as a
794
746
  # parent class for the specific declarations.
795
747
  #
796
- # source://rexml//lib/rexml/doctype.rb#242
748
+ # pkg:gem/rexml#lib/rexml/doctype.rb:238
797
749
  class REXML::Declaration < ::REXML::Child
798
- # @return [Declaration] a new instance of Declaration
799
- #
800
- # source://rexml//lib/rexml/doctype.rb#243
750
+ # pkg:gem/rexml#lib/rexml/doctype.rb:239
801
751
  def initialize(src); end
802
752
 
803
- # source://rexml//lib/rexml/doctype.rb#248
753
+ # pkg:gem/rexml#lib/rexml/doctype.rb:244
804
754
  def to_s; end
805
755
 
806
756
  # == DEPRECATED
807
757
  # See REXML::Formatters
808
758
  #
809
- # source://rexml//lib/rexml/doctype.rb#255
759
+ # pkg:gem/rexml#lib/rexml/doctype.rb:251
810
760
  def write(output, indent); end
811
761
  end
812
762
 
@@ -814,7 +764,7 @@ end
814
764
  # ... >. DOCTYPES can be used to declare the DTD of a document, as well as
815
765
  # being used to declare entities used in the document.
816
766
  #
817
- # source://rexml//lib/rexml/doctype.rb#51
767
+ # pkg:gem/rexml#lib/rexml/doctype.rb:51
818
768
  class REXML::DocType < ::REXML::Parent
819
769
  include ::REXML::XMLTokens
820
770
 
@@ -831,54 +781,52 @@ class REXML::DocType < ::REXML::Parent
831
781
  #
832
782
  # is _deprecated_. Do not use it. It will probably disappear.
833
783
  #
834
- # @return [DocType] a new instance of DocType
835
- #
836
- # source://rexml//lib/rexml/doctype.rb#80
784
+ # pkg:gem/rexml#lib/rexml/doctype.rb:80
837
785
  def initialize(first, parent = T.unsafe(nil)); end
838
786
 
839
- # source://rexml//lib/rexml/doctype.rb#185
787
+ # pkg:gem/rexml#lib/rexml/doctype.rb:181
840
788
  def add(child); end
841
789
 
842
- # source://rexml//lib/rexml/doctype.rb#125
790
+ # pkg:gem/rexml#lib/rexml/doctype.rb:125
843
791
  def attribute_of(element, attribute); end
844
792
 
845
- # source://rexml//lib/rexml/doctype.rb#115
793
+ # pkg:gem/rexml#lib/rexml/doctype.rb:115
846
794
  def attributes_of(element); end
847
795
 
848
- # source://rexml//lib/rexml/doctype.rb#135
796
+ # pkg:gem/rexml#lib/rexml/doctype.rb:135
849
797
  def clone; end
850
798
 
851
- # source://rexml//lib/rexml/doctype.rb#173
799
+ # pkg:gem/rexml#lib/rexml/doctype.rb:173
852
800
  def context; end
853
801
 
854
802
  # name is the name of the doctype
855
803
  # external_id is the referenced DTD, if given
856
804
  #
857
- # source://rexml//lib/rexml/doctype.rb#66
805
+ # pkg:gem/rexml#lib/rexml/doctype.rb:66
858
806
  def entities; end
859
807
 
860
- # source://rexml//lib/rexml/doctype.rb#181
808
+ # pkg:gem/rexml#lib/rexml/doctype.rb:177
861
809
  def entity(name); end
862
810
 
863
811
  # name is the name of the doctype
864
812
  # external_id is the referenced DTD, if given
865
813
  #
866
- # source://rexml//lib/rexml/doctype.rb#66
814
+ # pkg:gem/rexml#lib/rexml/doctype.rb:66
867
815
  def external_id; end
868
816
 
869
817
  # name is the name of the doctype
870
818
  # external_id is the referenced DTD, if given
871
819
  #
872
- # source://rexml//lib/rexml/doctype.rb#66
820
+ # pkg:gem/rexml#lib/rexml/doctype.rb:66
873
821
  def name; end
874
822
 
875
823
  # name is the name of the doctype
876
824
  # external_id is the referenced DTD, if given
877
825
  #
878
- # source://rexml//lib/rexml/doctype.rb#66
826
+ # pkg:gem/rexml#lib/rexml/doctype.rb:66
879
827
  def namespaces; end
880
828
 
881
- # source://rexml//lib/rexml/doctype.rb#111
829
+ # pkg:gem/rexml#lib/rexml/doctype.rb:111
882
830
  def node_type; end
883
831
 
884
832
  # Retrieves a named notation. Only notations declared in the internal
@@ -886,7 +834,7 @@ class REXML::DocType < ::REXML::Parent
886
834
  #
887
835
  # Method contributed by Henrik Martensson
888
836
  #
889
- # source://rexml//lib/rexml/doctype.rb#229
837
+ # pkg:gem/rexml#lib/rexml/doctype.rb:225
890
838
  def notation(name); end
891
839
 
892
840
  # This method returns a list of notations that have been declared in the
@@ -895,7 +843,7 @@ class REXML::DocType < ::REXML::Parent
895
843
  #
896
844
  # Method contributed by Henrik Martensson
897
845
  #
898
- # source://rexml//lib/rexml/doctype.rb#221
846
+ # pkg:gem/rexml#lib/rexml/doctype.rb:217
899
847
  def notations; end
900
848
 
901
849
  # This method retrieves the public identifier identifying the document's
@@ -903,14 +851,14 @@ class REXML::DocType < ::REXML::Parent
903
851
  #
904
852
  # Method contributed by Henrik Martensson
905
853
  #
906
- # source://rexml//lib/rexml/doctype.rb#195
854
+ # pkg:gem/rexml#lib/rexml/doctype.rb:191
907
855
  def public; end
908
856
 
909
857
  # This method retrieves the system identifier identifying the document's DTD
910
858
  #
911
859
  # Method contributed by Henrik Martensson
912
860
  #
913
- # source://rexml//lib/rexml/doctype.rb#207
861
+ # pkg:gem/rexml#lib/rexml/doctype.rb:203
914
862
  def system; end
915
863
 
916
864
  # output::
@@ -924,7 +872,7 @@ class REXML::DocType < ::REXML::Parent
924
872
  # ie_hack::
925
873
  # Ignored
926
874
  #
927
- # source://rexml//lib/rexml/doctype.rb#149
875
+ # pkg:gem/rexml#lib/rexml/doctype.rb:149
928
876
  def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
929
877
  end
930
878
 
@@ -946,7 +894,7 @@ end
946
894
  # and in particular, the
947
895
  # {tasks page for documents}[../doc/rexml/tasks/tocs/document_toc_rdoc.html].
948
896
  #
949
- # source://rexml//lib/rexml/document.rb#35
897
+ # pkg:gem/rexml#lib/rexml/document.rb:35
950
898
  class REXML::Document < ::REXML::Element
951
899
  # :call-seq:
952
900
  # new(string = nil, context = {}) -> new_document
@@ -998,46 +946,10 @@ class REXML::Document < ::REXML::Element
998
946
  # d = REXML::Document.new(xml_string, context)
999
947
  # d.context # => {:raw=>:all, :compress_whitespace=>:all}
1000
948
  #
1001
- # @return [Document] a new instance of Document
1002
- #
1003
- # source://rexml//lib/rexml/document.rb#92
949
+ # pkg:gem/rexml#lib/rexml/document.rb:92
1004
950
  def initialize(source = T.unsafe(nil), context = T.unsafe(nil)); end
1005
951
 
1006
- # :call-seq:
1007
- # add(xml_decl) -> self
1008
- # add(doc_type) -> self
1009
- # add(object) -> self
1010
- #
1011
- # Adds an object to the document; returns +self+.
1012
- #
1013
- # When argument +xml_decl+ is given,
1014
- # it must be an REXML::XMLDecl object,
1015
- # which becomes the XML declaration for the document,
1016
- # replacing the previous XML declaration if any:
1017
- #
1018
- # d = REXML::Document.new
1019
- # d.xml_decl.to_s # => ""
1020
- # d.add(REXML::XMLDecl.new('2.0'))
1021
- # d.xml_decl.to_s # => "<?xml version='2.0'?>"
1022
- #
1023
- # When argument +doc_type+ is given,
1024
- # it must be an REXML::DocType object,
1025
- # which becomes the document type for the document,
1026
- # replacing the previous document type, if any:
1027
- #
1028
- # d = REXML::Document.new
1029
- # d.doctype.to_s # => ""
1030
- # d.add(REXML::DocType.new('foo'))
1031
- # d.doctype.to_s # => "<!DOCTYPE foo>"
1032
- #
1033
- # When argument +object+ (not an REXML::XMLDecl or REXML::DocType object)
1034
- # is given it is added as the last child:
1035
- #
1036
- # d = REXML::Document.new
1037
- # d.add(REXML::Element.new('foo'))
1038
- # d.to_s # => "<foo/>"
1039
- #
1040
- # source://rexml//lib/rexml/document.rb#170
952
+ # pkg:gem/rexml#lib/rexml/document.rb:205
1041
953
  def <<(child); end
1042
954
 
1043
955
  # :call-seq:
@@ -1074,7 +986,7 @@ class REXML::Document < ::REXML::Element
1074
986
  # d.add(REXML::Element.new('foo'))
1075
987
  # d.to_s # => "<foo/>"
1076
988
  #
1077
- # source://rexml//lib/rexml/document.rb#170
989
+ # pkg:gem/rexml#lib/rexml/document.rb:174
1078
990
  def add(child); end
1079
991
 
1080
992
  # :call-seq:
@@ -1084,7 +996,7 @@ class REXML::Document < ::REXML::Element
1084
996
  #
1085
997
  # REXML::Element.add_element(name_or_element, attributes)
1086
998
  #
1087
- # source://rexml//lib/rexml/document.rb#209
999
+ # pkg:gem/rexml#lib/rexml/document.rb:213
1088
1000
  def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end
1089
1001
 
1090
1002
  # :call-seq:
@@ -1093,7 +1005,7 @@ class REXML::Document < ::REXML::Element
1093
1005
  # Returns the new document resulting from executing
1094
1006
  # <tt>Document.new(self)</tt>. See Document.new.
1095
1007
  #
1096
- # source://rexml//lib/rexml/document.rb#120
1008
+ # pkg:gem/rexml#lib/rexml/document.rb:124
1097
1009
  def clone; end
1098
1010
 
1099
1011
  # :call-seq:
@@ -1106,10 +1018,10 @@ class REXML::Document < ::REXML::Element
1106
1018
  # d = REXML::Document.new('')
1107
1019
  # d.doctype.class # => nil
1108
1020
  #
1109
- # source://rexml//lib/rexml/document.rb#241
1021
+ # pkg:gem/rexml#lib/rexml/document.rb:245
1110
1022
  def doctype; end
1111
1023
 
1112
- # source://rexml//lib/rexml/document.rb#442
1024
+ # pkg:gem/rexml#lib/rexml/document.rb:448
1113
1025
  def document; end
1114
1026
 
1115
1027
  # :call-seq:
@@ -1122,30 +1034,30 @@ class REXML::Document < ::REXML::Element
1122
1034
  # d = REXML::Document.new('')
1123
1035
  # d.encoding # => "UTF-8"
1124
1036
  #
1125
- # source://rexml//lib/rexml/document.rb#290
1037
+ # pkg:gem/rexml#lib/rexml/document.rb:294
1126
1038
  def encoding; end
1127
1039
 
1128
- # Returns the value of attribute entity_expansion_count.
1129
- #
1130
- # source://rexml//lib/rexml/document.rb#433
1040
+ # pkg:gem/rexml#lib/rexml/document.rb:437
1131
1041
  def entity_expansion_count; end
1132
1042
 
1043
+ # pkg:gem/rexml#lib/rexml/document.rb:438
1044
+ def entity_expansion_limit=(_arg0); end
1045
+
1046
+ # pkg:gem/rexml#lib/rexml/document.rb:439
1047
+ def entity_expansion_text_limit; end
1048
+
1049
+ # pkg:gem/rexml#lib/rexml/document.rb:439
1050
+ def entity_expansion_text_limit=(_arg0); end
1051
+
1133
1052
  # :call-seq:
1134
1053
  # expanded_name -> empty_string
1135
1054
  #
1136
1055
  # Returns an empty string.
1137
1056
  #
1138
- # source://rexml//lib/rexml/document.rb#129
1057
+ # pkg:gem/rexml#lib/rexml/document.rb:133
1139
1058
  def expanded_name; end
1140
1059
 
1141
- # :call-seq:
1142
- # expanded_name -> empty_string
1143
- #
1144
- # Returns an empty string.
1145
- # d = doc_type
1146
- # d ? d.name : "UNDEFINED"
1147
- #
1148
- # source://rexml//lib/rexml/document.rb#129
1060
+ # pkg:gem/rexml#lib/rexml/document.rb:138
1149
1061
  def name; end
1150
1062
 
1151
1063
  # :call-seq:
@@ -1153,10 +1065,10 @@ class REXML::Document < ::REXML::Element
1153
1065
  #
1154
1066
  # Returns the symbol +:document+.
1155
1067
  #
1156
- # source://rexml//lib/rexml/document.rb#110
1068
+ # pkg:gem/rexml#lib/rexml/document.rb:114
1157
1069
  def node_type; end
1158
1070
 
1159
- # source://rexml//lib/rexml/document.rb#435
1071
+ # pkg:gem/rexml#lib/rexml/document.rb:441
1160
1072
  def record_entity_expansion; end
1161
1073
 
1162
1074
  # :call-seq:
@@ -1169,7 +1081,7 @@ class REXML::Document < ::REXML::Element
1169
1081
  # d = REXML::Document.new('')
1170
1082
  # d.root # => nil
1171
1083
  #
1172
- # source://rexml//lib/rexml/document.rb#225
1084
+ # pkg:gem/rexml#lib/rexml/document.rb:229
1173
1085
  def root; end
1174
1086
 
1175
1087
  # :call-seq:
@@ -1183,9 +1095,7 @@ class REXML::Document < ::REXML::Element
1183
1095
  # d = REXML::Document.new('')
1184
1096
  # d.stand_alone? # => nil
1185
1097
  #
1186
- # @return [Boolean]
1187
- #
1188
- # source://rexml//lib/rexml/document.rb#305
1098
+ # pkg:gem/rexml#lib/rexml/document.rb:309
1189
1099
  def stand_alone?; end
1190
1100
 
1191
1101
  # :call-seq:
@@ -1199,12 +1109,12 @@ class REXML::Document < ::REXML::Element
1199
1109
  # d = REXML::Document.new('')
1200
1110
  # d.version # => "1.0"
1201
1111
  #
1202
- # source://rexml//lib/rexml/document.rb#275
1112
+ # pkg:gem/rexml#lib/rexml/document.rb:279
1203
1113
  def version; end
1204
1114
 
1205
1115
  # :call-seq:
1206
- # doc.write(output=$stdout, indent=-1, transtive=false, ie_hack=false, encoding=nil)
1207
- # doc.write(options={:output => $stdout, :indent => -1, :transtive => false, :ie_hack => false, :encoding => nil})
1116
+ # doc.write(output=$stdout, indent=-1, transitive=false, ie_hack=false, encoding=nil)
1117
+ # doc.write(options={:output => $stdout, :indent => -1, :transitive => false, :ie_hack => false, :encoding => nil})
1208
1118
  #
1209
1119
  # Write the XML tree out, optionally with indent. This writes out the
1210
1120
  # entire XML document, including XML declarations, doctype declarations,
@@ -1258,7 +1168,7 @@ class REXML::Document < ::REXML::Element
1258
1168
  # instead of encoding in XML declaration.
1259
1169
  # Defaults to nil. It means encoding in XML declaration is used.
1260
1170
  #
1261
- # source://rexml//lib/rexml/document.rb#365
1171
+ # pkg:gem/rexml#lib/rexml/document.rb:369
1262
1172
  def write(*arguments); end
1263
1173
 
1264
1174
  # :call-seq:
@@ -1274,44 +1184,56 @@ class REXML::Document < ::REXML::Element
1274
1184
  # d.xml_decl.class # => REXML::XMLDecl
1275
1185
  # d.xml_decl.to_s # => ""
1276
1186
  #
1277
- # source://rexml//lib/rexml/document.rb#258
1187
+ # pkg:gem/rexml#lib/rexml/document.rb:262
1278
1188
  def xml_decl; end
1279
1189
 
1280
1190
  private
1281
1191
 
1282
- # source://rexml//lib/rexml/document.rb#447
1192
+ # pkg:gem/rexml#lib/rexml/document.rb:467
1283
1193
  def build(source); end
1284
1194
 
1195
+ # New document level cache is created and available in this block.
1196
+ # This API is thread unsafe. Users can't change this document in this block.
1197
+ #
1198
+ # pkg:gem/rexml#lib/rexml/document.rb:458
1199
+ def enable_cache; end
1200
+
1201
+ # pkg:gem/rexml#lib/rexml/document.rb:454
1202
+ def namespaces_cache; end
1203
+
1204
+ # pkg:gem/rexml#lib/rexml/document.rb:454
1205
+ def namespaces_cache=(_arg0); end
1206
+
1285
1207
  class << self
1286
1208
  # Get the entity expansion limit. By default the limit is set to 10000.
1287
1209
  #
1288
1210
  # Deprecated. Use REXML::Security.entity_expansion_limit= instead.
1289
1211
  #
1290
- # source://rexml//lib/rexml/document.rb#415
1212
+ # pkg:gem/rexml#lib/rexml/document.rb:419
1291
1213
  def entity_expansion_limit; end
1292
1214
 
1293
1215
  # Set the entity expansion limit. By default the limit is set to 10000.
1294
1216
  #
1295
1217
  # Deprecated. Use REXML::Security.entity_expansion_limit= instead.
1296
1218
  #
1297
- # source://rexml//lib/rexml/document.rb#408
1219
+ # pkg:gem/rexml#lib/rexml/document.rb:412
1298
1220
  def entity_expansion_limit=(val); end
1299
1221
 
1300
1222
  # Get the entity expansion limit. By default the limit is set to 10240.
1301
1223
  #
1302
1224
  # Deprecated. Use REXML::Security.entity_expansion_text_limit instead.
1303
1225
  #
1304
- # source://rexml//lib/rexml/document.rb#429
1226
+ # pkg:gem/rexml#lib/rexml/document.rb:433
1305
1227
  def entity_expansion_text_limit; end
1306
1228
 
1307
1229
  # Set the entity expansion limit. By default the limit is set to 10240.
1308
1230
  #
1309
1231
  # Deprecated. Use REXML::Security.entity_expansion_text_limit= instead.
1310
1232
  #
1311
- # source://rexml//lib/rexml/document.rb#422
1233
+ # pkg:gem/rexml#lib/rexml/document.rb:426
1312
1234
  def entity_expansion_text_limit=(val); end
1313
1235
 
1314
- # source://rexml//lib/rexml/document.rb#401
1236
+ # pkg:gem/rexml#lib/rexml/document.rb:405
1315
1237
  def parse_stream(source, listener); end
1316
1238
  end
1317
1239
  end
@@ -1577,7 +1499,7 @@ end
1577
1499
  # #attributes:: Returns the REXML::Attributes object for the element.
1578
1500
  # #context:: Returns or sets the context hash for the element.
1579
1501
  #
1580
- # source://rexml//lib/rexml/element.rb#279
1502
+ # pkg:gem/rexml#lib/rexml/element.rb:271
1581
1503
  class REXML::Element < ::REXML::Parent
1582
1504
  include ::REXML::XMLTokens
1583
1505
  include ::REXML::Namespace
@@ -1618,9 +1540,7 @@ class REXML::Element < ::REXML::Parent
1618
1540
  # e = REXML::Element.new('foo', nil, {raw: :all})
1619
1541
  # e.context # => {:raw=>:all}
1620
1542
  #
1621
- # @return [Element] a new instance of Element
1622
- #
1623
- # source://rexml//lib/rexml/element.rb#327
1543
+ # pkg:gem/rexml#lib/rexml/element.rb:319
1624
1544
  def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
1625
1545
 
1626
1546
  # :call-seq:
@@ -1662,7 +1582,7 @@ class REXML::Element < ::REXML::Parent
1662
1582
  # root[:attr] # => "value"
1663
1583
  # root[:nosuch] # => nil
1664
1584
  #
1665
- # source://rexml//lib/rexml/element.rb#1245
1585
+ # pkg:gem/rexml#lib/rexml/element.rb:1238
1666
1586
  def [](name_or_index); end
1667
1587
 
1668
1588
  # :call-seq:
@@ -1691,7 +1611,7 @@ class REXML::Element < ::REXML::Parent
1691
1611
  # e.add_attribute(a) # => attr='VALUE'
1692
1612
  # e['attr'] # => "VALUE"
1693
1613
  #
1694
- # source://rexml//lib/rexml/element.rb#1349
1614
+ # pkg:gem/rexml#lib/rexml/element.rb:1336
1695
1615
  def add_attribute(key, value = T.unsafe(nil)); end
1696
1616
 
1697
1617
  # :call-seq:
@@ -1717,7 +1637,7 @@ class REXML::Element < ::REXML::Parent
1717
1637
  # a = [['foo' => 'bar'], ['baz' => 'bat']]
1718
1638
  # e.add_attributes(a)
1719
1639
  #
1720
- # source://rexml//lib/rexml/element.rb#1380
1640
+ # pkg:gem/rexml#lib/rexml/element.rb:1367
1721
1641
  def add_attributes(hash); end
1722
1642
 
1723
1643
  # :call-seq:
@@ -1754,7 +1674,7 @@ class REXML::Element < ::REXML::Parent
1754
1674
  # e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
1755
1675
  # e0[1] # => <bar bat='0' bam='1'/>
1756
1676
  #
1757
- # source://rexml//lib/rexml/element.rb#731
1677
+ # pkg:gem/rexml#lib/rexml/element.rb:725
1758
1678
  def add_element(element, attrs = T.unsafe(nil)); end
1759
1679
 
1760
1680
  # :call-seq:
@@ -1775,7 +1695,7 @@ class REXML::Element < ::REXML::Parent
1775
1695
  # e.add_namespace('baz', 'bat')
1776
1696
  # e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
1777
1697
  #
1778
- # source://rexml//lib/rexml/element.rb#654
1698
+ # pkg:gem/rexml#lib/rexml/element.rb:648
1779
1699
  def add_namespace(prefix, uri = T.unsafe(nil)); end
1780
1700
 
1781
1701
  # :call-seq:
@@ -1817,7 +1737,7 @@ class REXML::Element < ::REXML::Parent
1817
1737
  # a.add_text(REXML::Text.new('baz'))
1818
1738
  # a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
1819
1739
  #
1820
- # source://rexml//lib/rexml/element.rb#1146
1740
+ # pkg:gem/rexml#lib/rexml/element.rb:1139
1821
1741
  def add_text(text); end
1822
1742
 
1823
1743
  # :call-seq:
@@ -1849,13 +1769,13 @@ class REXML::Element < ::REXML::Parent
1849
1769
  # document.root.attribute("x") # => x='x'
1850
1770
  # document.root.attribute("x", "a") # => a:x='a:x'
1851
1771
  #
1852
- # source://rexml//lib/rexml/element.rb#1286
1772
+ # pkg:gem/rexml#lib/rexml/element.rb:1279
1853
1773
  def attribute(name, namespace = T.unsafe(nil)); end
1854
1774
 
1855
1775
  # Mechanisms for accessing attributes and child elements of this
1856
1776
  # element.
1857
1777
  #
1858
- # source://rexml//lib/rexml/element.rb#286
1778
+ # pkg:gem/rexml#lib/rexml/element.rb:278
1859
1779
  def attributes; end
1860
1780
 
1861
1781
  # :call-seq:
@@ -1874,7 +1794,7 @@ class REXML::Element < ::REXML::Parent
1874
1794
  # cds.frozen? # => true
1875
1795
  # cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
1876
1796
  #
1877
- # source://rexml//lib/rexml/element.rb#1424
1797
+ # pkg:gem/rexml#lib/rexml/element.rb:1411
1878
1798
  def cdatas; end
1879
1799
 
1880
1800
  # :call-seq:
@@ -1887,7 +1807,7 @@ class REXML::Element < ::REXML::Parent
1887
1807
  # e.add_attributes({'bar' => 0, 'baz' => 1})
1888
1808
  # e.clone # => <foo bar='0' baz='1'/>
1889
1809
  #
1890
- # source://rexml//lib/rexml/element.rb#391
1810
+ # pkg:gem/rexml#lib/rexml/element.rb:383
1891
1811
  def clone; end
1892
1812
 
1893
1813
  # :call-seq:
@@ -1907,19 +1827,19 @@ class REXML::Element < ::REXML::Parent
1907
1827
  # cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
1908
1828
  # cs.map {|c| c.to_s } # => ["foo", "bar"]
1909
1829
  #
1910
- # source://rexml//lib/rexml/element.rb#1445
1830
+ # pkg:gem/rexml#lib/rexml/element.rb:1432
1911
1831
  def comments; end
1912
1832
 
1913
1833
  # The context holds information about the processing environment, such as
1914
1834
  # whitespace handling.
1915
1835
  #
1916
- # source://rexml//lib/rexml/element.rb#289
1836
+ # pkg:gem/rexml#lib/rexml/element.rb:281
1917
1837
  def context; end
1918
1838
 
1919
1839
  # The context holds information about the processing environment, such as
1920
1840
  # whitespace handling.
1921
1841
  #
1922
- # source://rexml//lib/rexml/element.rb#289
1842
+ # pkg:gem/rexml#lib/rexml/element.rb:281
1923
1843
  def context=(_arg0); end
1924
1844
 
1925
1845
  # :call-seq:
@@ -1933,7 +1853,7 @@ class REXML::Element < ::REXML::Parent
1933
1853
  # e.delete_attribute('bar') # => <bar/>
1934
1854
  # e.delete_attribute('bar') # => nil
1935
1855
  #
1936
- # source://rexml//lib/rexml/element.rb#1399
1856
+ # pkg:gem/rexml#lib/rexml/element.rb:1386
1937
1857
  def delete_attribute(key); end
1938
1858
 
1939
1859
  # :call-seq:
@@ -1973,7 +1893,7 @@ class REXML::Element < ::REXML::Parent
1973
1893
  # a.delete_element('//c') # => <c/>
1974
1894
  # a.delete_element('//c') # => nil
1975
1895
  #
1976
- # source://rexml//lib/rexml/element.rb#777
1896
+ # pkg:gem/rexml#lib/rexml/element.rb:771
1977
1897
  def delete_element(element); end
1978
1898
 
1979
1899
  # :call-seq:
@@ -1998,7 +1918,7 @@ class REXML::Element < ::REXML::Parent
1998
1918
  # d.root.delete_namespace('nosuch')
1999
1919
  # d.to_s # => "<a/>"
2000
1920
  #
2001
- # source://rexml//lib/rexml/element.rb#686
1921
+ # pkg:gem/rexml#lib/rexml/element.rb:680
2002
1922
  def delete_namespace(namespace = T.unsafe(nil)); end
2003
1923
 
2004
1924
  # :call-seq:
@@ -2022,7 +1942,7 @@ class REXML::Element < ::REXML::Parent
2022
1942
  #
2023
1943
  # Related: #root, #root_node.
2024
1944
  #
2025
- # source://rexml//lib/rexml/element.rb#478
1945
+ # pkg:gem/rexml#lib/rexml/element.rb:475
2026
1946
  def document; end
2027
1947
 
2028
1948
  # :call-seq:
@@ -2041,7 +1961,7 @@ class REXML::Element < ::REXML::Parent
2041
1961
  # <d> ... </>
2042
1962
  # <e/>
2043
1963
  #
2044
- # source://rexml//lib/rexml/element.rb#929
1964
+ # pkg:gem/rexml#lib/rexml/element.rb:923
2045
1965
  def each_element(xpath = T.unsafe(nil), &block); end
2046
1966
 
2047
1967
  # :call-seq:
@@ -2093,7 +2013,7 @@ class REXML::Element < ::REXML::Parent
2093
2013
  #
2094
2014
  # <d id='1'/>
2095
2015
  #
2096
- # source://rexml//lib/rexml/element.rb#846
2016
+ # pkg:gem/rexml#lib/rexml/element.rb:840
2097
2017
  def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
2098
2018
 
2099
2019
  # :call-seq:
@@ -2143,13 +2063,13 @@ class REXML::Element < ::REXML::Parent
2143
2063
  #
2144
2064
  # <c> ... </>
2145
2065
  #
2146
- # source://rexml//lib/rexml/element.rb#903
2066
+ # pkg:gem/rexml#lib/rexml/element.rb:897
2147
2067
  def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
2148
2068
 
2149
2069
  # Mechanisms for accessing attributes and child elements of this
2150
2070
  # element.
2151
2071
  #
2152
- # source://rexml//lib/rexml/element.rb#286
2072
+ # pkg:gem/rexml#lib/rexml/element.rb:278
2153
2073
  def elements; end
2154
2074
 
2155
2075
  # :call-seq:
@@ -2167,7 +2087,7 @@ class REXML::Element < ::REXML::Parent
2167
2087
  # d = REXML::Document.new(xml_string)
2168
2088
  # d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
2169
2089
  #
2170
- # source://rexml//lib/rexml/element.rb#948
2090
+ # pkg:gem/rexml#lib/rexml/element.rb:942
2171
2091
  def get_elements(xpath); end
2172
2092
 
2173
2093
  # :call-seq:
@@ -2187,7 +2107,7 @@ class REXML::Element < ::REXML::Parent
2187
2107
  #
2188
2108
  # d.root.get_text(1) # => "this is bold!"
2189
2109
  #
2190
- # source://rexml//lib/rexml/element.rb#1052
2110
+ # pkg:gem/rexml#lib/rexml/element.rb:1045
2191
2111
  def get_text(path = T.unsafe(nil)); end
2192
2112
 
2193
2113
  # :call-seq:
@@ -2200,9 +2120,7 @@ class REXML::Element < ::REXML::Parent
2200
2120
  # a.has_attributes? # => true
2201
2121
  # b.has_attributes? # => false
2202
2122
  #
2203
- # @return [Boolean]
2204
- #
2205
- # source://rexml//lib/rexml/element.rb#1319
2123
+ # pkg:gem/rexml#lib/rexml/element.rb:1306
2206
2124
  def has_attributes?; end
2207
2125
 
2208
2126
  # :call-seq:
@@ -2217,9 +2135,7 @@ class REXML::Element < ::REXML::Parent
2217
2135
  # b = a[0] # => <b/>
2218
2136
  # b.has_elements? # => false
2219
2137
  #
2220
- # @return [Boolean]
2221
- #
2222
- # source://rexml//lib/rexml/element.rb#793
2138
+ # pkg:gem/rexml#lib/rexml/element.rb:787
2223
2139
  def has_elements?; end
2224
2140
 
2225
2141
  # :call-seq:
@@ -2234,9 +2150,7 @@ class REXML::Element < ::REXML::Parent
2234
2150
  # b = a[0]
2235
2151
  # b.has_text? # => false
2236
2152
  #
2237
- # @return [Boolean]
2238
- #
2239
- # source://rexml//lib/rexml/element.rb#1001
2153
+ # pkg:gem/rexml#lib/rexml/element.rb:995
2240
2154
  def has_text?; end
2241
2155
 
2242
2156
  # :call-seq:
@@ -2246,7 +2160,7 @@ class REXML::Element < ::REXML::Parent
2246
2160
  #
2247
2161
  # See {Element Context}[../doc/rexml/context_rdoc.html].
2248
2162
  #
2249
- # source://rexml//lib/rexml/element.rb#516
2163
+ # pkg:gem/rexml#lib/rexml/element.rb:512
2250
2164
  def ignore_whitespace_nodes; end
2251
2165
 
2252
2166
  # :call-seq:
@@ -2270,7 +2184,7 @@ class REXML::Element < ::REXML::Parent
2270
2184
  # e.add_element(REXML::Element.new('baz'))
2271
2185
  # e.inspect # => "<foo bar='0' baz='1'> ... </>"
2272
2186
  #
2273
- # source://rexml//lib/rexml/element.rb#366
2187
+ # pkg:gem/rexml#lib/rexml/element.rb:358
2274
2188
  def inspect; end
2275
2189
 
2276
2190
  # :call-seq:
@@ -2290,7 +2204,7 @@ class REXML::Element < ::REXML::Parent
2290
2204
  # is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
2291
2205
  # is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
2292
2206
  #
2293
- # source://rexml//lib/rexml/element.rb#1466
2207
+ # pkg:gem/rexml#lib/rexml/element.rb:1453
2294
2208
  def instructions; end
2295
2209
 
2296
2210
  # :call-seq:
@@ -2313,7 +2227,7 @@ class REXML::Element < ::REXML::Parent
2313
2227
  # b.namespace('y') # => "2"
2314
2228
  # b.namespace('nosuch') # => nil
2315
2229
  #
2316
- # source://rexml//lib/rexml/element.rb#621
2230
+ # pkg:gem/rexml#lib/rexml/element.rb:619
2317
2231
  def namespace(prefix = T.unsafe(nil)); end
2318
2232
 
2319
2233
  # :call-seq:
@@ -2335,7 +2249,7 @@ class REXML::Element < ::REXML::Parent
2335
2249
  # d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
2336
2250
  # d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
2337
2251
  #
2338
- # source://rexml//lib/rexml/element.rb#594
2252
+ # pkg:gem/rexml#lib/rexml/element.rb:590
2339
2253
  def namespaces; end
2340
2254
 
2341
2255
  # :call-seq:
@@ -2348,7 +2262,7 @@ class REXML::Element < ::REXML::Parent
2348
2262
  # d.root.elements['b'].next_element #-> <c/>
2349
2263
  # d.root.elements['c'].next_element #-> nil
2350
2264
  #
2351
- # source://rexml//lib/rexml/element.rb#962
2265
+ # pkg:gem/rexml#lib/rexml/element.rb:956
2352
2266
  def next_element; end
2353
2267
 
2354
2268
  # :call-seq:
@@ -2360,7 +2274,7 @@ class REXML::Element < ::REXML::Parent
2360
2274
  # a = d.root # => <a/>
2361
2275
  # a.node_type # => :element
2362
2276
  #
2363
- # source://rexml//lib/rexml/element.rb#1167
2277
+ # pkg:gem/rexml#lib/rexml/element.rb:1160
2364
2278
  def node_type; end
2365
2279
 
2366
2280
  # :call-seq:
@@ -2382,7 +2296,7 @@ class REXML::Element < ::REXML::Parent
2382
2296
  # d.elements['//b'].prefixes # => ["x", "y"]
2383
2297
  # d.elements['//c'].prefixes # => ["x", "y", "z"]
2384
2298
  #
2385
- # source://rexml//lib/rexml/element.rb#568
2299
+ # pkg:gem/rexml#lib/rexml/element.rb:564
2386
2300
  def prefixes; end
2387
2301
 
2388
2302
  # :call-seq:
@@ -2395,7 +2309,7 @@ class REXML::Element < ::REXML::Parent
2395
2309
  # d.root.elements['c'].previous_element #-> <b/>
2396
2310
  # d.root.elements['b'].previous_element #-> nil
2397
2311
  #
2398
- # source://rexml//lib/rexml/element.rb#978
2312
+ # pkg:gem/rexml#lib/rexml/element.rb:972
2399
2313
  def previous_element; end
2400
2314
 
2401
2315
  # :call-seq:
@@ -2408,7 +2322,7 @@ class REXML::Element < ::REXML::Parent
2408
2322
  # The evaluation is tested against +expanded_name+, and so is namespace
2409
2323
  # sensitive.
2410
2324
  #
2411
- # source://rexml//lib/rexml/element.rb#536
2325
+ # pkg:gem/rexml#lib/rexml/element.rb:532
2412
2326
  def raw; end
2413
2327
 
2414
2328
  # :call-seq:
@@ -2428,7 +2342,7 @@ class REXML::Element < ::REXML::Parent
2428
2342
  #
2429
2343
  # Related: #root_node, #document.
2430
2344
  #
2431
- # source://rexml//lib/rexml/element.rb#451
2345
+ # pkg:gem/rexml#lib/rexml/element.rb:443
2432
2346
  def root; end
2433
2347
 
2434
2348
  # :call-seq:
@@ -2466,7 +2380,7 @@ class REXML::Element < ::REXML::Parent
2466
2380
  #
2467
2381
  # Related: #root, #document.
2468
2382
  #
2469
- # source://rexml//lib/rexml/element.rb#430
2383
+ # pkg:gem/rexml#lib/rexml/element.rb:422
2470
2384
  def root_node; end
2471
2385
 
2472
2386
  # :call-seq:
@@ -2493,7 +2407,7 @@ class REXML::Element < ::REXML::Parent
2493
2407
  # Note also that the text note is retrieved by method get_text,
2494
2408
  # and so is always normalized text.
2495
2409
  #
2496
- # source://rexml//lib/rexml/element.rb#1029
2410
+ # pkg:gem/rexml#lib/rexml/element.rb:1023
2497
2411
  def text(path = T.unsafe(nil)); end
2498
2412
 
2499
2413
  # :call-seq:
@@ -2521,7 +2435,7 @@ class REXML::Element < ::REXML::Parent
2521
2435
  #
2522
2436
  # d.root.text = nil #-> '<a><b/><c/></a>'
2523
2437
  #
2524
- # source://rexml//lib/rexml/element.rb#1088
2438
+ # pkg:gem/rexml#lib/rexml/element.rb:1081
2525
2439
  def text=(text); end
2526
2440
 
2527
2441
  # :call-seq:
@@ -2536,7 +2450,7 @@ class REXML::Element < ::REXML::Parent
2536
2450
  # ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
2537
2451
  # ts.map {|t| t.to_s } # => ["text", "more"]
2538
2452
  #
2539
- # source://rexml//lib/rexml/element.rb#1482
2453
+ # pkg:gem/rexml#lib/rexml/element.rb:1469
2540
2454
  def texts; end
2541
2455
 
2542
2456
  # :call-seq:
@@ -2550,7 +2464,7 @@ class REXML::Element < ::REXML::Parent
2550
2464
  # The evaluation is tested against the element's +expanded_name+,
2551
2465
  # and so is namespace-sensitive.
2552
2466
  #
2553
- # source://rexml//lib/rexml/element.rb#493
2467
+ # pkg:gem/rexml#lib/rexml/element.rb:489
2554
2468
  def whitespace; end
2555
2469
 
2556
2470
  # == DEPRECATED
@@ -2576,7 +2490,7 @@ class REXML::Element < ::REXML::Parent
2576
2490
  # doc.write( out ) #-> doc is written to the string 'out'
2577
2491
  # doc.write( $stdout ) #-> doc written to the console
2578
2492
  #
2579
- # source://rexml//lib/rexml/element.rb#1508
2493
+ # pkg:gem/rexml#lib/rexml/element.rb:1495
2580
2494
  def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
2581
2495
 
2582
2496
  # :call-seq:
@@ -2599,25 +2513,26 @@ class REXML::Element < ::REXML::Parent
2599
2513
  # e = REXML::Element.new('foo')
2600
2514
  # e.xpath # => "foo"
2601
2515
  #
2602
- # source://rexml//lib/rexml/element.rb#1191
2516
+ # pkg:gem/rexml#lib/rexml/element.rb:1184
2603
2517
  def xpath; end
2604
2518
 
2605
2519
  private
2606
2520
 
2607
- # source://rexml//lib/rexml/element.rb#1525
2521
+ # pkg:gem/rexml#lib/rexml/element.rb:1519
2608
2522
  def __to_xpath_helper(node); end
2609
2523
 
2524
+ # pkg:gem/rexml#lib/rexml/element.rb:1511
2525
+ def calculate_namespaces; end
2526
+
2610
2527
  # A private helper method
2611
2528
  #
2612
- # source://rexml//lib/rexml/element.rb#1540
2529
+ # pkg:gem/rexml#lib/rexml/element.rb:1534
2613
2530
  def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
2614
2531
  end
2615
2532
 
2616
- # source://rexml//lib/rexml/doctype.rb#261
2533
+ # pkg:gem/rexml#lib/rexml/doctype.rb:257
2617
2534
  class REXML::ElementDecl < ::REXML::Declaration
2618
- # @return [ElementDecl] a new instance of ElementDecl
2619
- #
2620
- # source://rexml//lib/rexml/doctype.rb#262
2535
+ # pkg:gem/rexml#lib/rexml/doctype.rb:258
2621
2536
  def initialize(src); end
2622
2537
  end
2623
2538
 
@@ -2663,7 +2578,7 @@ end
2663
2578
  # elements = d.root.elements
2664
2579
  # elements # => #<REXML::Elements @element=<bookstore> ... </>>
2665
2580
  #
2666
- # source://rexml//lib/rexml/element.rb#1595
2581
+ # pkg:gem/rexml#lib/rexml/element.rb:1589
2667
2582
  class REXML::Elements
2668
2583
  include ::Enumerable
2669
2584
 
@@ -2678,74 +2593,10 @@ class REXML::Elements
2678
2593
  # eles # => #<REXML::Elements @element=<bookstore> ... </>>
2679
2594
  # eles == d.root.elements # => false
2680
2595
  #
2681
- # @return [Elements] a new instance of Elements
2682
- #
2683
- # source://rexml//lib/rexml/element.rb#1608
2596
+ # pkg:gem/rexml#lib/rexml/element.rb:1602
2684
2597
  def initialize(parent); end
2685
2598
 
2686
- # :call-seq:
2687
- # add -> new_element
2688
- # add(name) -> new_element
2689
- # add(element) -> element
2690
- #
2691
- # Adds an element; returns the element added.
2692
- #
2693
- # With no argument, creates and adds a new element.
2694
- # The new element has:
2695
- #
2696
- # - No name.
2697
- # - \Parent from the \Elements object.
2698
- # - Context from the that parent.
2699
- #
2700
- # Example:
2701
- #
2702
- # d = REXML::Document.new(xml_string)
2703
- # elements = d.root.elements
2704
- # parent = elements.parent # => <bookstore> ... </>
2705
- # parent.context = {raw: :all}
2706
- # elements.size # => 4
2707
- # new_element = elements.add # => </>
2708
- # elements.size # => 5
2709
- # new_element.name # => nil
2710
- # new_element.parent # => <bookstore> ... </>
2711
- # new_element.context # => {:raw=>:all}
2712
- #
2713
- # With string argument +name+, creates and adds a new element.
2714
- # The new element has:
2715
- #
2716
- # - Name +name+.
2717
- # - \Parent from the \Elements object.
2718
- # - Context from the that parent.
2719
- #
2720
- # Example:
2721
- #
2722
- # d = REXML::Document.new(xml_string)
2723
- # elements = d.root.elements
2724
- # parent = elements.parent # => <bookstore> ... </>
2725
- # parent.context = {raw: :all}
2726
- # elements.size # => 4
2727
- # new_element = elements.add('foo') # => <foo/>
2728
- # elements.size # => 5
2729
- # new_element.name # => "foo"
2730
- # new_element.parent # => <bookstore> ... </>
2731
- # new_element.context # => {:raw=>:all}
2732
- #
2733
- # With argument +element+,
2734
- # creates and adds a clone of the given +element+.
2735
- # The new element has name, parent, and context from the given +element+.
2736
- #
2737
- # d = REXML::Document.new(xml_string)
2738
- # elements = d.root.elements
2739
- # elements.size # => 4
2740
- # e0 = REXML::Element.new('foo')
2741
- # e1 = REXML::Element.new('bar', e0, {raw: :all})
2742
- # element = elements.add(e1) # => <bar/>
2743
- # elements.size # => 5
2744
- # element.name # => "bar"
2745
- # element.parent # => <bookstore> ... </>
2746
- # element.context # => {:raw=>:all}
2747
- #
2748
- # source://rexml//lib/rexml/element.rb#1925
2599
+ # pkg:gem/rexml#lib/rexml/element.rb:1927
2749
2600
  def <<(element = T.unsafe(nil)); end
2750
2601
 
2751
2602
  # :call-seq:
@@ -2801,7 +2652,7 @@ class REXML::Elements
2801
2652
  # eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
2802
2653
  # eles[5, 'book'] # => nil
2803
2654
  #
2804
- # source://rexml//lib/rexml/element.rb#1680
2655
+ # pkg:gem/rexml#lib/rexml/element.rb:1674
2805
2656
  def [](index, name = T.unsafe(nil)); end
2806
2657
 
2807
2658
  # :call-seq:
@@ -2840,7 +2691,7 @@ class REXML::Elements
2840
2691
  # eles[50] = REXML::Text.new('bar') # => "bar"
2841
2692
  # eles.size # => 5
2842
2693
  #
2843
- # source://rexml//lib/rexml/element.rb#1735
2694
+ # pkg:gem/rexml#lib/rexml/element.rb:1725
2844
2695
  def []=(index, element); end
2845
2696
 
2846
2697
  # :call-seq:
@@ -2905,7 +2756,7 @@ class REXML::Elements
2905
2756
  # element.parent # => <bookstore> ... </>
2906
2757
  # element.context # => {:raw=>:all}
2907
2758
  #
2908
- # source://rexml//lib/rexml/element.rb#1925
2759
+ # pkg:gem/rexml#lib/rexml/element.rb:1915
2909
2760
  def add(element = T.unsafe(nil)); end
2910
2761
 
2911
2762
  # :call-seq:
@@ -2925,7 +2776,7 @@ class REXML::Elements
2925
2776
  # xpath = '//book [@category="web"]'
2926
2777
  # elements.collect(xpath) {|element| element.size } # => [17, 9]
2927
2778
  #
2928
- # source://rexml//lib/rexml/element.rb#1988
2779
+ # pkg:gem/rexml#lib/rexml/element.rb:1978
2929
2780
  def collect(xpath = T.unsafe(nil)); end
2930
2781
 
2931
2782
  # :call-seq:
@@ -2969,7 +2820,7 @@ class REXML::Elements
2969
2820
  # elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
2970
2821
  # elements.delete('//nosuch') # => nil
2971
2822
  #
2972
- # source://rexml//lib/rexml/element.rb#1825
2823
+ # pkg:gem/rexml#lib/rexml/element.rb:1815
2973
2824
  def delete(element); end
2974
2825
 
2975
2826
  # :call-seq:
@@ -2989,7 +2840,7 @@ class REXML::Elements
2989
2840
  # elements.size # => 0
2990
2841
  # elements.delete_all('//book') # => []
2991
2842
  #
2992
- # source://rexml//lib/rexml/element.rb#1851
2843
+ # pkg:gem/rexml#lib/rexml/element.rb:1841
2993
2844
  def delete_all(xpath); end
2994
2845
 
2995
2846
  # :call-seq:
@@ -3020,7 +2871,7 @@ class REXML::Elements
3020
2871
  # <book category='web'> ... </>
3021
2872
  # <book category='web' cover='paperback'> ... </>
3022
2873
  #
3023
- # source://rexml//lib/rexml/element.rb#1967
2874
+ # pkg:gem/rexml#lib/rexml/element.rb:1957
3024
2875
  def each(xpath = T.unsafe(nil)); end
3025
2876
 
3026
2877
  # :call-seq:
@@ -3033,9 +2884,7 @@ class REXML::Elements
3033
2884
  # d = REXML::Document.new(xml_string)
3034
2885
  # d.elements.empty? # => false
3035
2886
  #
3036
- # @return [Boolean]
3037
- #
3038
- # source://rexml//lib/rexml/element.rb#1755
2887
+ # pkg:gem/rexml#lib/rexml/element.rb:1745
3039
2888
  def empty?; end
3040
2889
 
3041
2890
  # :call-seq:
@@ -3052,7 +2901,7 @@ class REXML::Elements
3052
2901
  # elements.index(ele_4) # => 3
3053
2902
  # elements.index(ele_3) # => -1
3054
2903
  #
3055
- # source://rexml//lib/rexml/element.rb#1773
2904
+ # pkg:gem/rexml#lib/rexml/element.rb:1763
3056
2905
  def index(element); end
3057
2906
 
3058
2907
  # :call-seq:
@@ -3132,7 +2981,7 @@ class REXML::Elements
3132
2981
  # total += element.size
3133
2982
  # end # => 26
3134
2983
  #
3135
- # source://rexml//lib/rexml/element.rb#2073
2984
+ # pkg:gem/rexml#lib/rexml/element.rb:2063
3136
2985
  def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
3137
2986
 
3138
2987
  # :call-seq:
@@ -3146,7 +2995,7 @@ class REXML::Elements
3146
2995
  # elements = REXML::Elements.new(d.root)
3147
2996
  # elements.parent == d.root # => true
3148
2997
  #
3149
- # source://rexml//lib/rexml/element.rb#1623
2998
+ # pkg:gem/rexml#lib/rexml/element.rb:1617
3150
2999
  def parent; end
3151
3000
 
3152
3001
  # :call-seq:
@@ -3158,7 +3007,7 @@ class REXML::Elements
3158
3007
  # d.root.elements.size # => 3 # Three elements.
3159
3008
  # d.root.size # => 6 # Three elements plus three text nodes..
3160
3009
  #
3161
- # source://rexml//lib/rexml/element.rb#2097
3010
+ # pkg:gem/rexml#lib/rexml/element.rb:2087
3162
3011
  def size; end
3163
3012
 
3164
3013
  # :call-seq:
@@ -3179,40 +3028,40 @@ class REXML::Elements
3179
3028
  #
3180
3029
  # elements.to_a('//c') # => [<c/>]
3181
3030
  #
3182
- # source://rexml//lib/rexml/element.rb#2121
3031
+ # pkg:gem/rexml#lib/rexml/element.rb:2111
3183
3032
  def to_a(xpath = T.unsafe(nil)); end
3184
3033
 
3185
3034
  private
3186
3035
 
3187
3036
  # Private helper class. Removes quotes from quoted strings
3188
3037
  #
3189
- # source://rexml//lib/rexml/element.rb#2129
3038
+ # pkg:gem/rexml#lib/rexml/element.rb:2119
3190
3039
  def literalize(name); end
3191
3040
  end
3192
3041
 
3193
- # source://rexml//lib/rexml/encoding.rb#4
3042
+ # pkg:gem/rexml#lib/rexml/encoding.rb:4
3194
3043
  module REXML::Encoding
3195
- # source://rexml//lib/rexml/encoding.rb#29
3044
+ # pkg:gem/rexml#lib/rexml/encoding.rb:26
3196
3045
  def decode(string); end
3197
3046
 
3198
- # source://rexml//lib/rexml/encoding.rb#25
3047
+ # pkg:gem/rexml#lib/rexml/encoding.rb:22
3199
3048
  def encode(string); end
3200
3049
 
3201
3050
  # ID ---> Encoding name
3202
3051
  #
3203
- # source://rexml//lib/rexml/encoding.rb#6
3052
+ # pkg:gem/rexml#lib/rexml/encoding.rb:6
3204
3053
  def encoding; end
3205
3054
 
3206
- # source://rexml//lib/rexml/encoding.rb#7
3055
+ # pkg:gem/rexml#lib/rexml/encoding.rb:7
3207
3056
  def encoding=(encoding); end
3208
3057
 
3209
3058
  private
3210
3059
 
3211
- # source://rexml//lib/rexml/encoding.rb#34
3060
+ # pkg:gem/rexml#lib/rexml/encoding.rb:31
3212
3061
  def find_encoding(name); end
3213
3062
  end
3214
3063
 
3215
- # source://rexml//lib/rexml/entity.rb#7
3064
+ # pkg:gem/rexml#lib/rexml/entity.rb:7
3216
3065
  class REXML::Entity < ::REXML::Child
3217
3066
  include ::REXML::XMLTokens
3218
3067
 
@@ -3226,67 +3075,42 @@ class REXML::Entity < ::REXML::Child
3226
3075
  #
3227
3076
  # e = Entity.new( 'amp', '&' )
3228
3077
  #
3229
- # @return [Entity] a new instance of Entity
3230
- #
3231
- # source://rexml//lib/rexml/entity.rb#33
3078
+ # pkg:gem/rexml#lib/rexml/entity.rb:34
3232
3079
  def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
3233
3080
 
3234
- # Returns the value of attribute external.
3235
- #
3236
- # source://rexml//lib/rexml/entity.rb#22
3081
+ # pkg:gem/rexml#lib/rexml/entity.rb:23
3237
3082
  def external; end
3238
3083
 
3239
- # Returns the value of attribute name.
3240
- #
3241
- # source://rexml//lib/rexml/entity.rb#22
3084
+ # pkg:gem/rexml#lib/rexml/entity.rb:23
3242
3085
  def name; end
3243
3086
 
3244
- # Returns the value of attribute ndata.
3245
- #
3246
- # source://rexml//lib/rexml/entity.rb#22
3087
+ # pkg:gem/rexml#lib/rexml/entity.rb:23
3247
3088
  def ndata; end
3248
3089
 
3249
3090
  # Returns the value of this entity unprocessed -- raw. This is the
3250
3091
  # normalized value; that is, with all %ent; and &ent; entities intact
3251
3092
  #
3252
- # source://rexml//lib/rexml/entity.rb#85
3093
+ # pkg:gem/rexml#lib/rexml/entity.rb:86
3253
3094
  def normalized; end
3254
3095
 
3255
- # source://rexml//lib/rexml/entity.rb#138
3256
- def parent=(other); end
3257
-
3258
- # Returns the value of attribute pubid.
3259
- #
3260
- # source://rexml//lib/rexml/entity.rb#22
3096
+ # pkg:gem/rexml#lib/rexml/entity.rb:23
3261
3097
  def pubid; end
3262
3098
 
3263
- # Returns the value of attribute ref.
3264
- #
3265
- # source://rexml//lib/rexml/entity.rb#22
3099
+ # pkg:gem/rexml#lib/rexml/entity.rb:23
3266
3100
  def ref; end
3267
3101
 
3268
3102
  # Returns this entity as a string. See write().
3269
3103
  #
3270
- # source://rexml//lib/rexml/entity.rb#119
3104
+ # pkg:gem/rexml#lib/rexml/entity.rb:120
3271
3105
  def to_s; end
3272
3106
 
3273
3107
  # Evaluates to the unnormalized value of this entity; that is, replacing
3274
- # all entities -- both %ent; and &ent; entities. This differs from
3275
- # +value()+ in that +value+ only replaces %ent; entities.
3108
+ # &ent; entities.
3276
3109
  #
3277
- # source://rexml//lib/rexml/entity.rb#73
3110
+ # pkg:gem/rexml#lib/rexml/entity.rb:73
3278
3111
  def unnormalized; end
3279
3112
 
3280
- # Returns the value of this entity. At the moment, only internal entities
3281
- # are processed. If the value contains internal references (IE,
3282
- # %blah;), those are replaced with their values. IE, if the doctype
3283
- # contains:
3284
- # <!ENTITY % foo "bar">
3285
- # <!ENTITY yada "nanoo %foo; nanoo>
3286
- # then:
3287
- # doctype.entity('yada').value #-> "nanoo bar nanoo"
3288
- #
3289
- # source://rexml//lib/rexml/entity.rb#134
3113
+ # pkg:gem/rexml#lib/rexml/entity.rb:23
3290
3114
  def value; end
3291
3115
 
3292
3116
  # Write out a fully formed, correct entity definition (assuming the Entity
@@ -3298,40 +3122,31 @@ class REXML::Entity < ::REXML::Child
3298
3122
  # indent::
3299
3123
  # *DEPRECATED* and ignored
3300
3124
  #
3301
- # source://rexml//lib/rexml/entity.rb#97
3125
+ # pkg:gem/rexml#lib/rexml/entity.rb:98
3302
3126
  def write(out, indent = T.unsafe(nil)); end
3303
3127
 
3304
- private
3305
-
3306
- # source://rexml//lib/rexml/entity.rb#144
3307
- def resolve_value; end
3308
-
3309
3128
  class << self
3310
3129
  # Evaluates whether the given string matches an entity definition,
3311
3130
  # returning true if so, and false otherwise.
3312
3131
  #
3313
- # @return [Boolean]
3314
- #
3315
- # source://rexml//lib/rexml/entity.rb#66
3132
+ # pkg:gem/rexml#lib/rexml/entity.rb:67
3316
3133
  def matches?(string); end
3317
3134
  end
3318
3135
  end
3319
3136
 
3320
- # source://rexml//lib/rexml/doctype.rb#267
3137
+ # pkg:gem/rexml#lib/rexml/doctype.rb:263
3321
3138
  class REXML::ExternalEntity < ::REXML::Child
3322
- # @return [ExternalEntity] a new instance of ExternalEntity
3323
- #
3324
- # source://rexml//lib/rexml/doctype.rb#268
3139
+ # pkg:gem/rexml#lib/rexml/doctype.rb:264
3325
3140
  def initialize(src); end
3326
3141
 
3327
- # source://rexml//lib/rexml/doctype.rb#272
3142
+ # pkg:gem/rexml#lib/rexml/doctype.rb:268
3328
3143
  def to_s; end
3329
3144
 
3330
- # source://rexml//lib/rexml/doctype.rb#275
3145
+ # pkg:gem/rexml#lib/rexml/doctype.rb:271
3331
3146
  def write(output, indent); end
3332
3147
  end
3333
3148
 
3334
- # source://rexml//lib/rexml/formatters/default.rb#5
3149
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:5
3335
3150
  class REXML::Formatters::Default
3336
3151
  # Prints out the XML document with no formatting -- except if ie_hack is
3337
3152
  # set.
@@ -3340,9 +3155,7 @@ class REXML::Formatters::Default
3340
3155
  # If set to true, then inserts whitespace before the close of an empty
3341
3156
  # tag, so that IE's bad XML parser doesn't choke.
3342
3157
  #
3343
- # @return [Default] a new instance of Default
3344
- #
3345
- # source://rexml//lib/rexml/formatters/default.rb#12
3158
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:12
3346
3159
  def initialize(ie_hack = T.unsafe(nil)); end
3347
3160
 
3348
3161
  # Writes the node to some output.
@@ -3353,27 +3166,27 @@ class REXML::Formatters::Default
3353
3166
  # A class implementing <TT>&lt;&lt;</TT>. Pass in an Output object to
3354
3167
  # change the output encoding.
3355
3168
  #
3356
- # source://rexml//lib/rexml/formatters/default.rb#23
3169
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:23
3357
3170
  def write(node, output); end
3358
3171
 
3359
3172
  protected
3360
3173
 
3361
- # source://rexml//lib/rexml/formatters/default.rb#98
3174
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:98
3362
3175
  def write_cdata(node, output); end
3363
3176
 
3364
- # source://rexml//lib/rexml/formatters/default.rb#92
3177
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:92
3365
3178
  def write_comment(node, output); end
3366
3179
 
3367
- # source://rexml//lib/rexml/formatters/default.rb#61
3180
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:61
3368
3181
  def write_document(node, output); end
3369
3182
 
3370
- # source://rexml//lib/rexml/formatters/default.rb#65
3183
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:65
3371
3184
  def write_element(node, output); end
3372
3185
 
3373
- # source://rexml//lib/rexml/formatters/default.rb#104
3186
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:104
3374
3187
  def write_instruction(node, output); end
3375
3188
 
3376
- # source://rexml//lib/rexml/formatters/default.rb#88
3189
+ # pkg:gem/rexml#lib/rexml/formatters/default.rb:88
3377
3190
  def write_text(node, output); end
3378
3191
  end
3379
3192
 
@@ -3382,7 +3195,7 @@ end
3382
3195
  #
3383
3196
  # TODO: Add an option to print attributes on new lines
3384
3197
  #
3385
- # source://rexml//lib/rexml/formatters/pretty.rb#10
3198
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:10
3386
3199
  class REXML::Formatters::Pretty < ::REXML::Formatters::Default
3387
3200
  # Create a new pretty printer.
3388
3201
  #
@@ -3397,282 +3210,520 @@ class REXML::Formatters::Pretty < ::REXML::Formatters::Default
3397
3210
  # tags, thereby allowing Internet Explorer's XML parser to
3398
3211
  # function. Defaults to false.
3399
3212
  #
3400
- # @return [Pretty] a new instance of Pretty
3401
- #
3402
- # source://rexml//lib/rexml/formatters/pretty.rb#30
3213
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:30
3403
3214
  def initialize(indentation = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
3404
3215
 
3405
3216
  # If compact is set to true, then the formatter will attempt to use as
3406
3217
  # little space as possible
3407
3218
  #
3408
- # source://rexml//lib/rexml/formatters/pretty.rb#14
3219
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:14
3409
3220
  def compact; end
3410
3221
 
3411
3222
  # If compact is set to true, then the formatter will attempt to use as
3412
3223
  # little space as possible
3413
3224
  #
3414
- # source://rexml//lib/rexml/formatters/pretty.rb#14
3225
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:14
3415
3226
  def compact=(_arg0); end
3416
3227
 
3417
3228
  # The width of a page. Used for formatting text
3418
3229
  #
3419
- # source://rexml//lib/rexml/formatters/pretty.rb#16
3230
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:16
3420
3231
  def width; end
3421
3232
 
3422
3233
  # The width of a page. Used for formatting text
3423
3234
  #
3424
- # source://rexml//lib/rexml/formatters/pretty.rb#16
3235
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:16
3425
3236
  def width=(_arg0); end
3426
3237
 
3427
3238
  protected
3428
3239
 
3429
- # source://rexml//lib/rexml/formatters/pretty.rb#102
3240
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:102
3430
3241
  def write_cdata(node, output); end
3431
3242
 
3432
- # source://rexml//lib/rexml/formatters/pretty.rb#97
3243
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:97
3433
3244
  def write_comment(node, output); end
3434
3245
 
3435
- # source://rexml//lib/rexml/formatters/pretty.rb#107
3246
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:107
3436
3247
  def write_document(node, output); end
3437
3248
 
3438
- # source://rexml//lib/rexml/formatters/pretty.rb#39
3249
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:39
3439
3250
  def write_element(node, output); end
3440
3251
 
3441
- # source://rexml//lib/rexml/formatters/pretty.rb#88
3252
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:88
3442
3253
  def write_text(node, output); end
3443
3254
 
3444
3255
  private
3445
3256
 
3446
- # source://rexml//lib/rexml/formatters/pretty.rb#124
3257
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:124
3447
3258
  def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
3448
3259
 
3449
- # source://rexml//lib/rexml/formatters/pretty.rb#129
3260
+ # pkg:gem/rexml#lib/rexml/formatters/pretty.rb:129
3450
3261
  def wrap(string, width); end
3451
3262
  end
3452
3263
 
3264
+ # If you add a method, keep in mind two things:
3265
+ # (1) the first argument will always be a list of nodes from which to
3266
+ # filter. In the case of context methods (such as position), the function
3267
+ # should return an array with a value for each child in the array.
3268
+ # (2) all method calls from XML will have "-" replaced with "_".
3269
+ # Therefore, in XML, "local-name()" is identical (and actually becomes)
3270
+ # "local_name()"
3271
+ #
3272
+ # pkg:gem/rexml#lib/rexml/functions.rb:10
3273
+ module REXML::Functions
3274
+ class << self
3275
+ # pkg:gem/rexml#lib/rexml/functions.rb:317
3276
+ def boolean(object = T.unsafe(nil)); end
3277
+
3278
+ # pkg:gem/rexml#lib/rexml/functions.rb:417
3279
+ def ceiling(number); end
3280
+
3281
+ # pkg:gem/rexml#lib/rexml/functions.rb:370
3282
+ def compare_language(lang1, lang2); end
3283
+
3284
+ # pkg:gem/rexml#lib/rexml/functions.rb:190
3285
+ def concat(*objects); end
3286
+
3287
+ # Fixed by Mike Stok
3288
+ #
3289
+ # pkg:gem/rexml#lib/rexml/functions.rb:204
3290
+ def contains(string, test); end
3291
+
3292
+ # pkg:gem/rexml#lib/rexml/functions.rb:38
3293
+ def context=(value); end
3294
+
3295
+ # Returns the size of the given list of nodes.
3296
+ #
3297
+ # pkg:gem/rexml#lib/rexml/functions.rb:60
3298
+ def count(node_set); end
3299
+
3300
+ # UNTESTED
3301
+ #
3302
+ # pkg:gem/rexml#lib/rexml/functions.rb:347
3303
+ def false; end
3304
+
3305
+ # pkg:gem/rexml#lib/rexml/functions.rb:413
3306
+ def floor(number); end
3307
+
3308
+ # Helper method.
3309
+ #
3310
+ # pkg:gem/rexml#lib/rexml/functions.rb:87
3311
+ def get_namespace(node_set = T.unsafe(nil)); end
3312
+
3313
+ # Since REXML is non-validating, this method is not implemented as it
3314
+ # requires a DTD
3315
+ #
3316
+ # pkg:gem/rexml#lib/rexml/functions.rb:66
3317
+ def id(object); end
3318
+
3319
+ # UNTESTED
3320
+ #
3321
+ # pkg:gem/rexml#lib/rexml/functions.rb:352
3322
+ def lang(language); end
3323
+
3324
+ # Returns the last node of the given list of nodes.
3325
+ #
3326
+ # pkg:gem/rexml#lib/rexml/functions.rb:51
3327
+ def last; end
3328
+
3329
+ # pkg:gem/rexml#lib/rexml/functions.rb:69
3330
+ def local_name(node_set = T.unsafe(nil)); end
3331
+
3332
+ # pkg:gem/rexml#lib/rexml/functions.rb:80
3333
+ def name(node_set = T.unsafe(nil)); end
3334
+
3335
+ # pkg:gem/rexml#lib/rexml/functions.rb:35
3336
+ def namespace_context; end
3337
+
3338
+ # pkg:gem/rexml#lib/rexml/functions.rb:33
3339
+ def namespace_context=(x); end
3340
+
3341
+ # pkg:gem/rexml#lib/rexml/functions.rb:76
3342
+ def namespace_uri(node_set = T.unsafe(nil)); end
3343
+
3344
+ # pkg:gem/rexml#lib/rexml/functions.rb:265
3345
+ def normalize_space(string = T.unsafe(nil)); end
3346
+
3347
+ # UNTESTED
3348
+ #
3349
+ # pkg:gem/rexml#lib/rexml/functions.rb:337
3350
+ def not(object); end
3351
+
3352
+ # a string that consists of optional whitespace followed by an optional
3353
+ # minus sign followed by a Number followed by whitespace is converted to
3354
+ # the IEEE 754 number that is nearest (according to the IEEE 754
3355
+ # round-to-nearest rule) to the mathematical value represented by the
3356
+ # string; any other string is converted to NaN
3357
+ #
3358
+ # boolean true is converted to 1; boolean false is converted to 0
3359
+ #
3360
+ # a node-set is first converted to a string as if by a call to the string
3361
+ # function and then converted in the same way as a string argument
3362
+ #
3363
+ # an object of a type other than the four basic types is converted to a
3364
+ # number in a way that is dependent on that type
3365
+ #
3366
+ # pkg:gem/rexml#lib/rexml/functions.rb:387
3367
+ def number(object = T.unsafe(nil)); end
3368
+
3369
+ # pkg:gem/rexml#lib/rexml/functions.rb:55
3370
+ def position; end
3371
+
3372
+ # pkg:gem/rexml#lib/rexml/functions.rb:432
3373
+ def processing_instruction(node); end
3374
+
3375
+ # pkg:gem/rexml#lib/rexml/functions.rb:421
3376
+ def round(number); end
3377
+
3378
+ # pkg:gem/rexml#lib/rexml/functions.rb:436
3379
+ def send(name, *args); end
3380
+
3381
+ # pkg:gem/rexml#lib/rexml/functions.rb:26
3382
+ def singleton_method_added(name); end
3383
+
3384
+ # Fixed by Mike Stok
3385
+ #
3386
+ # pkg:gem/rexml#lib/rexml/functions.rb:199
3387
+ def starts_with(string, test); end
3388
+
3389
+ # A node-set is converted to a string by returning the string-value of the
3390
+ # node in the node-set that is first in document order. If the node-set is
3391
+ # empty, an empty string is returned.
3392
+ #
3393
+ # A number is converted to a string as follows
3394
+ #
3395
+ # NaN is converted to the string NaN
3396
+ #
3397
+ # positive zero is converted to the string 0
3398
+ #
3399
+ # negative zero is converted to the string 0
3400
+ #
3401
+ # positive infinity is converted to the string Infinity
3402
+ #
3403
+ # negative infinity is converted to the string -Infinity
3404
+ #
3405
+ # if the number is an integer, the number is represented in decimal form
3406
+ # as a Number with no decimal point and no leading zeros, preceded by a
3407
+ # minus sign (-) if the number is negative
3408
+ #
3409
+ # otherwise, the number is represented in decimal form as a Number
3410
+ # including a decimal point with at least one digit before the decimal
3411
+ # point and at least one digit after the decimal point, preceded by a
3412
+ # minus sign (-) if the number is negative; there must be no leading zeros
3413
+ # before the decimal point apart possibly from the one required digit
3414
+ # immediately before the decimal point; beyond the one required digit
3415
+ # after the decimal point there must be as many, but only as many, more
3416
+ # digits as are needed to uniquely distinguish the number from all other
3417
+ # IEEE 754 numeric values.
3418
+ #
3419
+ # The boolean false value is converted to the string false. The boolean
3420
+ # true value is converted to the string true.
3421
+ #
3422
+ # An object of a type other than the four basic types is converted to a
3423
+ # string in a way that is dependent on that type.
3424
+ #
3425
+ # pkg:gem/rexml#lib/rexml/functions.rb:138
3426
+ def string(object = T.unsafe(nil)); end
3427
+
3428
+ # UNTESTED
3429
+ #
3430
+ # pkg:gem/rexml#lib/rexml/functions.rb:261
3431
+ def string_length(string); end
3432
+
3433
+ # A node-set is converted to a string by
3434
+ # returning the concatenation of the string-value
3435
+ # of each of the children of the node in the
3436
+ # node-set that is first in document order.
3437
+ # If the node-set is empty, an empty string is returned.
3438
+ #
3439
+ # pkg:gem/rexml#lib/rexml/functions.rb:178
3440
+ def string_value(o); end
3441
+
3442
+ # Take equal portions of Mike Stok and Sean Russell; mix
3443
+ # vigorously, and pour into a tall, chilled glass. Serves 10,000.
3444
+ #
3445
+ # pkg:gem/rexml#lib/rexml/functions.rb:228
3446
+ def substring(string, start, length = T.unsafe(nil)); end
3447
+
3448
+ # Kouhei fixed this too
3449
+ #
3450
+ # pkg:gem/rexml#lib/rexml/functions.rb:220
3451
+ def substring_after(string, test); end
3452
+
3453
+ # Kouhei fixed this
3454
+ #
3455
+ # pkg:gem/rexml#lib/rexml/functions.rb:209
3456
+ def substring_before(string, test); end
3457
+
3458
+ # pkg:gem/rexml#lib/rexml/functions.rb:408
3459
+ def sum(nodes); end
3460
+
3461
+ # pkg:gem/rexml#lib/rexml/functions.rb:40
3462
+ def text; end
3463
+
3464
+ # This is entirely Mike Stok's beast
3465
+ #
3466
+ # pkg:gem/rexml#lib/rexml/functions.rb:275
3467
+ def translate(string, tr1, tr2); end
3468
+
3469
+ # UNTESTED
3470
+ #
3471
+ # pkg:gem/rexml#lib/rexml/functions.rb:342
3472
+ def true; end
3473
+
3474
+ # pkg:gem/rexml#lib/rexml/functions.rb:36
3475
+ def variables; end
3476
+
3477
+ # pkg:gem/rexml#lib/rexml/functions.rb:34
3478
+ def variables=(x); end
3479
+ end
3480
+ end
3481
+
3453
3482
  # A Source that wraps an IO. See the Source class for method
3454
3483
  # documentation
3455
3484
  #
3456
- # source://rexml//lib/rexml/source.rb#159
3485
+ # pkg:gem/rexml#lib/rexml/source.rb:220
3457
3486
  class REXML::IOSource < ::REXML::Source
3458
3487
  # block_size has been deprecated
3459
3488
  #
3460
- # @return [IOSource] a new instance of IOSource
3461
- #
3462
- # source://rexml//lib/rexml/source.rb#163
3489
+ # pkg:gem/rexml#lib/rexml/source.rb:224
3463
3490
  def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
3464
3491
 
3465
- # source://rexml//lib/rexml/source.rb#215
3466
- def consume(pattern); end
3467
-
3468
3492
  # @return the current line in the source
3469
3493
  #
3470
- # source://rexml//lib/rexml/source.rb#244
3494
+ # pkg:gem/rexml#lib/rexml/source.rb:329
3471
3495
  def current_line; end
3472
3496
 
3473
- # @return [Boolean]
3474
- #
3475
- # source://rexml//lib/rexml/source.rb#235
3497
+ # pkg:gem/rexml#lib/rexml/source.rb:324
3476
3498
  def empty?; end
3477
3499
 
3478
- # source://rexml//lib/rexml/source.rb#219
3500
+ # pkg:gem/rexml#lib/rexml/source.rb:284
3501
+ def ensure_buffer; end
3502
+
3503
+ # pkg:gem/rexml#lib/rexml/source.rb:288
3479
3504
  def match(pattern, cons = T.unsafe(nil)); end
3480
3505
 
3481
- # source://rexml//lib/rexml/source.rb#239
3482
- def position; end
3506
+ # pkg:gem/rexml#lib/rexml/source.rb:307
3507
+ def match?(pattern, cons = T.unsafe(nil)); end
3483
3508
 
3484
- # source://rexml//lib/rexml/source.rb#207
3485
- def read; end
3509
+ # pkg:gem/rexml#lib/rexml/source.rb:245
3510
+ def read(term = T.unsafe(nil), min_bytes = T.unsafe(nil)); end
3486
3511
 
3487
- # source://rexml//lib/rexml/source.rb#184
3488
- def scan(pattern, cons = T.unsafe(nil)); end
3512
+ # pkg:gem/rexml#lib/rexml/source.rb:266
3513
+ def read_until(term); end
3489
3514
 
3490
3515
  private
3491
3516
 
3492
- # source://rexml//lib/rexml/source.rb#286
3517
+ # pkg:gem/rexml#lib/rexml/source.rb:376
3493
3518
  def encoding_updated; end
3494
3519
 
3495
- # source://rexml//lib/rexml/source.rb#266
3496
- def readline; end
3520
+ # pkg:gem/rexml#lib/rexml/source.rb:351
3521
+ def readline(term = T.unsafe(nil)); end
3497
3522
  end
3498
3523
 
3499
3524
  # Represents an XML Instruction; IE, <? ... ?>
3500
3525
  # TODO: Add parent arg (3rd arg) to constructor
3501
3526
  #
3502
- # source://rexml//lib/rexml/instruction.rb#9
3527
+ # pkg:gem/rexml#lib/rexml/instruction.rb:9
3503
3528
  class REXML::Instruction < ::REXML::Child
3504
3529
  # Constructs a new Instruction
3530
+ # @param target can be one of a number of things. If String, then
3505
3531
  # the target of this instruction is set to this. If an Instruction,
3506
3532
  # then the Instruction is shallowly cloned (target and content are
3507
3533
  # copied).
3534
+ # @param content Must be either a String, or a Parent. Can only
3508
3535
  # be a Parent if the target argument is a Source. Otherwise, this
3509
3536
  # String is set as the content of this instruction.
3510
3537
  #
3511
- # @param target can be one of a number of things. If String, then
3512
- # @param content Must be either a String, or a Parent. Can only
3513
- # @return [Instruction] a new instance of Instruction
3514
- #
3515
- # source://rexml//lib/rexml/instruction.rb#25
3538
+ # pkg:gem/rexml#lib/rexml/instruction.rb:25
3516
3539
  def initialize(target, content = T.unsafe(nil)); end
3517
3540
 
3518
- # of the other matches the target and content of this object.
3519
- #
3520
3541
  # @return true if other is an Instruction, and the content and target
3542
+ # of the other matches the target and content of this object.
3521
3543
  #
3522
- # source://rexml//lib/rexml/instruction.rb#65
3544
+ # pkg:gem/rexml#lib/rexml/instruction.rb:65
3523
3545
  def ==(other); end
3524
3546
 
3525
- # source://rexml//lib/rexml/instruction.rb#44
3547
+ # pkg:gem/rexml#lib/rexml/instruction.rb:44
3526
3548
  def clone; end
3527
3549
 
3528
3550
  # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
3529
3551
  # content is everything else.
3530
3552
  #
3531
- # source://rexml//lib/rexml/instruction.rb#15
3553
+ # pkg:gem/rexml#lib/rexml/instruction.rb:15
3532
3554
  def content; end
3533
3555
 
3534
3556
  # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
3535
3557
  # content is everything else.
3536
3558
  #
3537
- # source://rexml//lib/rexml/instruction.rb#15
3559
+ # pkg:gem/rexml#lib/rexml/instruction.rb:15
3538
3560
  def content=(_arg0); end
3539
3561
 
3540
- # source://rexml//lib/rexml/instruction.rb#75
3562
+ # pkg:gem/rexml#lib/rexml/instruction.rb:75
3541
3563
  def inspect; end
3542
3564
 
3543
- # source://rexml//lib/rexml/instruction.rb#71
3565
+ # pkg:gem/rexml#lib/rexml/instruction.rb:71
3544
3566
  def node_type; end
3545
3567
 
3546
3568
  # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
3547
3569
  # content is everything else.
3548
3570
  #
3549
- # source://rexml//lib/rexml/instruction.rb#15
3571
+ # pkg:gem/rexml#lib/rexml/instruction.rb:15
3550
3572
  def target; end
3551
3573
 
3552
3574
  # target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
3553
3575
  # content is everything else.
3554
3576
  #
3555
- # source://rexml//lib/rexml/instruction.rb#15
3577
+ # pkg:gem/rexml#lib/rexml/instruction.rb:15
3556
3578
  def target=(_arg0); end
3557
3579
 
3558
3580
  # == DEPRECATED
3559
3581
  # See the rexml/formatters package
3560
3582
  #
3561
- # source://rexml//lib/rexml/instruction.rb#51
3583
+ # pkg:gem/rexml#lib/rexml/instruction.rb:51
3562
3584
  def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
3563
3585
  end
3564
3586
 
3565
3587
  # Adds named attributes to an object.
3566
3588
  #
3567
- # source://rexml//lib/rexml/namespace.rb#7
3589
+ # pkg:gem/rexml#lib/rexml/namespace.rb:7
3568
3590
  module REXML::Namespace
3569
3591
  include ::REXML::XMLTokens
3570
3592
 
3571
3593
  # The name of the object, valid if set
3572
3594
  #
3573
- # source://rexml//lib/rexml/namespace.rb#9
3595
+ # pkg:gem/rexml#lib/rexml/namespace.rb:9
3574
3596
  def expanded_name; end
3575
3597
 
3576
3598
  # Fully expand the name, even if the prefix wasn't specified in the
3577
3599
  # source file.
3578
3600
  #
3579
- # source://rexml//lib/rexml/namespace.rb#57
3601
+ # pkg:gem/rexml#lib/rexml/namespace.rb:57
3580
3602
  def fully_expanded_name; end
3581
3603
 
3582
3604
  # Compares names optionally WITH namespaces
3583
3605
  #
3584
- # @return [Boolean]
3585
- #
3586
- # source://rexml//lib/rexml/namespace.rb#43
3606
+ # pkg:gem/rexml#lib/rexml/namespace.rb:43
3587
3607
  def has_name?(other, ns = T.unsafe(nil)); end
3588
3608
 
3609
+ # pkg:gem/rexml#lib/rexml/namespace.rb:53
3610
+ def local_name; end
3611
+
3589
3612
  # The name of the object, valid if set
3590
3613
  #
3591
- # source://rexml//lib/rexml/namespace.rb#9
3614
+ # pkg:gem/rexml#lib/rexml/namespace.rb:9
3592
3615
  def name; end
3593
3616
 
3594
3617
  # Sets the name and the expanded name
3595
3618
  #
3596
- # source://rexml//lib/rexml/namespace.rb#17
3619
+ # pkg:gem/rexml#lib/rexml/namespace.rb:17
3597
3620
  def name=(name); end
3598
3621
 
3599
3622
  # The expanded name of the object, valid if name is set
3600
3623
  #
3601
- # source://rexml//lib/rexml/namespace.rb#11
3624
+ # pkg:gem/rexml#lib/rexml/namespace.rb:11
3602
3625
  def prefix; end
3603
3626
 
3604
3627
  # The expanded name of the object, valid if name is set
3605
3628
  #
3606
- # source://rexml//lib/rexml/namespace.rb#11
3629
+ # pkg:gem/rexml#lib/rexml/namespace.rb:11
3607
3630
  def prefix=(_arg0); end
3608
3631
  end
3609
3632
 
3610
- # source://rexml//lib/rexml/namespace.rb#13
3633
+ # pkg:gem/rexml#lib/rexml/namespace.rb:13
3611
3634
  REXML::Namespace::NAME_WITHOUT_NAMESPACE = T.let(T.unsafe(nil), Regexp)
3612
3635
 
3613
- # source://rexml//lib/rexml/doctype.rb#280
3614
- class REXML::NotationDecl < ::REXML::Child
3615
- # @return [NotationDecl] a new instance of NotationDecl
3636
+ # Represents a node in the tree. Nodes are never encountered except as
3637
+ # superclasses of other objects. Nodes have siblings.
3638
+ #
3639
+ # pkg:gem/rexml#lib/rexml/node.rb:9
3640
+ module REXML::Node
3641
+ # Visit all subnodes of +self+ recursively
3642
+ #
3643
+ # pkg:gem/rexml#lib/rexml/node.rb:54
3644
+ def each_recursive(&block); end
3645
+
3646
+ # Find (and return) first subnode (recursively) for which the block
3647
+ # evaluates to true. Returns +nil+ if none was found.
3648
+ #
3649
+ # pkg:gem/rexml#lib/rexml/node.rb:67
3650
+ def find_first_recursive(&block); end
3651
+
3652
+ # pkg:gem/rexml#lib/rexml/node.rb:39
3653
+ def indent(to, ind); end
3654
+
3655
+ # Returns the position that +self+ holds in its parent's array, indexed
3656
+ # from 1.
3657
+ #
3658
+ # pkg:gem/rexml#lib/rexml/node.rb:76
3659
+ def index_in_parent; end
3660
+
3661
+ # @return the next sibling (nil if unset)
3616
3662
  #
3617
- # source://rexml//lib/rexml/doctype.rb#282
3663
+ # pkg:gem/rexml#lib/rexml/node.rb:11
3664
+ def next_sibling_node; end
3665
+
3666
+ # pkg:gem/rexml#lib/rexml/node.rb:48
3667
+ def parent?; end
3668
+
3669
+ # @return the previous sibling (nil if unset)
3670
+ #
3671
+ # pkg:gem/rexml#lib/rexml/node.rb:17
3672
+ def previous_sibling_node; end
3673
+
3674
+ # indent::
3675
+ # *DEPRECATED* This parameter is now ignored. See the formatters in the
3676
+ # REXML::Formatters package for changing the output style.
3677
+ #
3678
+ # pkg:gem/rexml#lib/rexml/node.rb:27
3679
+ def to_s(indent = T.unsafe(nil)); end
3680
+ end
3681
+
3682
+ # pkg:gem/rexml#lib/rexml/doctype.rb:276
3683
+ class REXML::NotationDecl < ::REXML::Child
3684
+ # pkg:gem/rexml#lib/rexml/doctype.rb:278
3618
3685
  def initialize(name, middle, pub, sys); end
3619
3686
 
3620
3687
  # This method retrieves the name of the notation.
3621
3688
  #
3622
3689
  # Method contributed by Henrik Martensson
3623
3690
  #
3624
- # source://rexml//lib/rexml/doctype.rb#307
3691
+ # pkg:gem/rexml#lib/rexml/doctype.rb:302
3625
3692
  def name; end
3626
3693
 
3627
- # Returns the value of attribute public.
3628
- #
3629
- # source://rexml//lib/rexml/doctype.rb#281
3694
+ # pkg:gem/rexml#lib/rexml/doctype.rb:277
3630
3695
  def public; end
3631
3696
 
3632
- # Sets the attribute public
3633
- #
3634
- # @param value the value to set the attribute public to.
3635
- #
3636
- # source://rexml//lib/rexml/doctype.rb#281
3697
+ # pkg:gem/rexml#lib/rexml/doctype.rb:277
3637
3698
  def public=(_arg0); end
3638
3699
 
3639
- # Returns the value of attribute system.
3640
- #
3641
- # source://rexml//lib/rexml/doctype.rb#281
3700
+ # pkg:gem/rexml#lib/rexml/doctype.rb:277
3642
3701
  def system; end
3643
3702
 
3644
- # Sets the attribute system
3645
- #
3646
- # @param value the value to set the attribute system to.
3647
- #
3648
- # source://rexml//lib/rexml/doctype.rb#281
3703
+ # pkg:gem/rexml#lib/rexml/doctype.rb:277
3649
3704
  def system=(_arg0); end
3650
3705
 
3651
- # source://rexml//lib/rexml/doctype.rb#290
3706
+ # pkg:gem/rexml#lib/rexml/doctype.rb:286
3652
3707
  def to_s; end
3653
3708
 
3654
- # source://rexml//lib/rexml/doctype.rb#300
3709
+ # pkg:gem/rexml#lib/rexml/doctype.rb:295
3655
3710
  def write(output, indent = T.unsafe(nil)); end
3656
3711
  end
3657
3712
 
3658
- # source://rexml//lib/rexml/output.rb#5
3713
+ # pkg:gem/rexml#lib/rexml/output.rb:5
3659
3714
  class REXML::Output
3660
3715
  include ::REXML::Encoding
3661
3716
 
3662
- # @return [Output] a new instance of Output
3663
- #
3664
- # source://rexml//lib/rexml/output.rb#10
3717
+ # pkg:gem/rexml#lib/rexml/output.rb:10
3665
3718
  def initialize(real_IO, encd = T.unsafe(nil)); end
3666
3719
 
3667
- # source://rexml//lib/rexml/output.rb#22
3720
+ # pkg:gem/rexml#lib/rexml/output.rb:22
3668
3721
  def <<(content); end
3669
3722
 
3670
- # Returns the value of attribute encoding.
3671
- #
3672
- # source://rexml//lib/rexml/output.rb#8
3723
+ # pkg:gem/rexml#lib/rexml/output.rb:8
3673
3724
  def encoding; end
3674
3725
 
3675
- # source://rexml//lib/rexml/output.rb#26
3726
+ # pkg:gem/rexml#lib/rexml/output.rb:26
3676
3727
  def to_s; end
3677
3728
  end
3678
3729
 
@@ -3680,188 +3731,156 @@ end
3680
3731
  # class is never encountered except as the superclass for some other
3681
3732
  # object.
3682
3733
  #
3683
- # source://rexml//lib/rexml/parent.rb#8
3734
+ # pkg:gem/rexml#lib/rexml/parent.rb:8
3684
3735
  class REXML::Parent < ::REXML::Child
3685
3736
  include ::Enumerable
3686
3737
 
3687
3738
  # Constructor
3688
- #
3689
3739
  # @param parent if supplied, will be set as the parent of this object
3690
- # @return [Parent] a new instance of Parent
3691
3740
  #
3692
- # source://rexml//lib/rexml/parent.rb#13
3741
+ # pkg:gem/rexml#lib/rexml/parent.rb:13
3693
3742
  def initialize(parent = T.unsafe(nil)); end
3694
3743
 
3695
- # source://rexml//lib/rexml/parent.rb#18
3744
+ # pkg:gem/rexml#lib/rexml/parent.rb:25
3696
3745
  def <<(object); end
3697
3746
 
3698
3747
  # Fetches a child at a given index
3699
- #
3700
3748
  # @param index the Integer index of the child to fetch
3701
3749
  #
3702
- # source://rexml//lib/rexml/parent.rb#57
3750
+ # pkg:gem/rexml#lib/rexml/parent.rb:57
3703
3751
  def [](index); end
3704
3752
 
3705
3753
  # Set an index entry. See Array.[]=
3706
- #
3707
3754
  # @param index the index of the element to set
3708
3755
  # @param opt either the object to set, or an Integer length
3709
3756
  # @param child if opt is an Integer, this is the child to set
3710
3757
  # @return the parent (self)
3711
3758
  #
3712
- # source://rexml//lib/rexml/parent.rb#70
3759
+ # pkg:gem/rexml#lib/rexml/parent.rb:70
3713
3760
  def []=(*args); end
3714
3761
 
3715
- # source://rexml//lib/rexml/parent.rb#18
3762
+ # pkg:gem/rexml#lib/rexml/parent.rb:18
3716
3763
  def add(object); end
3717
3764
 
3718
- # source://rexml//lib/rexml/parent.rb#115
3765
+ # pkg:gem/rexml#lib/rexml/parent.rb:160
3719
3766
  def children; end
3720
3767
 
3721
3768
  # Deeply clones this object. This creates a complete duplicate of this
3722
3769
  # Parent, including all descendants.
3723
3770
  #
3724
- # source://rexml//lib/rexml/parent.rb#148
3771
+ # pkg:gem/rexml#lib/rexml/parent.rb:148
3725
3772
  def deep_clone; end
3726
3773
 
3727
- # source://rexml//lib/rexml/parent.rb#32
3774
+ # pkg:gem/rexml#lib/rexml/parent.rb:32
3728
3775
  def delete(object); end
3729
3776
 
3730
- # source://rexml//lib/rexml/parent.rb#47
3777
+ # pkg:gem/rexml#lib/rexml/parent.rb:47
3731
3778
  def delete_at(index); end
3732
3779
 
3733
- # source://rexml//lib/rexml/parent.rb#43
3780
+ # pkg:gem/rexml#lib/rexml/parent.rb:43
3734
3781
  def delete_if(&block); end
3735
3782
 
3736
- # source://rexml//lib/rexml/parent.rb#39
3783
+ # pkg:gem/rexml#lib/rexml/parent.rb:39
3737
3784
  def each(&block); end
3738
3785
 
3739
- # source://rexml//lib/rexml/parent.rb#39
3786
+ # pkg:gem/rexml#lib/rexml/parent.rb:61
3740
3787
  def each_child(&block); end
3741
3788
 
3742
- # source://rexml//lib/rexml/parent.rb#51
3789
+ # pkg:gem/rexml#lib/rexml/parent.rb:51
3743
3790
  def each_index(&block); end
3744
3791
 
3745
3792
  # Fetches the index of a given child
3746
- # of this parent.
3747
- #
3748
3793
  # @param child the child to get the index of
3749
3794
  # @return the index of the child, or nil if the object is not a child
3795
+ # of this parent.
3750
3796
  #
3751
- # source://rexml//lib/rexml/parent.rb#123
3797
+ # pkg:gem/rexml#lib/rexml/parent.rb:123
3752
3798
  def index(child); end
3753
3799
 
3754
3800
  # Inserts an child after another child
3801
+ # @param child1 this is either an xpath or an Element. If an Element,
3755
3802
  # child2 will be inserted after child1 in the child list of the parent.
3756
3803
  # If an xpath, child2 will be inserted after the first child to match
3757
3804
  # the xpath.
3758
- #
3759
- # @param child1 this is either an xpath or an Element. If an Element,
3760
3805
  # @param child2 the child to insert
3761
3806
  # @return the parent (self)
3762
3807
  #
3763
- # source://rexml//lib/rexml/parent.rb#102
3808
+ # pkg:gem/rexml#lib/rexml/parent.rb:102
3764
3809
  def insert_after(child1, child2); end
3765
3810
 
3766
3811
  # Inserts an child before another child
3812
+ # @param child1 this is either an xpath or an Element. If an Element,
3767
3813
  # child2 will be inserted before child1 in the child list of the parent.
3768
3814
  # If an xpath, child2 will be inserted before the first child to match
3769
3815
  # the xpath.
3770
- #
3771
- # @param child1 this is either an xpath or an Element. If an Element,
3772
3816
  # @param child2 the child to insert
3773
3817
  # @return the parent (self)
3774
3818
  #
3775
- # source://rexml//lib/rexml/parent.rb#82
3819
+ # pkg:gem/rexml#lib/rexml/parent.rb:82
3776
3820
  def insert_before(child1, child2); end
3777
3821
 
3778
- # @return the number of children of this parent
3779
- #
3780
- # source://rexml//lib/rexml/parent.rb#130
3822
+ # pkg:gem/rexml#lib/rexml/parent.rb:134
3781
3823
  def length; end
3782
3824
 
3783
- # @return [Boolean]
3784
- #
3785
- # source://rexml//lib/rexml/parent.rb#162
3825
+ # pkg:gem/rexml#lib/rexml/parent.rb:162
3786
3826
  def parent?; end
3787
3827
 
3788
- # source://rexml//lib/rexml/parent.rb#18
3828
+ # pkg:gem/rexml#lib/rexml/parent.rb:24
3789
3829
  def push(object); end
3790
3830
 
3791
3831
  # Replaces one child with another, making sure the nodelist is correct
3792
- # Child)
3793
- #
3794
3832
  # @param to_replace the child to replace (must be a Child)
3795
3833
  # @param replacement the child to insert into the nodelist (must be a
3834
+ # Child)
3796
3835
  #
3797
- # source://rexml//lib/rexml/parent.rb#140
3836
+ # pkg:gem/rexml#lib/rexml/parent.rb:140
3798
3837
  def replace_child(to_replace, replacement); end
3799
3838
 
3800
3839
  # @return the number of children of this parent
3801
3840
  #
3802
- # source://rexml//lib/rexml/parent.rb#130
3841
+ # pkg:gem/rexml#lib/rexml/parent.rb:130
3803
3842
  def size; end
3804
3843
 
3805
- # source://rexml//lib/rexml/parent.rb#115
3844
+ # pkg:gem/rexml#lib/rexml/parent.rb:115
3806
3845
  def to_a; end
3807
3846
 
3808
- # source://rexml//lib/rexml/parent.rb#27
3847
+ # pkg:gem/rexml#lib/rexml/parent.rb:27
3809
3848
  def unshift(object); end
3810
3849
  end
3811
3850
 
3812
- # source://rexml//lib/rexml/parseexception.rb#3
3851
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:3
3813
3852
  class REXML::ParseException < ::RuntimeError
3814
- # @return [ParseException] a new instance of ParseException
3815
- #
3816
- # source://rexml//lib/rexml/parseexception.rb#6
3853
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:6
3817
3854
  def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end
3818
3855
 
3819
- # source://rexml//lib/rexml/parseexception.rb#48
3856
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:49
3820
3857
  def context; end
3821
3858
 
3822
- # Returns the value of attribute continued_exception.
3823
- #
3824
- # source://rexml//lib/rexml/parseexception.rb#4
3859
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:4
3825
3860
  def continued_exception; end
3826
3861
 
3827
- # Sets the attribute continued_exception
3828
- #
3829
- # @param value the value to set the attribute continued_exception to.
3830
- #
3831
- # source://rexml//lib/rexml/parseexception.rb#4
3862
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:4
3832
3863
  def continued_exception=(_arg0); end
3833
3864
 
3834
- # source://rexml//lib/rexml/parseexception.rb#43
3865
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:44
3835
3866
  def line; end
3836
3867
 
3837
- # Returns the value of attribute parser.
3838
- #
3839
- # source://rexml//lib/rexml/parseexception.rb#4
3868
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:4
3840
3869
  def parser; end
3841
3870
 
3842
- # Sets the attribute parser
3843
- #
3844
- # @param value the value to set the attribute parser to.
3845
- #
3846
- # source://rexml//lib/rexml/parseexception.rb#4
3871
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:4
3847
3872
  def parser=(_arg0); end
3848
3873
 
3849
- # source://rexml//lib/rexml/parseexception.rb#38
3874
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:39
3850
3875
  def position; end
3851
3876
 
3852
- # Returns the value of attribute source.
3853
- #
3854
- # source://rexml//lib/rexml/parseexception.rb#4
3877
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:4
3855
3878
  def source; end
3856
3879
 
3857
- # Sets the attribute source
3858
- #
3859
- # @param value the value to set the attribute source to.
3860
- #
3861
- # source://rexml//lib/rexml/parseexception.rb#4
3880
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:4
3862
3881
  def source=(_arg0); end
3863
3882
 
3864
- # source://rexml//lib/rexml/parseexception.rb#13
3883
+ # pkg:gem/rexml#lib/rexml/parseexception.rb:13
3865
3884
  def to_s; end
3866
3885
  end
3867
3886
 
@@ -3885,36 +3904,39 @@ end
3885
3904
  #
3886
3905
  # Nat Price gave me some good ideas for the API.
3887
3906
  #
3888
- # source://rexml//lib/rexml/parsers/baseparser.rb#29
3907
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:57
3889
3908
  class REXML::Parsers::BaseParser
3890
- # @return [BaseParser] a new instance of BaseParser
3891
- #
3892
- # source://rexml//lib/rexml/parsers/baseparser.rb#115
3909
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:164
3893
3910
  def initialize(source); end
3894
3911
 
3895
- # source://rexml//lib/rexml/parsers/baseparser.rb#120
3912
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:175
3896
3913
  def add_listener(listener); end
3897
3914
 
3898
3915
  # Returns true if there are no more events
3899
3916
  #
3900
- # @return [Boolean]
3901
- #
3902
- # source://rexml//lib/rexml/parsers/baseparser.rb#146
3917
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:210
3903
3918
  def empty?; end
3904
3919
 
3905
- # source://rexml//lib/rexml/parsers/baseparser.rb#438
3920
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:537
3906
3921
  def entity(reference, entities); end
3907
3922
 
3923
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:180
3924
+ def entity_expansion_count; end
3925
+
3926
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:181
3927
+ def entity_expansion_limit=(_arg0); end
3928
+
3929
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:182
3930
+ def entity_expansion_text_limit=(_arg0); end
3931
+
3908
3932
  # Returns true if there are more events. Synonymous with !empty?
3909
3933
  #
3910
- # @return [Boolean]
3911
- #
3912
- # source://rexml//lib/rexml/parsers/baseparser.rb#151
3934
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:215
3913
3935
  def has_next?; end
3914
3936
 
3915
3937
  # Escapes all possible entities
3916
3938
  #
3917
- # source://rexml//lib/rexml/parsers/baseparser.rb#449
3939
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:548
3918
3940
  def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
3919
3941
 
3920
3942
  # Peek at the +depth+ event in the stack. The first element on the stack
@@ -3924,102 +3946,175 @@ class REXML::Parsers::BaseParser
3924
3946
  # event, so you can effectively pre-parse the entire document (pull the
3925
3947
  # entire thing into memory) using this method.
3926
3948
  #
3927
- # source://rexml//lib/rexml/parsers/baseparser.rb#167
3949
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:231
3928
3950
  def peek(depth = T.unsafe(nil)); end
3929
3951
 
3930
- # source://rexml//lib/rexml/parsers/baseparser.rb#136
3952
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:200
3931
3953
  def position; end
3932
3954
 
3933
3955
  # Returns the next event. This is a +PullEvent+ object.
3934
3956
  #
3935
- # source://rexml//lib/rexml/parsers/baseparser.rb#182
3957
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:246
3936
3958
  def pull; end
3937
3959
 
3938
- # Returns the value of attribute source.
3939
- #
3940
- # source://rexml//lib/rexml/parsers/baseparser.rb#124
3960
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:189
3961
+ def reset; end
3962
+
3963
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:179
3941
3964
  def source; end
3942
3965
 
3943
- # source://rexml//lib/rexml/parsers/baseparser.rb#126
3966
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:184
3944
3967
  def stream=(source); end
3945
3968
 
3946
3969
  # Unescapes all possible entities
3947
3970
  #
3948
- # source://rexml//lib/rexml/parsers/baseparser.rb#465
3971
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:564
3949
3972
  def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
3950
3973
 
3951
3974
  # Push an event back on the head of the stream. This method
3952
3975
  # has (theoretically) infinite depth.
3953
3976
  #
3954
- # source://rexml//lib/rexml/parsers/baseparser.rb#157
3977
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:221
3955
3978
  def unshift(token); end
3956
3979
 
3957
3980
  private
3958
3981
 
3959
- # @return [Boolean]
3960
- #
3961
- # source://rexml//lib/rexml/parsers/baseparser.rb#495
3982
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:613
3983
+ def add_namespace(prefix, uri); end
3984
+
3985
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:646
3962
3986
  def need_source_encoding_update?(xml_declaration_encoding); end
3963
3987
 
3964
- # source://rexml//lib/rexml/parsers/baseparser.rb#589
3965
- def parse_attributes(prefixes, curr_ns); end
3988
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:652
3989
+ def normalize_xml_declaration_encoding(xml_declaration_encoding); end
3966
3990
 
3967
- # source://rexml//lib/rexml/parsers/baseparser.rb#514
3991
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:849
3992
+ def parse_attribute_value_with_equal(name); end
3993
+
3994
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:868
3995
+ def parse_attributes(prefixes); end
3996
+
3997
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:669
3968
3998
  def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
3969
3999
 
3970
- # source://rexml//lib/rexml/parsers/baseparser.rb#542
4000
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:697
3971
4001
  def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
3972
4002
 
3973
- # source://rexml//lib/rexml/parsers/baseparser.rb#501
4003
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:656
3974
4004
  def parse_name(base_error_message); end
3975
4005
 
3976
- # source://rexml//lib/rexml/parsers/baseparser.rb#580
4006
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:628
4007
+ def pop_namespaces_restore; end
4008
+
4009
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:735
4010
+ def process_comment; end
4011
+
4012
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:747
3977
4013
  def process_instruction; end
3978
4014
 
3979
- # source://rexml//lib/rexml/parsers/baseparser.rb#190
4015
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:256
3980
4016
  def pull_event; end
4017
+
4018
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:622
4019
+ def push_namespaces_restore; end
4020
+
4021
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:639
4022
+ def record_entity_expansion(delta = T.unsafe(nil)); end
4023
+
4024
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:835
4025
+ def scan_quote; end
4026
+
4027
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:769
4028
+ def xml_declaration; end
3981
4029
  end
3982
4030
 
3983
- # source://rexml//lib/rexml/parsers/baseparser.rb#102
4031
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:130
3984
4032
  REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
3985
4033
 
3986
- # source://rexml//lib/rexml/parsers/baseparser.rb#103
4034
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:131
3987
4035
  REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
3988
4036
 
3989
- # source://rexml//lib/rexml/parsers/baseparser.rb#104
4037
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:132
3990
4038
  REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
3991
4039
 
3992
- # source://rexml//lib/rexml/parsers/baseparser.rb#38
4040
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:143
4041
+ module REXML::Parsers::BaseParser::Private; end
4042
+
4043
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:148
4044
+ REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
4045
+
4046
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:153
4047
+ REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp)
4048
+
4049
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:154
4050
+ REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
4051
+
4052
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:146
4053
+ REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
4054
+
4055
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:155
4056
+ REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash)
4057
+
4058
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:152
4059
+ REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
4060
+
4061
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:147
4062
+ REXML::Parsers::BaseParser::Private::EQUAL_PATTERN = T.let(T.unsafe(nil), Regexp)
4063
+
4064
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:150
4065
+ REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String)
4066
+
4067
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:149
4068
+ REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
4069
+
4070
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:151
4071
+ REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String)
4072
+
4073
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:144
4074
+ REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil), Regexp)
4075
+
4076
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:145
4077
+ REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp)
4078
+
4079
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:160
4080
+ REXML::Parsers::BaseParser::Private::XML_PREFIXED_NAMESPACE = T.let(T.unsafe(nil), String)
4081
+
4082
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:66
3993
4083
  REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
3994
4084
 
3995
- # source://rexml//lib/rexml/parsers/baseparser.rb#37
4085
+ # pkg:gem/rexml#lib/rexml/parsers/baseparser.rb:65
3996
4086
  REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
3997
4087
 
3998
- # source://rexml//lib/rexml/parsers/streamparser.rb#6
4088
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:6
3999
4089
  class REXML::Parsers::StreamParser
4000
- # @return [StreamParser] a new instance of StreamParser
4001
- #
4002
- # source://rexml//lib/rexml/parsers/streamparser.rb#7
4090
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:7
4003
4091
  def initialize(source, listener); end
4004
4092
 
4005
- # source://rexml//lib/rexml/parsers/streamparser.rb#13
4093
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:13
4006
4094
  def add_listener(listener); end
4007
4095
 
4008
- # source://rexml//lib/rexml/parsers/streamparser.rb#17
4096
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:17
4097
+ def entity_expansion_count; end
4098
+
4099
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:21
4100
+ def entity_expansion_limit=(limit); end
4101
+
4102
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:25
4103
+ def entity_expansion_text_limit=(limit); end
4104
+
4105
+ # pkg:gem/rexml#lib/rexml/parsers/streamparser.rb:29
4009
4106
  def parse; end
4010
4107
  end
4011
4108
 
4012
- # source://rexml//lib/rexml/parsers/treeparser.rb#7
4109
+ # pkg:gem/rexml#lib/rexml/parsers/treeparser.rb:7
4013
4110
  class REXML::Parsers::TreeParser
4014
- # @return [TreeParser] a new instance of TreeParser
4015
- #
4016
- # source://rexml//lib/rexml/parsers/treeparser.rb#8
4111
+ # pkg:gem/rexml#lib/rexml/parsers/treeparser.rb:8
4017
4112
  def initialize(source, build_context = T.unsafe(nil)); end
4018
4113
 
4019
- # source://rexml//lib/rexml/parsers/treeparser.rb#13
4114
+ # pkg:gem/rexml#lib/rexml/parsers/treeparser.rb:13
4020
4115
  def add_listener(listener); end
4021
4116
 
4022
- # source://rexml//lib/rexml/parsers/treeparser.rb#17
4117
+ # pkg:gem/rexml#lib/rexml/parsers/treeparser.rb:17
4023
4118
  def parse; end
4024
4119
  end
4025
4120
 
@@ -4028,62 +4123,48 @@ end
4028
4123
  # There is strange, dark magic at work in this code. Beware. Go back! Go
4029
4124
  # back while you still can!
4030
4125
  #
4031
- # source://rexml//lib/rexml/parsers/xpathparser.rb#12
4126
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:12
4032
4127
  class REXML::Parsers::XPathParser
4033
4128
  include ::REXML::XMLTokens
4034
4129
 
4035
- # source://rexml//lib/rexml/parsers/xpathparser.rb#42
4130
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:42
4036
4131
  def abbreviate(path_or_parsed); end
4037
4132
 
4038
- # source://rexml//lib/rexml/parsers/xpathparser.rb#132
4133
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:132
4039
4134
  def expand(path_or_parsed); end
4040
4135
 
4041
- # source://rexml//lib/rexml/parsers/xpathparser.rb#16
4136
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:16
4042
4137
  def namespaces=(namespaces); end
4043
4138
 
4044
- # source://rexml//lib/rexml/parsers/xpathparser.rb#21
4139
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:21
4045
4140
  def parse(path); end
4046
4141
 
4047
4142
  # For backward compatibility
4048
4143
  #
4049
- # source://rexml//lib/rexml/parsers/xpathparser.rb#174
4144
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:221
4050
4145
  def preciate_to_string(parsed, &block); end
4051
4146
 
4052
- # source://rexml//lib/rexml/parsers/xpathparser.rb#36
4147
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:36
4053
4148
  def predicate(path); end
4054
4149
 
4055
- # source://rexml//lib/rexml/parsers/xpathparser.rb#174
4150
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:174
4056
4151
  def predicate_to_path(parsed, &block); end
4057
4152
 
4058
4153
  private
4059
4154
 
4060
- # | AdditiveExpr ('+' | '-') MultiplicativeExpr
4061
- # | MultiplicativeExpr
4062
- #
4063
- # source://rexml//lib/rexml/parsers/xpathparser.rb#505
4155
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:505
4064
4156
  def AdditiveExpr(path, parsed); end
4065
4157
 
4066
- # | AndExpr S 'and' S EqualityExpr
4067
- # | EqualityExpr
4068
- #
4069
- # source://rexml//lib/rexml/parsers/xpathparser.rb#438
4158
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:438
4070
4159
  def AndExpr(path, parsed); end
4071
4160
 
4072
- # | EqualityExpr ('=' | '!=') RelationalExpr
4073
- # | RelationalExpr
4074
- #
4075
- # source://rexml//lib/rexml/parsers/xpathparser.rb#457
4161
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:457
4076
4162
  def EqualityExpr(path, parsed); end
4077
4163
 
4078
- # | FilterExpr Predicate
4079
- # | PrimaryExpr
4080
- #
4081
- # source://rexml//lib/rexml/parsers/xpathparser.rb#608
4164
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:608
4082
4165
  def FilterExpr(path, parsed); end
4083
4166
 
4084
- # | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')'
4085
- #
4086
- # source://rexml//lib/rexml/parsers/xpathparser.rb#663
4167
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:663
4087
4168
  def FunctionCall(rest, parsed); end
4088
4169
 
4089
4170
  # LocationPath
@@ -4091,72 +4172,54 @@ class REXML::Parsers::XPathParser
4091
4172
  # | '/' RelativeLocationPath?
4092
4173
  # | '//' RelativeLocationPath
4093
4174
  #
4094
- # source://rexml//lib/rexml/parsers/xpathparser.rb#243
4175
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:243
4095
4176
  def LocationPath(path, parsed); end
4096
4177
 
4097
- # | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr
4098
- # | UnaryExpr
4099
- #
4100
- # source://rexml//lib/rexml/parsers/xpathparser.rb#528
4178
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:528
4101
4179
  def MultiplicativeExpr(path, parsed); end
4102
4180
 
4103
- # source://rexml//lib/rexml/parsers/xpathparser.rb#343
4181
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:343
4104
4182
  def NodeTest(path, parsed); end
4105
4183
 
4106
- # | OrExpr S 'or' S AndExpr
4107
- # | AndExpr
4108
- #
4109
- # source://rexml//lib/rexml/parsers/xpathparser.rb#419
4184
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:419
4110
4185
  def OrExpr(path, parsed); end
4111
4186
 
4112
- # | LocationPath
4113
- # | FilterExpr ('/' | '//') RelativeLocationPath
4114
- #
4115
- # source://rexml//lib/rexml/parsers/xpathparser.rb#590
4187
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:590
4116
4188
  def PathExpr(path, parsed); end
4117
4189
 
4118
4190
  # Filters the supplied nodeset on the predicate(s)
4119
4191
  #
4120
- # source://rexml//lib/rexml/parsers/xpathparser.rb#395
4192
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:395
4121
4193
  def Predicate(path, parsed); end
4122
4194
 
4123
- # source://rexml//lib/rexml/parsers/xpathparser.rb#626
4195
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:626
4124
4196
  def PrimaryExpr(path, parsed); end
4125
4197
 
4126
- # | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr
4127
- # | AdditiveExpr
4128
- #
4129
- # source://rexml//lib/rexml/parsers/xpathparser.rb#480
4198
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:480
4130
4199
  def RelationalExpr(path, parsed); end
4131
4200
 
4132
- # source://rexml//lib/rexml/parsers/xpathparser.rb#267
4201
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:267
4133
4202
  def RelativeLocationPath(path, parsed); end
4134
4203
 
4135
- # | '-' UnaryExpr
4136
- # | UnionExpr
4137
- #
4138
- # source://rexml//lib/rexml/parsers/xpathparser.rb#553
4204
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:553
4139
4205
  def UnaryExpr(path, parsed); end
4140
4206
 
4141
- # | UnionExpr '|' PathExpr
4142
- # | PathExpr
4143
- #
4144
- # source://rexml//lib/rexml/parsers/xpathparser.rb#571
4207
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:571
4145
4208
  def UnionExpr(path, parsed); end
4146
4209
 
4147
4210
  # get_group( '[foo]bar' ) -> ['bar', '[foo]']
4148
4211
  #
4149
- # source://rexml//lib/rexml/parsers/xpathparser.rb#676
4212
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:676
4150
4213
  def get_group(string); end
4151
4214
 
4152
- # source://rexml//lib/rexml/parsers/xpathparser.rb#694
4215
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:694
4153
4216
  def parse_args(string); end
4154
4217
 
4155
- # source://rexml//lib/rexml/parsers/xpathparser.rb#224
4218
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:224
4156
4219
  def quote_literal(literal); end
4157
4220
  end
4158
4221
 
4159
- # source://rexml//lib/rexml/parsers/xpathparser.rb#339
4222
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:339
4160
4223
  REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
4161
4224
 
4162
4225
  # Returns a 1-1 map of the nodeset
@@ -4170,119 +4233,161 @@ REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
4170
4233
  # | PI '(' LITERAL ')' PI
4171
4234
  # | '[' expr ']' Predicate
4172
4235
  #
4173
- # source://rexml//lib/rexml/parsers/xpathparser.rb#338
4236
+ # pkg:gem/rexml#lib/rexml/parsers/xpathparser.rb:338
4174
4237
  REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp)
4175
4238
 
4176
- # source://rexml//lib/rexml/doctype.rb#10
4239
+ # pkg:gem/rexml#lib/rexml/doctype.rb:10
4177
4240
  class REXML::ReferenceWriter
4178
- # @return [ReferenceWriter] a new instance of ReferenceWriter
4179
- #
4180
- # source://rexml//lib/rexml/doctype.rb#11
4241
+ # pkg:gem/rexml#lib/rexml/doctype.rb:11
4181
4242
  def initialize(id_type, public_id_literal, system_literal, context = T.unsafe(nil)); end
4182
4243
 
4183
- # source://rexml//lib/rexml/doctype.rb#25
4244
+ # pkg:gem/rexml#lib/rexml/doctype.rb:25
4184
4245
  def write(output); end
4185
4246
  end
4186
4247
 
4248
+ # pkg:gem/rexml#lib/rexml/security.rb:3
4249
+ module REXML::Security
4250
+ class << self
4251
+ # Get the entity expansion limit. By default the limit is set to 10000.
4252
+ #
4253
+ # pkg:gem/rexml#lib/rexml/security.rb:12
4254
+ def entity_expansion_limit; end
4255
+
4256
+ # Set the entity expansion limit. By default the limit is set to 10000.
4257
+ #
4258
+ # pkg:gem/rexml#lib/rexml/security.rb:7
4259
+ def entity_expansion_limit=(val); end
4260
+
4261
+ # Get the entity expansion limit. By default the limit is set to 10240.
4262
+ #
4263
+ # pkg:gem/rexml#lib/rexml/security.rb:24
4264
+ def entity_expansion_text_limit; end
4265
+
4266
+ # Set the entity expansion limit. By default the limit is set to 10240.
4267
+ #
4268
+ # pkg:gem/rexml#lib/rexml/security.rb:19
4269
+ def entity_expansion_text_limit=(val); end
4270
+ end
4271
+ end
4272
+
4187
4273
  # A Source can be searched for patterns, and wraps buffers and other
4188
4274
  # objects and provides consumption of text
4189
4275
  #
4190
- # source://rexml//lib/rexml/source.rb#31
4276
+ # pkg:gem/rexml#lib/rexml/source.rb:61
4191
4277
  class REXML::Source
4192
4278
  include ::REXML::Encoding
4193
4279
 
4194
4280
  # Constructor
4195
- # value, overriding all encoding detection
4196
- #
4197
4281
  # @param arg must be a String, and should be a valid XML document
4198
4282
  # @param encoding if non-null, sets the encoding of the source to this
4199
- # @return [Source] a new instance of Source
4283
+ # value, overriding all encoding detection
4200
4284
  #
4201
- # source://rexml//lib/rexml/source.rb#43
4285
+ # pkg:gem/rexml#lib/rexml/source.rb:88
4202
4286
  def initialize(arg, encoding = T.unsafe(nil)); end
4203
4287
 
4204
4288
  # The current buffer (what we're going to read next)
4205
4289
  #
4206
- # source://rexml//lib/rexml/source.rb#34
4290
+ # pkg:gem/rexml#lib/rexml/source.rb:101
4207
4291
  def buffer; end
4208
4292
 
4209
- # source://rexml//lib/rexml/source.rb#87
4210
- def consume(pattern); end
4293
+ # pkg:gem/rexml#lib/rexml/source.rb:111
4294
+ def buffer_encoding=(encoding); end
4211
4295
 
4212
4296
  # @return the current line in the source
4213
4297
  #
4214
- # source://rexml//lib/rexml/source.rb#117
4298
+ # pkg:gem/rexml#lib/rexml/source.rb:180
4215
4299
  def current_line; end
4216
4300
 
4217
- # @return [Boolean] true if the Source is exhausted
4301
+ # pkg:gem/rexml#lib/rexml/source.rb:105
4302
+ def drop_parsed_content; end
4303
+
4304
+ # @return true if the Source is exhausted
4218
4305
  #
4219
- # source://rexml//lib/rexml/source.rb#108
4306
+ # pkg:gem/rexml#lib/rexml/source.rb:175
4220
4307
  def empty?; end
4221
4308
 
4222
- # Returns the value of attribute encoding.
4223
- #
4224
- # source://rexml//lib/rexml/source.rb#37
4309
+ # pkg:gem/rexml#lib/rexml/source.rb:65
4225
4310
  def encoding; end
4226
4311
 
4227
4312
  # Inherited from Encoding
4228
4313
  # Overridden to support optimized en/decoding
4229
4314
  #
4230
- # source://rexml//lib/rexml/source.rb#56
4315
+ # pkg:gem/rexml#lib/rexml/source.rb:117
4231
4316
  def encoding=(enc); end
4232
4317
 
4318
+ # pkg:gem/rexml#lib/rexml/source.rb:135
4319
+ def ensure_buffer; end
4320
+
4233
4321
  # The line number of the last consumed text
4234
4322
  #
4235
- # source://rexml//lib/rexml/source.rb#36
4323
+ # pkg:gem/rexml#lib/rexml/source.rb:64
4236
4324
  def line; end
4237
4325
 
4238
- # source://rexml//lib/rexml/source.rb#101
4326
+ # pkg:gem/rexml#lib/rexml/source.rb:138
4239
4327
  def match(pattern, cons = T.unsafe(nil)); end
4240
4328
 
4241
- # source://rexml//lib/rexml/source.rb#91
4242
- def match_to(char, pattern); end
4329
+ # pkg:gem/rexml#lib/rexml/source.rb:146
4330
+ def match?(pattern, cons = T.unsafe(nil)); end
4243
4331
 
4244
- # source://rexml//lib/rexml/source.rb#95
4245
- def match_to_consume(char, pattern); end
4332
+ # pkg:gem/rexml#lib/rexml/source.rb:166
4333
+ def peek_byte; end
4246
4334
 
4247
- # source://rexml//lib/rexml/source.rb#112
4335
+ # pkg:gem/rexml#lib/rexml/source.rb:158
4248
4336
  def position; end
4249
4337
 
4250
- # source://rexml//lib/rexml/source.rb#84
4251
- def read; end
4252
-
4253
- # Scans the source for a given pattern. Note, that this is not your
4254
- # usual scan() method. For one thing, the pattern argument has some
4255
- # requirements; for another, the source can be consumed. You can easily
4256
- # confuse this method. Originally, the patterns were easier
4257
- # to construct and this method more robust, because this method
4258
- # generated search regexps on the fly; however, this was
4259
- # computationally expensive and slowed down the entire REXML package
4260
- # considerably, since this is by far the most commonly called method.
4261
- # /^\s*(#{your pattern, with no groups})(.*)/. The first group
4262
- # will be returned; the second group is used if the consume flag is
4263
- # set.
4264
- # everything after it in the Source.
4265
- # pattern is not found.
4266
- #
4267
- # @param pattern must be a Regexp, and must be in the form of
4268
- # @param consume if true, the pattern returned will be consumed, leaving
4269
- # @return the pattern, if found, or nil if the Source is empty or the
4270
- #
4271
- # source://rexml//lib/rexml/source.rb#77
4272
- def scan(pattern, cons = T.unsafe(nil)); end
4338
+ # pkg:gem/rexml#lib/rexml/source.rb:162
4339
+ def position=(pos); end
4340
+
4341
+ # pkg:gem/rexml#lib/rexml/source.rb:122
4342
+ def read(term = T.unsafe(nil)); end
4343
+
4344
+ # pkg:gem/rexml#lib/rexml/source.rb:125
4345
+ def read_until(term); end
4346
+
4347
+ # pkg:gem/rexml#lib/rexml/source.rb:170
4348
+ def scan_byte; end
4349
+
4350
+ # pkg:gem/rexml#lib/rexml/source.rb:154
4351
+ def skip_spaces; end
4273
4352
 
4274
4353
  private
4275
4354
 
4276
- # source://rexml//lib/rexml/source.rb#125
4355
+ # pkg:gem/rexml#lib/rexml/source.rb:189
4277
4356
  def detect_encoding; end
4278
4357
 
4279
- # source://rexml//lib/rexml/source.rb#146
4358
+ # pkg:gem/rexml#lib/rexml/source.rb:207
4280
4359
  def encoding_updated; end
4281
4360
  end
4282
4361
 
4362
+ # pkg:gem/rexml#lib/rexml/source.rb:67
4363
+ module REXML::Source::Private; end
4364
+
4365
+ # pkg:gem/rexml#lib/rexml/source.rb:70
4366
+ REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash)
4367
+
4368
+ # pkg:gem/rexml#lib/rexml/source.rb:69
4369
+ REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer)
4370
+
4371
+ # pkg:gem/rexml#lib/rexml/source.rb:68
4372
+ REXML::Source::Private::SPACES_PATTERN = T.let(T.unsafe(nil), Regexp)
4373
+
4374
+ # Generates Source-s. USE THIS CLASS.
4375
+ #
4376
+ # pkg:gem/rexml#lib/rexml/source.rb:38
4377
+ class REXML::SourceFactory
4378
+ class << self
4379
+ # Generates a Source object
4380
+ # @param arg Either a String, or an IO
4381
+ # @return a Source, or nil if a bad argument was given
4382
+ #
4383
+ # pkg:gem/rexml#lib/rexml/source.rb:42
4384
+ def create_from(arg); end
4385
+ end
4386
+ end
4387
+
4283
4388
  # Represents text nodes in an XML document
4284
4389
  #
4285
- # source://rexml//lib/rexml/text.rb#11
4390
+ # pkg:gem/rexml#lib/rexml/text.rb:11
4286
4391
  class REXML::Text < ::REXML::Child
4287
4392
  include ::Comparable
4288
4393
 
@@ -4323,9 +4428,7 @@ class REXML::Text < ::REXML::Child
4323
4428
  #
4324
4429
  # +illegal+ INTERNAL USE ONLY
4325
4430
  #
4326
- # @return [Text] a new instance of Text
4327
- #
4328
- # source://rexml//lib/rexml/text.rb#94
4431
+ # pkg:gem/rexml#lib/rexml/text.rb:79
4329
4432
  def initialize(arg, respect_whitespace = T.unsafe(nil), parent = T.unsafe(nil), raw = T.unsafe(nil), entity_filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
4330
4433
 
4331
4434
  # Appends text to this text node. The text is appended in the +raw+ mode
@@ -4334,46 +4437,44 @@ class REXML::Text < ::REXML::Child
4334
4437
  # +returns+ the text itself to enable method chain like
4335
4438
  # 'text << "XXX" << "YYY"'.
4336
4439
  #
4337
- # source://rexml//lib/rexml/text.rb#194
4440
+ # pkg:gem/rexml#lib/rexml/text.rb:189
4338
4441
  def <<(to_append); end
4339
4442
 
4340
4443
  # +other+ a String or a Text
4341
4444
  # +returns+ the result of (to_s <=> arg.to_s)
4342
4445
  #
4343
- # source://rexml//lib/rexml/text.rb#203
4446
+ # pkg:gem/rexml#lib/rexml/text.rb:198
4344
4447
  def <=>(other); end
4345
4448
 
4346
- # source://rexml//lib/rexml/text.rb#184
4449
+ # pkg:gem/rexml#lib/rexml/text.rb:179
4347
4450
  def clone; end
4348
4451
 
4349
- # source://rexml//lib/rexml/text.rb#207
4452
+ # pkg:gem/rexml#lib/rexml/text.rb:202
4350
4453
  def doctype; end
4351
4454
 
4352
- # @return [Boolean]
4353
- #
4354
- # source://rexml//lib/rexml/text.rb#179
4455
+ # pkg:gem/rexml#lib/rexml/text.rb:174
4355
4456
  def empty?; end
4356
4457
 
4357
- # source://rexml//lib/rexml/text.rb#278
4458
+ # pkg:gem/rexml#lib/rexml/text.rb:271
4358
4459
  def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
4359
4460
 
4360
- # source://rexml//lib/rexml/text.rb#233
4461
+ # pkg:gem/rexml#lib/rexml/text.rb:225
4361
4462
  def inspect; end
4362
4463
 
4363
- # source://rexml//lib/rexml/text.rb#175
4464
+ # pkg:gem/rexml#lib/rexml/text.rb:170
4364
4465
  def node_type; end
4365
4466
 
4366
- # source://rexml//lib/rexml/text.rb#125
4467
+ # pkg:gem/rexml#lib/rexml/text.rb:110
4367
4468
  def parent=(parent); end
4368
4469
 
4369
4470
  # If +raw+ is true, then REXML leaves the value alone
4370
4471
  #
4371
- # source://rexml//lib/rexml/text.rb#21
4472
+ # pkg:gem/rexml#lib/rexml/text.rb:21
4372
4473
  def raw; end
4373
4474
 
4374
4475
  # If +raw+ is true, then REXML leaves the value alone
4375
4476
  #
4376
- # source://rexml//lib/rexml/text.rb#21
4477
+ # pkg:gem/rexml#lib/rexml/text.rb:21
4377
4478
  def raw=(_arg0); end
4378
4479
 
4379
4480
  # Returns the string value of this text node. This string is always
@@ -4390,7 +4491,7 @@ class REXML::Text < ::REXML::Child
4390
4491
  # u = Text.new( "sean russell", false, nil, true )
4391
4492
  # u.to_s #-> "sean russell"
4392
4493
  #
4393
- # source://rexml//lib/rexml/text.rb#228
4494
+ # pkg:gem/rexml#lib/rexml/text.rb:220
4394
4495
  def to_s; end
4395
4496
 
4396
4497
  # Returns the string value of this text. This is the text without
@@ -4407,7 +4508,7 @@ class REXML::Text < ::REXML::Child
4407
4508
  # u = Text.new( "sean russell", false, nil, true )
4408
4509
  # u.value #-> "sean russell"
4409
4510
  #
4410
- # source://rexml//lib/rexml/text.rb#250
4511
+ # pkg:gem/rexml#lib/rexml/text.rb:242
4411
4512
  def value; end
4412
4513
 
4413
4514
  # Sets the contents of this text node. This expects the text to be
@@ -4418,16 +4519,16 @@ class REXML::Text < ::REXML::Child
4418
4519
  # e[0].value = "bar" # <a>bar</a>
4419
4520
  # e[0].value = "<a>" # <a>&lt;a&gt;</a>
4420
4521
  #
4421
- # source://rexml//lib/rexml/text.rb#261
4522
+ # pkg:gem/rexml#lib/rexml/text.rb:254
4422
4523
  def value=(val); end
4423
4524
 
4424
- # source://rexml//lib/rexml/text.rb#267
4525
+ # pkg:gem/rexml#lib/rexml/text.rb:260
4425
4526
  def wrap(string, width, addnewline = T.unsafe(nil)); end
4426
4527
 
4427
4528
  # == DEPRECATED
4428
4529
  # See REXML::Formatters
4429
4530
  #
4430
- # source://rexml//lib/rexml/text.rb#293
4531
+ # pkg:gem/rexml#lib/rexml/text.rb:288
4431
4532
  def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
4432
4533
 
4433
4534
  # Writes out text, substituting special characters beforehand.
@@ -4445,124 +4546,104 @@ class REXML::Text < ::REXML::Child
4445
4546
  # }
4446
4547
  # puts ascOut
4447
4548
  #
4448
- # source://rexml//lib/rexml/text.rb#325
4549
+ # pkg:gem/rexml#lib/rexml/text.rb:318
4449
4550
  def write_with_substitution(out, input); end
4450
4551
 
4451
4552
  # FIXME
4452
4553
  # This probably won't work properly
4453
4554
  #
4454
- # source://rexml//lib/rexml/text.rb#305
4555
+ # pkg:gem/rexml#lib/rexml/text.rb:300
4455
4556
  def xpath; end
4456
4557
 
4457
4558
  private
4458
4559
 
4459
- # source://rexml//lib/rexml/text.rb#338
4560
+ # pkg:gem/rexml#lib/rexml/text.rb:331
4460
4561
  def clear_cache; end
4461
4562
 
4462
4563
  class << self
4463
4564
  # check for illegal characters
4464
4565
  #
4465
- # source://rexml//lib/rexml/text.rb#131
4466
- def check(string, pattern, doctype); end
4566
+ # pkg:gem/rexml#lib/rexml/text.rb:116
4567
+ def check(string, pattern, doctype = T.unsafe(nil)); end
4467
4568
 
4468
- # source://rexml//lib/rexml/text.rb#407
4569
+ # pkg:gem/rexml#lib/rexml/text.rb:401
4469
4570
  def expand(ref, doctype, filter); end
4470
4571
 
4471
4572
  # Escapes all possible entities
4472
4573
  #
4473
- # source://rexml//lib/rexml/text.rb#370
4574
+ # pkg:gem/rexml#lib/rexml/text.rb:363
4474
4575
  def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
4475
4576
 
4476
4577
  # Reads text, substituting entities
4477
4578
  #
4478
- # source://rexml//lib/rexml/text.rb#344
4579
+ # pkg:gem/rexml#lib/rexml/text.rb:337
4479
4580
  def read_with_substitution(input, illegal = T.unsafe(nil)); end
4480
4581
 
4481
4582
  # Unescapes all possible entities
4482
4583
  #
4483
- # source://rexml//lib/rexml/text.rb#394
4484
- def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
4584
+ # pkg:gem/rexml#lib/rexml/text.rb:387
4585
+ def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil), entity_expansion_text_limit: T.unsafe(nil)); end
4485
4586
  end
4486
4587
  end
4487
4588
 
4488
- # source://rexml//lib/rexml/undefinednamespaceexception.rb#4
4589
+ # pkg:gem/rexml#lib/rexml/undefinednamespaceexception.rb:4
4489
4590
  class REXML::UndefinedNamespaceException < ::REXML::ParseException
4490
- # @return [UndefinedNamespaceException] a new instance of UndefinedNamespaceException
4491
- #
4492
- # source://rexml//lib/rexml/undefinednamespaceexception.rb#5
4591
+ # pkg:gem/rexml#lib/rexml/undefinednamespaceexception.rb:5
4493
4592
  def initialize(prefix, source, parser); end
4494
4593
  end
4495
4594
 
4496
- # source://rexml//lib/rexml/validation/validationexception.rb#4
4595
+ # pkg:gem/rexml#lib/rexml/validation/validationexception.rb:4
4497
4596
  class REXML::Validation::ValidationException < ::RuntimeError
4498
- # @return [ValidationException] a new instance of ValidationException
4499
- #
4500
- # source://rexml//lib/rexml/validation/validationexception.rb#5
4597
+ # pkg:gem/rexml#lib/rexml/validation/validationexception.rb:5
4501
4598
  def initialize(msg); end
4502
4599
  end
4503
4600
 
4504
4601
  # NEEDS DOCUMENTATION
4505
4602
  #
4506
- # source://rexml//lib/rexml/xmldecl.rb#8
4603
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:8
4507
4604
  class REXML::XMLDecl < ::REXML::Child
4508
4605
  include ::REXML::Encoding
4509
4606
 
4510
- # @return [XMLDecl] a new instance of XMLDecl
4511
- #
4512
- # source://rexml//lib/rexml/xmldecl.rb#20
4607
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:20
4513
4608
  def initialize(version = T.unsafe(nil), encoding = T.unsafe(nil), standalone = T.unsafe(nil)); end
4514
4609
 
4515
- # source://rexml//lib/rexml/xmldecl.rb#56
4610
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:56
4516
4611
  def ==(other); end
4517
4612
 
4518
- # source://rexml//lib/rexml/xmldecl.rb#39
4613
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:39
4519
4614
  def clone; end
4520
4615
 
4521
- # source://rexml//lib/rexml/xmldecl.rb#102
4616
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:102
4522
4617
  def dowrite; end
4523
4618
 
4524
- # source://rexml//lib/rexml/xmldecl.rb#76
4619
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:76
4525
4620
  def encoding=(enc); end
4526
4621
 
4527
- # source://rexml//lib/rexml/xmldecl.rb#106
4622
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:106
4528
4623
  def inspect; end
4529
4624
 
4530
- # source://rexml//lib/rexml/xmldecl.rb#69
4625
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:69
4531
4626
  def node_type; end
4532
4627
 
4533
- # source://rexml//lib/rexml/xmldecl.rb#98
4628
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:98
4534
4629
  def nowrite; end
4535
4630
 
4536
- # source://rexml//lib/rexml/encoding.rb#7
4631
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:74
4537
4632
  def old_enc=(encoding); end
4538
4633
 
4539
- # Returns the value of attribute standalone.
4540
- #
4541
- # source://rexml//lib/rexml/xmldecl.rb#17
4634
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:73
4542
4635
  def stand_alone?; end
4543
4636
 
4544
- # Returns the value of attribute standalone.
4545
- #
4546
- # source://rexml//lib/rexml/xmldecl.rb#17
4637
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:17
4547
4638
  def standalone; end
4548
4639
 
4549
- # Sets the attribute standalone
4550
- #
4551
- # @param value the value to set the attribute standalone to.
4552
- #
4553
- # source://rexml//lib/rexml/xmldecl.rb#17
4640
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:17
4554
4641
  def standalone=(_arg0); end
4555
4642
 
4556
- # Returns the value of attribute version.
4557
- #
4558
- # source://rexml//lib/rexml/xmldecl.rb#17
4643
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:17
4559
4644
  def version; end
4560
4645
 
4561
- # Sets the attribute version
4562
- #
4563
- # @param value the value to set the attribute version to.
4564
- #
4565
- # source://rexml//lib/rexml/xmldecl.rb#17
4646
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:17
4566
4647
  def version=(_arg0); end
4567
4648
 
4568
4649
  # indent::
@@ -4572,25 +4653,21 @@ class REXML::XMLDecl < ::REXML::Child
4572
4653
  # ie_hack::
4573
4654
  # Ignored
4574
4655
  #
4575
- # source://rexml//lib/rexml/xmldecl.rb#49
4656
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:49
4576
4657
  def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
4577
4658
 
4578
- # Returns the value of attribute writeencoding.
4579
- #
4580
- # source://rexml//lib/rexml/xmldecl.rb#18
4659
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:18
4581
4660
  def writeencoding; end
4582
4661
 
4583
- # Returns the value of attribute writethis.
4584
- #
4585
- # source://rexml//lib/rexml/xmldecl.rb#18
4662
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:18
4586
4663
  def writethis; end
4587
4664
 
4588
- # source://rexml//lib/rexml/xmldecl.rb#63
4665
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:63
4589
4666
  def xmldecl(version, encoding, standalone); end
4590
4667
 
4591
4668
  private
4592
4669
 
4593
- # source://rexml//lib/rexml/xmldecl.rb#111
4670
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:111
4594
4671
  def content(enc); end
4595
4672
 
4596
4673
  class << self
@@ -4600,31 +4677,82 @@ class REXML::XMLDecl < ::REXML::Child
4600
4677
  #
4601
4678
  # Note that XML 1.1 documents *must* include an XML declaration
4602
4679
  #
4603
- # source://rexml//lib/rexml/xmldecl.rb#92
4680
+ # pkg:gem/rexml#lib/rexml/xmldecl.rb:92
4604
4681
  def default; end
4605
4682
  end
4606
4683
  end
4607
4684
 
4685
+ # Wrapper class. Use this class to access the XPath functions.
4686
+ #
4687
+ # pkg:gem/rexml#lib/rexml/xpath.rb:7
4688
+ class REXML::XPath
4689
+ include ::REXML::Functions
4690
+
4691
+ class << self
4692
+ # Iterates over nodes that match the given path, calling the supplied
4693
+ # block with the match.
4694
+ # element::
4695
+ # The context element
4696
+ # path::
4697
+ # The xpath to search for. If not supplied or nil, defaults to '*'
4698
+ # namespaces::
4699
+ # If supplied, a Hash which defines a namespace mapping
4700
+ # variables::
4701
+ # If supplied, a Hash which maps $variables in the query
4702
+ # to values. This can be used to avoid XPath injection attacks
4703
+ # or to automatically handle escaping string values.
4704
+ #
4705
+ # XPath.each( node ) { |el| ... }
4706
+ # XPath.each( node, '/*[@attr='v']' ) { |el| ... }
4707
+ # XPath.each( node, 'ancestor::x' ) { |el| ... }
4708
+ # XPath.each( node, '/book/publisher/text()=$publisher', {}, {"publisher"=>"O'Reilly"}) \
4709
+ # {|el| ... }
4710
+ #
4711
+ # pkg:gem/rexml#lib/rexml/xpath.rb:55
4712
+ def each(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil), &block); end
4713
+
4714
+ # Finds and returns the first node that matches the supplied xpath.
4715
+ # element::
4716
+ # The context element
4717
+ # path::
4718
+ # The xpath to search for. If not supplied or nil, returns the first
4719
+ # node matching '*'.
4720
+ # namespaces::
4721
+ # If supplied, a Hash which defines a namespace mapping.
4722
+ # variables::
4723
+ # If supplied, a Hash which maps $variables in the query
4724
+ # to values. This can be used to avoid XPath injection attacks
4725
+ # or to automatically handle escaping string values.
4726
+ #
4727
+ # XPath.first( node )
4728
+ # XPath.first( doc, "//b"} )
4729
+ # XPath.first( node, "a/x:b", { "x"=>"http://doofus" } )
4730
+ # XPath.first( node, '/book/publisher/text()=$publisher', {}, {"publisher"=>"O'Reilly"})
4731
+ #
4732
+ # pkg:gem/rexml#lib/rexml/xpath.rb:31
4733
+ def first(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil)); end
4734
+
4735
+ # Returns an array of nodes matching a given XPath.
4736
+ #
4737
+ # pkg:gem/rexml#lib/rexml/xpath.rb:62
4738
+ def match(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil)); end
4739
+ end
4740
+ end
4741
+
4608
4742
  # @private
4609
4743
  #
4610
- # source://rexml//lib/rexml/xpath_parser.rb#959
4744
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:965
4611
4745
  class REXML::XPathNode
4612
- # @return [XPathNode] a new instance of XPathNode
4613
- #
4614
- # source://rexml//lib/rexml/xpath_parser.rb#961
4746
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:967
4615
4747
  def initialize(node, context = T.unsafe(nil)); end
4616
4748
 
4617
- # Returns the value of attribute context.
4618
- #
4619
- # source://rexml//lib/rexml/xpath_parser.rb#960
4749
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:966
4620
4750
  def context; end
4621
4751
 
4622
- # source://rexml//lib/rexml/xpath_parser.rb#970
4752
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:976
4623
4753
  def position; end
4624
4754
 
4625
- # Returns the value of attribute raw_node.
4626
- #
4627
- # source://rexml//lib/rexml/xpath_parser.rb#960
4755
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:966
4628
4756
  def raw_node; end
4629
4757
  end
4630
4758
 
@@ -4633,16 +4761,14 @@ end
4633
4761
  # There is strange, dark magic at work in this code. Beware. Go back! Go
4634
4762
  # back while you still can!
4635
4763
  #
4636
- # source://rexml//lib/rexml/xpath_parser.rb#54
4764
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:54
4637
4765
  class REXML::XPathParser
4638
4766
  include ::REXML::XMLTokens
4639
4767
 
4640
- # @return [XPathParser] a new instance of XPathParser
4641
- #
4642
- # source://rexml//lib/rexml/xpath_parser.rb#60
4768
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:60
4643
4769
  def initialize(strict: T.unsafe(nil)); end
4644
4770
 
4645
- # source://rexml//lib/rexml/xpath_parser.rb#94
4771
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:107
4646
4772
  def []=(variable_name, value); end
4647
4773
 
4648
4774
  # Performs a depth-first (document order) XPath search, and returns the
@@ -4650,66 +4776,66 @@ class REXML::XPathParser
4650
4776
  #
4651
4777
  # FIXME: This method is incomplete!
4652
4778
  #
4653
- # source://rexml//lib/rexml/xpath_parser.rb#103
4779
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:116
4654
4780
  def first(path_stack, node); end
4655
4781
 
4656
- # source://rexml//lib/rexml/xpath_parser.rb#84
4657
- def get_first(path, nodeset); end
4782
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:97
4783
+ def get_first(path, node); end
4658
4784
 
4659
- # source://rexml//lib/rexml/xpath_parser.rb#139
4660
- def match(path_stack, nodeset); end
4785
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:153
4786
+ def match(path_stack, node); end
4661
4787
 
4662
- # source://rexml//lib/rexml/xpath_parser.rb#69
4788
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:69
4663
4789
  def namespaces=(namespaces = T.unsafe(nil)); end
4664
4790
 
4665
- # source://rexml//lib/rexml/xpath_parser.rb#79
4666
- def parse(path, nodeset); end
4791
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:79
4792
+ def parse(path, node); end
4667
4793
 
4668
- # source://rexml//lib/rexml/xpath_parser.rb#89
4669
- def predicate(path, nodeset); end
4794
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:102
4795
+ def predicate(path, node); end
4670
4796
 
4671
- # source://rexml//lib/rexml/xpath_parser.rb#74
4797
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:74
4672
4798
  def variables=(vars = T.unsafe(nil)); end
4673
4799
 
4674
4800
  private
4675
4801
 
4676
- # source://rexml//lib/rexml/xpath_parser.rb#775
4802
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:781
4677
4803
  def child(nodeset); end
4678
4804
 
4679
- # source://rexml//lib/rexml/xpath_parser.rb#916
4805
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:922
4680
4806
  def compare(a, operator, b); end
4681
4807
 
4682
- # source://rexml//lib/rexml/xpath_parser.rb#678
4808
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:687
4683
4809
  def descendant(nodeset, include_self); end
4684
4810
 
4685
- # source://rexml//lib/rexml/xpath_parser.rb#689
4811
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:698
4686
4812
  def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
4687
4813
 
4688
- # source://rexml//lib/rexml/xpath_parser.rb#938
4814
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:944
4689
4815
  def each_unnode(nodeset); end
4690
4816
 
4691
- # source://rexml//lib/rexml/xpath_parser.rb#637
4817
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:646
4692
4818
  def enter(tag, *args); end
4693
4819
 
4694
- # source://rexml//lib/rexml/xpath_parser.rb#815
4820
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:821
4695
4821
  def equality_relational_compare(set1, op, set2); end
4696
4822
 
4697
- # source://rexml//lib/rexml/xpath_parser.rb#591
4823
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:596
4698
4824
  def evaluate_predicate(expression, nodesets); end
4699
4825
 
4700
4826
  # Expr takes a stack of path elements and a set of nodes (either a Parent
4701
4827
  # or an Array and returns an Array of matching nodes
4702
4828
  #
4703
- # source://rexml//lib/rexml/xpath_parser.rb#175
4829
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:186
4704
4830
  def expr(path_stack, nodeset, context = T.unsafe(nil)); end
4705
4831
 
4706
- # source://rexml//lib/rexml/xpath_parser.rb#582
4832
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:587
4707
4833
  def filter_nodeset(nodeset); end
4708
4834
 
4709
- # source://rexml//lib/rexml/xpath_parser.rb#745
4835
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:754
4710
4836
  def following(node); end
4711
4837
 
4712
- # source://rexml//lib/rexml/xpath_parser.rb#756
4838
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:765
4713
4839
  def following_node_of(node); end
4714
4840
 
4715
4841
  # Returns a String namespace for a node, given a prefix
@@ -4718,22 +4844,22 @@ class REXML::XPathParser
4718
4844
  # 1. Use the supplied namespace mapping first.
4719
4845
  # 2. If no mapping was supplied, use the context node to look up the namespace
4720
4846
  #
4721
- # source://rexml//lib/rexml/xpath_parser.rb#163
4847
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:174
4722
4848
  def get_namespace(node, prefix); end
4723
4849
 
4724
- # source://rexml//lib/rexml/xpath_parser.rb#642
4850
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:651
4725
4851
  def leave(tag, *args); end
4726
4852
 
4727
- # source://rexml//lib/rexml/xpath_parser.rb#763
4853
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:771
4728
4854
  def next_sibling_node(node); end
4729
4855
 
4730
- # source://rexml//lib/rexml/xpath_parser.rb#477
4856
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:488
4731
4857
  def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
4732
4858
 
4733
- # source://rexml//lib/rexml/xpath_parser.rb#802
4859
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:808
4734
4860
  def norm(b); end
4735
4861
 
4736
- # source://rexml//lib/rexml/xpath_parser.rb#890
4862
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:896
4737
4863
  def normalize_compare_values(a, operator, b); end
4738
4864
 
4739
4865
  # Builds a nodeset of all of the preceding nodes of the supplied node,
@@ -4741,10 +4867,10 @@ class REXML::XPathParser
4741
4867
  # preceding:: includes every element in the document that precedes this node,
4742
4868
  # except for ancestors
4743
4869
  #
4744
- # source://rexml//lib/rexml/xpath_parser.rb#708
4870
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:717
4745
4871
  def preceding(node); end
4746
4872
 
4747
- # source://rexml//lib/rexml/xpath_parser.rb#730
4873
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:739
4748
4874
  def preceding_node_of(node); end
4749
4875
 
4750
4876
  # Reorders an array of nodes so that they are in document order
@@ -4756,26 +4882,24 @@ class REXML::XPathParser
4756
4882
  # I wouldn't have to do this. Maybe add a document IDX for each node?
4757
4883
  # Problems with mutable documents. Or, rewrite everything.
4758
4884
  #
4759
- # source://rexml//lib/rexml/xpath_parser.rb#655
4885
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:664
4760
4886
  def sort(array_of_nodes, order); end
4761
4887
 
4762
- # source://rexml//lib/rexml/xpath_parser.rb#441
4888
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:452
4763
4889
  def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end
4764
4890
 
4765
- # @return [Boolean]
4766
- #
4767
- # source://rexml//lib/rexml/xpath_parser.rb#154
4891
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:165
4768
4892
  def strict?; end
4769
4893
 
4770
- # source://rexml//lib/rexml/xpath_parser.rb#630
4894
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:639
4771
4895
  def trace(*args); end
4772
4896
 
4773
- # source://rexml//lib/rexml/xpath_parser.rb#950
4897
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:956
4774
4898
  def unnode(nodeset); end
4775
4899
 
4776
- # source://rexml//lib/rexml/xpath_parser.rb#877
4900
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:883
4777
4901
  def value_type(value); end
4778
4902
  end
4779
4903
 
4780
- # source://rexml//lib/rexml/xpath_parser.rb#58
4904
+ # pkg:gem/rexml#lib/rexml/xpath_parser.rb:58
4781
4905
  REXML::XPathParser::DEBUG = T.let(T.unsafe(nil), FalseClass)