packwerk 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/packwerk/application_validator.rb +2 -1
- data/lib/packwerk/graph.rb +15 -56
- data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +1 -2
- data/lib/packwerk/run_context.rb +5 -0
- data/lib/packwerk/validators/dependency_validator.rb +5 -4
- data/lib/packwerk/version.rb +1 -1
- data/sorbet/rbi/gems/{actionpack@7.0.3.1.rbi → actionpack@7.0.8.7.rbi} +1338 -1227
- data/sorbet/rbi/gems/{actionview@7.0.3.1.rbi → actionview@7.0.8.7.rbi} +548 -503
- data/sorbet/rbi/gems/{activesupport@7.0.3.1.rbi → activesupport@7.0.8.7.rbi} +714 -635
- data/sorbet/rbi/gems/{better_html@2.0.1.rbi → better_html@2.1.1.rbi} +21 -21
- data/sorbet/rbi/gems/{concurrent-ruby@1.1.10.rbi → concurrent-ruby@1.3.5.rbi} +1390 -1366
- data/sorbet/rbi/gems/{constant_resolver@0.2.0.rbi → constant_resolver@0.3.0.rbi} +22 -13
- data/sorbet/rbi/gems/{erubi@1.11.0.rbi → erubi@1.13.1.rbi} +28 -17
- data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.14.7.rbi} +234 -172
- data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.7.2.rbi} +94 -74
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/{loofah@2.18.0.rbi → loofah@2.24.0.rbi} +470 -243
- data/sorbet/rbi/gems/{minitest@5.16.2.rbi → minitest@5.25.4.rbi} +577 -472
- data/sorbet/rbi/gems/{mocha@1.14.0.rbi → mocha@2.5.0.rbi} +468 -684
- data/sorbet/rbi/gems/{nokogiri@1.15.3.rbi → nokogiri@1.18.4.rbi} +1756 -869
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +36 -36
- data/sorbet/rbi/gems/{rack-test@2.0.2.rbi → rack-test@2.2.0.rbi} +87 -114
- data/sorbet/rbi/gems/{rack@2.2.4.rbi → rack@2.2.13.rbi} +243 -195
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +754 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +764 -0
- data/sorbet/rbi/gems/{railties@7.0.3.1.rbi → railties@7.0.8.7.rbi} +146 -140
- data/sorbet/rbi/gems/{regexp_parser@2.5.0.rbi → regexp_parser@2.9.2.rbi} +947 -542
- data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.3.9.rbi} +452 -312
- data/sorbet/rbi/gems/{rubocop-ast@1.21.0.rbi → rubocop-ast@1.31.3.rbi} +717 -588
- data/sorbet/rbi/gems/{rubocop@1.34.1.rbi → rubocop@1.64.1.rbi} +10916 -4406
- data/sorbet/rbi/gems/{ruby-progressbar@1.11.0.rbi → ruby-progressbar@1.13.0.rbi} +359 -281
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/{tzinfo@2.0.5.rbi → tzinfo@2.0.6.rbi} +144 -141
- data/sorbet/rbi/gems/{unicode-display_width@2.2.0.rbi → unicode-display_width@2.5.0.rbi} +24 -7
- metadata +36 -41
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +0 -8
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -455
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -542
- data/sorbet/rbi/gems/ruby-lsp@0.2.3.rbi +0 -11
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +0 -8
- /data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
# typed:
|
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.
|
@@ -101,18 +101,18 @@ class REXML::Attribute
|
|
101
101
|
#
|
102
102
|
# @return [Attribute] a new instance of Attribute
|
103
103
|
#
|
104
|
-
# source://rexml//lib/rexml/attribute.rb#
|
104
|
+
# source://rexml//lib/rexml/attribute.rb#42
|
105
105
|
def initialize(first, second = T.unsafe(nil), parent = T.unsafe(nil)); end
|
106
106
|
|
107
107
|
# Returns true if other is an Attribute and has the same name and value,
|
108
108
|
# false otherwise.
|
109
109
|
#
|
110
|
-
# source://rexml//lib/rexml/attribute.rb#
|
110
|
+
# source://rexml//lib/rexml/attribute.rb#106
|
111
111
|
def ==(other); end
|
112
112
|
|
113
113
|
# Returns a copy of this attribute
|
114
114
|
#
|
115
|
-
# source://rexml//lib/rexml/attribute.rb#
|
115
|
+
# source://rexml//lib/rexml/attribute.rb#164
|
116
116
|
def clone; end
|
117
117
|
|
118
118
|
# source://rexml//lib/rexml/attribute.rb#132
|
@@ -128,15 +128,15 @@ class REXML::Attribute
|
|
128
128
|
#
|
129
129
|
# Returns this attribute
|
130
130
|
#
|
131
|
-
# source://rexml//lib/rexml/attribute.rb#
|
131
|
+
# source://rexml//lib/rexml/attribute.rb#172
|
132
132
|
def element=(element); end
|
133
133
|
|
134
134
|
# Creates (and returns) a hash from both the name and value
|
135
135
|
#
|
136
|
-
# source://rexml//lib/rexml/attribute.rb#
|
136
|
+
# source://rexml//lib/rexml/attribute.rb#111
|
137
137
|
def hash; end
|
138
138
|
|
139
|
-
# source://rexml//lib/rexml/attribute.rb#
|
139
|
+
# source://rexml//lib/rexml/attribute.rb#198
|
140
140
|
def inspect; end
|
141
141
|
|
142
142
|
# Returns the namespace URL, if defined, or nil otherwise
|
@@ -161,17 +161,17 @@ class REXML::Attribute
|
|
161
161
|
# e.add_attribute("a", "b")
|
162
162
|
# e.attribute("a").namespace # => ""
|
163
163
|
#
|
164
|
-
# source://rexml//lib/rexml/attribute.rb#
|
164
|
+
# source://rexml//lib/rexml/attribute.rb#95
|
165
165
|
def namespace(arg = T.unsafe(nil)); end
|
166
166
|
|
167
|
-
# source://rexml//lib/rexml/attribute.rb#
|
167
|
+
# source://rexml//lib/rexml/attribute.rb#194
|
168
168
|
def node_type; end
|
169
169
|
|
170
170
|
# The normalized value of this attribute. That is, the attribute with
|
171
171
|
# entities intact.
|
172
172
|
#
|
173
|
-
# source://rexml//lib/rexml/attribute.rb#
|
174
|
-
def normalized=(
|
173
|
+
# source://rexml//lib/rexml/attribute.rb#158
|
174
|
+
def normalized=(new_normalized); end
|
175
175
|
|
176
176
|
# Returns the namespace of the attribute.
|
177
177
|
#
|
@@ -183,14 +183,14 @@ class REXML::Attribute
|
|
183
183
|
# a = Attribute.new( "x", "y" )
|
184
184
|
# a.prefix # -> ""
|
185
185
|
#
|
186
|
-
# source://rexml//lib/rexml/attribute.rb#
|
186
|
+
# source://rexml//lib/rexml/attribute.rb#70
|
187
187
|
def prefix; end
|
188
188
|
|
189
189
|
# Removes this Attribute from the tree, and returns true if successful
|
190
190
|
#
|
191
191
|
# This method is usually not called directly.
|
192
192
|
#
|
193
|
-
# source://rexml//lib/rexml/attribute.rb#
|
193
|
+
# source://rexml//lib/rexml/attribute.rb#185
|
194
194
|
def remove; end
|
195
195
|
|
196
196
|
# Returns the attribute value, with entities replaced
|
@@ -205,28 +205,28 @@ class REXML::Attribute
|
|
205
205
|
# b = Attribute.new( "ns:x", "y" )
|
206
206
|
# b.to_string # -> "ns:x='y'"
|
207
207
|
#
|
208
|
-
# source://rexml//lib/rexml/attribute.rb#
|
208
|
+
# source://rexml//lib/rexml/attribute.rb#121
|
209
209
|
def to_string; end
|
210
210
|
|
211
211
|
# Returns the UNNORMALIZED value of this attribute. That is, entities
|
212
212
|
# have been expanded to their values
|
213
213
|
#
|
214
|
-
# source://rexml//lib/rexml/attribute.rb#
|
214
|
+
# source://rexml//lib/rexml/attribute.rb#149
|
215
215
|
def value; end
|
216
216
|
|
217
217
|
# Writes this attribute (EG, puts 'key="value"' to the output)
|
218
218
|
#
|
219
|
-
# source://rexml//lib/rexml/attribute.rb#
|
219
|
+
# source://rexml//lib/rexml/attribute.rb#190
|
220
220
|
def write(output, indent = T.unsafe(nil)); end
|
221
221
|
|
222
|
-
# source://rexml//lib/rexml/attribute.rb#
|
222
|
+
# source://rexml//lib/rexml/attribute.rb#204
|
223
223
|
def xpath; end
|
224
224
|
end
|
225
225
|
|
226
226
|
# A class that defines the set of Attributes of an Element and provides
|
227
227
|
# operations for accessing elements in that set.
|
228
228
|
#
|
229
|
-
# source://rexml//lib/rexml/element.rb#
|
229
|
+
# source://rexml//lib/rexml/element.rb#2137
|
230
230
|
class REXML::Attributes < ::Hash
|
231
231
|
# :call-seq:
|
232
232
|
# new(element)
|
@@ -247,7 +247,7 @@ class REXML::Attributes < ::Hash
|
|
247
247
|
#
|
248
248
|
# @return [Attributes] a new instance of Attributes
|
249
249
|
#
|
250
|
-
# source://rexml//lib/rexml/element.rb#
|
250
|
+
# source://rexml//lib/rexml/element.rb#2156
|
251
251
|
def initialize(element); end
|
252
252
|
|
253
253
|
# :call-seq:
|
@@ -270,7 +270,7 @@ class REXML::Attributes < ::Hash
|
|
270
270
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
271
271
|
# attrs.include?('baz') # => true
|
272
272
|
#
|
273
|
-
# source://rexml//lib/rexml/element.rb#
|
273
|
+
# source://rexml//lib/rexml/element.rb#2522
|
274
274
|
def <<(attribute); end
|
275
275
|
|
276
276
|
# :call-seq:
|
@@ -294,7 +294,7 @@ class REXML::Attributes < ::Hash
|
|
294
294
|
#
|
295
295
|
# Related: get_attribute (returns an \Attribute object).
|
296
296
|
#
|
297
|
-
# source://rexml//lib/rexml/element.rb#
|
297
|
+
# source://rexml//lib/rexml/element.rb#2181
|
298
298
|
def [](name); end
|
299
299
|
|
300
300
|
# :call-seq:
|
@@ -320,7 +320,7 @@ class REXML::Attributes < ::Hash
|
|
320
320
|
# attrs['baz:att'] = nil
|
321
321
|
# attrs.include?('baz:att') # => false
|
322
322
|
#
|
323
|
-
# source://rexml//lib/rexml/element.rb#
|
323
|
+
# source://rexml//lib/rexml/element.rb#2365
|
324
324
|
def []=(name, value); end
|
325
325
|
|
326
326
|
# :call-seq:
|
@@ -343,7 +343,7 @@ class REXML::Attributes < ::Hash
|
|
343
343
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
344
344
|
# attrs.include?('baz') # => true
|
345
345
|
#
|
346
|
-
# source://rexml//lib/rexml/element.rb#
|
346
|
+
# source://rexml//lib/rexml/element.rb#2522
|
347
347
|
def add(attribute); end
|
348
348
|
|
349
349
|
# :call-seq:
|
@@ -374,7 +374,7 @@ class REXML::Attributes < ::Hash
|
|
374
374
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele att='<'/>
|
375
375
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele/>
|
376
376
|
#
|
377
|
-
# source://rexml//lib/rexml/element.rb#
|
377
|
+
# source://rexml//lib/rexml/element.rb#2475
|
378
378
|
def delete(attribute); end
|
379
379
|
|
380
380
|
# :call-seq:
|
@@ -393,7 +393,7 @@ class REXML::Attributes < ::Hash
|
|
393
393
|
# attrs = ele.attributes
|
394
394
|
# attrs.delete_all('att') # => [att='<']
|
395
395
|
#
|
396
|
-
# source://rexml//lib/rexml/element.rb#
|
396
|
+
# source://rexml//lib/rexml/element.rb#2544
|
397
397
|
def delete_all(name); end
|
398
398
|
|
399
399
|
# :call-seq:
|
@@ -418,7 +418,7 @@ class REXML::Attributes < ::Hash
|
|
418
418
|
# ["bar:att", "2"]
|
419
419
|
# ["att", "<"]
|
420
420
|
#
|
421
|
-
# source://rexml//lib/rexml/element.rb#
|
421
|
+
# source://rexml//lib/rexml/element.rb#2283
|
422
422
|
def each; end
|
423
423
|
|
424
424
|
# :call-seq:
|
@@ -443,7 +443,7 @@ class REXML::Attributes < ::Hash
|
|
443
443
|
# [REXML::Attribute, bar:att='2']
|
444
444
|
# [REXML::Attribute, att='<']
|
445
445
|
#
|
446
|
-
# source://rexml//lib/rexml/element.rb#
|
446
|
+
# source://rexml//lib/rexml/element.rb#2250
|
447
447
|
def each_attribute; end
|
448
448
|
|
449
449
|
# :call-seq:
|
@@ -465,7 +465,7 @@ class REXML::Attributes < ::Hash
|
|
465
465
|
# attrs.get_attribute('att') # => att='<'
|
466
466
|
# attrs.get_attribute('nosuch') # => nil
|
467
467
|
#
|
468
|
-
# source://rexml//lib/rexml/element.rb#
|
468
|
+
# source://rexml//lib/rexml/element.rb#2309
|
469
469
|
def get_attribute(name); end
|
470
470
|
|
471
471
|
# :call-seq:
|
@@ -485,7 +485,7 @@ class REXML::Attributes < ::Hash
|
|
485
485
|
# attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
|
486
486
|
# attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
|
487
487
|
#
|
488
|
-
# source://rexml//lib/rexml/element.rb#
|
488
|
+
# source://rexml//lib/rexml/element.rb#2570
|
489
489
|
def get_attribute_ns(namespace, name); end
|
490
490
|
|
491
491
|
# :call-seq:
|
@@ -502,7 +502,7 @@ class REXML::Attributes < ::Hash
|
|
502
502
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
503
503
|
# ele.attributes.length # => 3
|
504
504
|
#
|
505
|
-
# source://rexml//lib/rexml/element.rb#
|
505
|
+
# source://rexml//lib/rexml/element.rb#2221
|
506
506
|
def length; end
|
507
507
|
|
508
508
|
# :call-seq:
|
@@ -514,7 +514,7 @@ class REXML::Attributes < ::Hash
|
|
514
514
|
# d = REXML::Document.new(xml_string)
|
515
515
|
# d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
|
516
516
|
#
|
517
|
-
# source://rexml//lib/rexml/element.rb#
|
517
|
+
# source://rexml//lib/rexml/element.rb#2431
|
518
518
|
def namespaces; end
|
519
519
|
|
520
520
|
# :call-seq:
|
@@ -528,7 +528,7 @@ class REXML::Attributes < ::Hash
|
|
528
528
|
# d = REXML::Document.new(xml_string)
|
529
529
|
# d.root.attributes.prefixes # => ["x", "y"]
|
530
530
|
#
|
531
|
-
# source://rexml//lib/rexml/element.rb#
|
531
|
+
# source://rexml//lib/rexml/element.rb#2406
|
532
532
|
def prefixes; end
|
533
533
|
|
534
534
|
# :call-seq:
|
@@ -545,7 +545,7 @@ class REXML::Attributes < ::Hash
|
|
545
545
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
546
546
|
# ele.attributes.length # => 3
|
547
547
|
#
|
548
|
-
# source://rexml//lib/rexml/element.rb#
|
548
|
+
# source://rexml//lib/rexml/element.rb#2221
|
549
549
|
def size; end
|
550
550
|
|
551
551
|
# :call-seq:
|
@@ -564,7 +564,7 @@ class REXML::Attributes < ::Hash
|
|
564
564
|
# attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
|
565
565
|
# attrs.first.class # => REXML::Attribute
|
566
566
|
#
|
567
|
-
# source://rexml//lib/rexml/element.rb#
|
567
|
+
# source://rexml//lib/rexml/element.rb#2203
|
568
568
|
def to_a; end
|
569
569
|
end
|
570
570
|
|
@@ -978,7 +978,7 @@ class REXML::Document < ::REXML::Element
|
|
978
978
|
# d.to_s # => "<root><foo>Foo</foo><bar>Bar</bar></root>"
|
979
979
|
#
|
980
980
|
# When argument +document+ is given, it must be an existing
|
981
|
-
# document object, whose context and attributes (but not
|
981
|
+
# document object, whose context and attributes (but not children)
|
982
982
|
# are cloned into the new document:
|
983
983
|
#
|
984
984
|
# d = REXML::Document.new(xml_string)
|
@@ -1037,7 +1037,7 @@ class REXML::Document < ::REXML::Element
|
|
1037
1037
|
# d.add(REXML::Element.new('foo'))
|
1038
1038
|
# d.to_s # => "<foo/>"
|
1039
1039
|
#
|
1040
|
-
# source://rexml//lib/rexml/document.rb#
|
1040
|
+
# source://rexml//lib/rexml/document.rb#172
|
1041
1041
|
def <<(child); end
|
1042
1042
|
|
1043
1043
|
# :call-seq:
|
@@ -1074,7 +1074,7 @@ class REXML::Document < ::REXML::Element
|
|
1074
1074
|
# d.add(REXML::Element.new('foo'))
|
1075
1075
|
# d.to_s # => "<foo/>"
|
1076
1076
|
#
|
1077
|
-
# source://rexml//lib/rexml/document.rb#
|
1077
|
+
# source://rexml//lib/rexml/document.rb#172
|
1078
1078
|
def add(child); end
|
1079
1079
|
|
1080
1080
|
# :call-seq:
|
@@ -1084,7 +1084,7 @@ class REXML::Document < ::REXML::Element
|
|
1084
1084
|
#
|
1085
1085
|
# REXML::Element.add_element(name_or_element, attributes)
|
1086
1086
|
#
|
1087
|
-
# source://rexml//lib/rexml/document.rb#
|
1087
|
+
# source://rexml//lib/rexml/document.rb#211
|
1088
1088
|
def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end
|
1089
1089
|
|
1090
1090
|
# :call-seq:
|
@@ -1093,7 +1093,7 @@ class REXML::Document < ::REXML::Element
|
|
1093
1093
|
# Returns the new document resulting from executing
|
1094
1094
|
# <tt>Document.new(self)</tt>. See Document.new.
|
1095
1095
|
#
|
1096
|
-
# source://rexml//lib/rexml/document.rb#
|
1096
|
+
# source://rexml//lib/rexml/document.rb#122
|
1097
1097
|
def clone; end
|
1098
1098
|
|
1099
1099
|
# :call-seq:
|
@@ -1106,10 +1106,10 @@ class REXML::Document < ::REXML::Element
|
|
1106
1106
|
# d = REXML::Document.new('')
|
1107
1107
|
# d.doctype.class # => nil
|
1108
1108
|
#
|
1109
|
-
# source://rexml//lib/rexml/document.rb#
|
1109
|
+
# source://rexml//lib/rexml/document.rb#243
|
1110
1110
|
def doctype; end
|
1111
1111
|
|
1112
|
-
# source://rexml//lib/rexml/document.rb#
|
1112
|
+
# source://rexml//lib/rexml/document.rb#446
|
1113
1113
|
def document; end
|
1114
1114
|
|
1115
1115
|
# :call-seq:
|
@@ -1122,20 +1122,39 @@ class REXML::Document < ::REXML::Element
|
|
1122
1122
|
# d = REXML::Document.new('')
|
1123
1123
|
# d.encoding # => "UTF-8"
|
1124
1124
|
#
|
1125
|
-
# source://rexml//lib/rexml/document.rb#
|
1125
|
+
# source://rexml//lib/rexml/document.rb#292
|
1126
1126
|
def encoding; end
|
1127
1127
|
|
1128
1128
|
# Returns the value of attribute entity_expansion_count.
|
1129
1129
|
#
|
1130
|
-
# source://rexml//lib/rexml/document.rb#
|
1130
|
+
# source://rexml//lib/rexml/document.rb#435
|
1131
1131
|
def entity_expansion_count; end
|
1132
1132
|
|
1133
|
+
# Sets the attribute entity_expansion_limit
|
1134
|
+
#
|
1135
|
+
# @param value the value to set the attribute entity_expansion_limit to.
|
1136
|
+
#
|
1137
|
+
# source://rexml//lib/rexml/document.rb#436
|
1138
|
+
def entity_expansion_limit=(_arg0); end
|
1139
|
+
|
1140
|
+
# Returns the value of attribute entity_expansion_text_limit.
|
1141
|
+
#
|
1142
|
+
# source://rexml//lib/rexml/document.rb#437
|
1143
|
+
def entity_expansion_text_limit; end
|
1144
|
+
|
1145
|
+
# Sets the attribute entity_expansion_text_limit
|
1146
|
+
#
|
1147
|
+
# @param value the value to set the attribute entity_expansion_text_limit to.
|
1148
|
+
#
|
1149
|
+
# source://rexml//lib/rexml/document.rb#437
|
1150
|
+
def entity_expansion_text_limit=(_arg0); end
|
1151
|
+
|
1133
1152
|
# :call-seq:
|
1134
1153
|
# expanded_name -> empty_string
|
1135
1154
|
#
|
1136
1155
|
# Returns an empty string.
|
1137
1156
|
#
|
1138
|
-
# source://rexml//lib/rexml/document.rb#
|
1157
|
+
# source://rexml//lib/rexml/document.rb#131
|
1139
1158
|
def expanded_name; end
|
1140
1159
|
|
1141
1160
|
# :call-seq:
|
@@ -1145,7 +1164,7 @@ class REXML::Document < ::REXML::Element
|
|
1145
1164
|
# d = doc_type
|
1146
1165
|
# d ? d.name : "UNDEFINED"
|
1147
1166
|
#
|
1148
|
-
# source://rexml//lib/rexml/document.rb#
|
1167
|
+
# source://rexml//lib/rexml/document.rb#131
|
1149
1168
|
def name; end
|
1150
1169
|
|
1151
1170
|
# :call-seq:
|
@@ -1153,10 +1172,10 @@ class REXML::Document < ::REXML::Element
|
|
1153
1172
|
#
|
1154
1173
|
# Returns the symbol +:document+.
|
1155
1174
|
#
|
1156
|
-
# source://rexml//lib/rexml/document.rb#
|
1175
|
+
# source://rexml//lib/rexml/document.rb#112
|
1157
1176
|
def node_type; end
|
1158
1177
|
|
1159
|
-
# source://rexml//lib/rexml/document.rb#
|
1178
|
+
# source://rexml//lib/rexml/document.rb#439
|
1160
1179
|
def record_entity_expansion; end
|
1161
1180
|
|
1162
1181
|
# :call-seq:
|
@@ -1169,7 +1188,7 @@ class REXML::Document < ::REXML::Element
|
|
1169
1188
|
# d = REXML::Document.new('')
|
1170
1189
|
# d.root # => nil
|
1171
1190
|
#
|
1172
|
-
# source://rexml//lib/rexml/document.rb#
|
1191
|
+
# source://rexml//lib/rexml/document.rb#227
|
1173
1192
|
def root; end
|
1174
1193
|
|
1175
1194
|
# :call-seq:
|
@@ -1185,7 +1204,7 @@ class REXML::Document < ::REXML::Element
|
|
1185
1204
|
#
|
1186
1205
|
# @return [Boolean]
|
1187
1206
|
#
|
1188
|
-
# source://rexml//lib/rexml/document.rb#
|
1207
|
+
# source://rexml//lib/rexml/document.rb#307
|
1189
1208
|
def stand_alone?; end
|
1190
1209
|
|
1191
1210
|
# :call-seq:
|
@@ -1199,7 +1218,7 @@ class REXML::Document < ::REXML::Element
|
|
1199
1218
|
# d = REXML::Document.new('')
|
1200
1219
|
# d.version # => "1.0"
|
1201
1220
|
#
|
1202
|
-
# source://rexml//lib/rexml/document.rb#
|
1221
|
+
# source://rexml//lib/rexml/document.rb#277
|
1203
1222
|
def version; end
|
1204
1223
|
|
1205
1224
|
# :call-seq:
|
@@ -1258,7 +1277,7 @@ class REXML::Document < ::REXML::Element
|
|
1258
1277
|
# instead of encoding in XML declaration.
|
1259
1278
|
# Defaults to nil. It means encoding in XML declaration is used.
|
1260
1279
|
#
|
1261
|
-
# source://rexml//lib/rexml/document.rb#
|
1280
|
+
# source://rexml//lib/rexml/document.rb#367
|
1262
1281
|
def write(*arguments); end
|
1263
1282
|
|
1264
1283
|
# :call-seq:
|
@@ -1274,12 +1293,12 @@ class REXML::Document < ::REXML::Element
|
|
1274
1293
|
# d.xml_decl.class # => REXML::XMLDecl
|
1275
1294
|
# d.xml_decl.to_s # => ""
|
1276
1295
|
#
|
1277
|
-
# source://rexml//lib/rexml/document.rb#
|
1296
|
+
# source://rexml//lib/rexml/document.rb#260
|
1278
1297
|
def xml_decl; end
|
1279
1298
|
|
1280
1299
|
private
|
1281
1300
|
|
1282
|
-
# source://rexml//lib/rexml/document.rb#
|
1301
|
+
# source://rexml//lib/rexml/document.rb#451
|
1283
1302
|
def build(source); end
|
1284
1303
|
|
1285
1304
|
class << self
|
@@ -1287,31 +1306,31 @@ class REXML::Document < ::REXML::Element
|
|
1287
1306
|
#
|
1288
1307
|
# Deprecated. Use REXML::Security.entity_expansion_limit= instead.
|
1289
1308
|
#
|
1290
|
-
# source://rexml//lib/rexml/document.rb#
|
1309
|
+
# source://rexml//lib/rexml/document.rb#417
|
1291
1310
|
def entity_expansion_limit; end
|
1292
1311
|
|
1293
1312
|
# Set the entity expansion limit. By default the limit is set to 10000.
|
1294
1313
|
#
|
1295
1314
|
# Deprecated. Use REXML::Security.entity_expansion_limit= instead.
|
1296
1315
|
#
|
1297
|
-
# source://rexml//lib/rexml/document.rb#
|
1316
|
+
# source://rexml//lib/rexml/document.rb#410
|
1298
1317
|
def entity_expansion_limit=(val); end
|
1299
1318
|
|
1300
1319
|
# Get the entity expansion limit. By default the limit is set to 10240.
|
1301
1320
|
#
|
1302
1321
|
# Deprecated. Use REXML::Security.entity_expansion_text_limit instead.
|
1303
1322
|
#
|
1304
|
-
# source://rexml//lib/rexml/document.rb#
|
1323
|
+
# source://rexml//lib/rexml/document.rb#431
|
1305
1324
|
def entity_expansion_text_limit; end
|
1306
1325
|
|
1307
1326
|
# Set the entity expansion limit. By default the limit is set to 10240.
|
1308
1327
|
#
|
1309
1328
|
# Deprecated. Use REXML::Security.entity_expansion_text_limit= instead.
|
1310
1329
|
#
|
1311
|
-
# source://rexml//lib/rexml/document.rb#
|
1330
|
+
# source://rexml//lib/rexml/document.rb#424
|
1312
1331
|
def entity_expansion_text_limit=(val); end
|
1313
1332
|
|
1314
|
-
# source://rexml//lib/rexml/document.rb#
|
1333
|
+
# source://rexml//lib/rexml/document.rb#403
|
1315
1334
|
def parse_stream(source, listener); end
|
1316
1335
|
end
|
1317
1336
|
end
|
@@ -1577,7 +1596,7 @@ end
|
|
1577
1596
|
# #attributes:: Returns the REXML::Attributes object for the element.
|
1578
1597
|
# #context:: Returns or sets the context hash for the element.
|
1579
1598
|
#
|
1580
|
-
# source://rexml//lib/rexml/element.rb#
|
1599
|
+
# source://rexml//lib/rexml/element.rb#271
|
1581
1600
|
class REXML::Element < ::REXML::Parent
|
1582
1601
|
include ::REXML::XMLTokens
|
1583
1602
|
include ::REXML::Namespace
|
@@ -1620,7 +1639,7 @@ class REXML::Element < ::REXML::Parent
|
|
1620
1639
|
#
|
1621
1640
|
# @return [Element] a new instance of Element
|
1622
1641
|
#
|
1623
|
-
# source://rexml//lib/rexml/element.rb#
|
1642
|
+
# source://rexml//lib/rexml/element.rb#319
|
1624
1643
|
def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
|
1625
1644
|
|
1626
1645
|
# :call-seq:
|
@@ -1662,7 +1681,7 @@ class REXML::Element < ::REXML::Parent
|
|
1662
1681
|
# root[:attr] # => "value"
|
1663
1682
|
# root[:nosuch] # => nil
|
1664
1683
|
#
|
1665
|
-
# source://rexml//lib/rexml/element.rb#
|
1684
|
+
# source://rexml//lib/rexml/element.rb#1246
|
1666
1685
|
def [](name_or_index); end
|
1667
1686
|
|
1668
1687
|
# :call-seq:
|
@@ -1691,7 +1710,7 @@ class REXML::Element < ::REXML::Parent
|
|
1691
1710
|
# e.add_attribute(a) # => attr='VALUE'
|
1692
1711
|
# e['attr'] # => "VALUE"
|
1693
1712
|
#
|
1694
|
-
# source://rexml//lib/rexml/element.rb#
|
1713
|
+
# source://rexml//lib/rexml/element.rb#1345
|
1695
1714
|
def add_attribute(key, value = T.unsafe(nil)); end
|
1696
1715
|
|
1697
1716
|
# :call-seq:
|
@@ -1717,7 +1736,7 @@ class REXML::Element < ::REXML::Parent
|
|
1717
1736
|
# a = [['foo' => 'bar'], ['baz' => 'bat']]
|
1718
1737
|
# e.add_attributes(a)
|
1719
1738
|
#
|
1720
|
-
# source://rexml//lib/rexml/element.rb#
|
1739
|
+
# source://rexml//lib/rexml/element.rb#1376
|
1721
1740
|
def add_attributes(hash); end
|
1722
1741
|
|
1723
1742
|
# :call-seq:
|
@@ -1754,7 +1773,7 @@ class REXML::Element < ::REXML::Parent
|
|
1754
1773
|
# e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
|
1755
1774
|
# e0[1] # => <bar bat='0' bam='1'/>
|
1756
1775
|
#
|
1757
|
-
# source://rexml//lib/rexml/element.rb#
|
1776
|
+
# source://rexml//lib/rexml/element.rb#732
|
1758
1777
|
def add_element(element, attrs = T.unsafe(nil)); end
|
1759
1778
|
|
1760
1779
|
# :call-seq:
|
@@ -1775,7 +1794,7 @@ class REXML::Element < ::REXML::Parent
|
|
1775
1794
|
# e.add_namespace('baz', 'bat')
|
1776
1795
|
# e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
|
1777
1796
|
#
|
1778
|
-
# source://rexml//lib/rexml/element.rb#
|
1797
|
+
# source://rexml//lib/rexml/element.rb#655
|
1779
1798
|
def add_namespace(prefix, uri = T.unsafe(nil)); end
|
1780
1799
|
|
1781
1800
|
# :call-seq:
|
@@ -1817,7 +1836,7 @@ class REXML::Element < ::REXML::Parent
|
|
1817
1836
|
# a.add_text(REXML::Text.new('baz'))
|
1818
1837
|
# a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
|
1819
1838
|
#
|
1820
|
-
# source://rexml//lib/rexml/element.rb#
|
1839
|
+
# source://rexml//lib/rexml/element.rb#1147
|
1821
1840
|
def add_text(text); end
|
1822
1841
|
|
1823
1842
|
# :call-seq:
|
@@ -1849,13 +1868,13 @@ class REXML::Element < ::REXML::Parent
|
|
1849
1868
|
# document.root.attribute("x") # => x='x'
|
1850
1869
|
# document.root.attribute("x", "a") # => a:x='a:x'
|
1851
1870
|
#
|
1852
|
-
# source://rexml//lib/rexml/element.rb#
|
1871
|
+
# source://rexml//lib/rexml/element.rb#1287
|
1853
1872
|
def attribute(name, namespace = T.unsafe(nil)); end
|
1854
1873
|
|
1855
1874
|
# Mechanisms for accessing attributes and child elements of this
|
1856
1875
|
# element.
|
1857
1876
|
#
|
1858
|
-
# source://rexml//lib/rexml/element.rb#
|
1877
|
+
# source://rexml//lib/rexml/element.rb#278
|
1859
1878
|
def attributes; end
|
1860
1879
|
|
1861
1880
|
# :call-seq:
|
@@ -1874,7 +1893,7 @@ class REXML::Element < ::REXML::Parent
|
|
1874
1893
|
# cds.frozen? # => true
|
1875
1894
|
# cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
|
1876
1895
|
#
|
1877
|
-
# source://rexml//lib/rexml/element.rb#
|
1896
|
+
# source://rexml//lib/rexml/element.rb#1420
|
1878
1897
|
def cdatas; end
|
1879
1898
|
|
1880
1899
|
# :call-seq:
|
@@ -1887,7 +1906,7 @@ class REXML::Element < ::REXML::Parent
|
|
1887
1906
|
# e.add_attributes({'bar' => 0, 'baz' => 1})
|
1888
1907
|
# e.clone # => <foo bar='0' baz='1'/>
|
1889
1908
|
#
|
1890
|
-
# source://rexml//lib/rexml/element.rb#
|
1909
|
+
# source://rexml//lib/rexml/element.rb#383
|
1891
1910
|
def clone; end
|
1892
1911
|
|
1893
1912
|
# :call-seq:
|
@@ -1907,19 +1926,19 @@ class REXML::Element < ::REXML::Parent
|
|
1907
1926
|
# cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
|
1908
1927
|
# cs.map {|c| c.to_s } # => ["foo", "bar"]
|
1909
1928
|
#
|
1910
|
-
# source://rexml//lib/rexml/element.rb#
|
1929
|
+
# source://rexml//lib/rexml/element.rb#1441
|
1911
1930
|
def comments; end
|
1912
1931
|
|
1913
1932
|
# The context holds information about the processing environment, such as
|
1914
1933
|
# whitespace handling.
|
1915
1934
|
#
|
1916
|
-
# source://rexml//lib/rexml/element.rb#
|
1935
|
+
# source://rexml//lib/rexml/element.rb#281
|
1917
1936
|
def context; end
|
1918
1937
|
|
1919
1938
|
# The context holds information about the processing environment, such as
|
1920
1939
|
# whitespace handling.
|
1921
1940
|
#
|
1922
|
-
# source://rexml//lib/rexml/element.rb#
|
1941
|
+
# source://rexml//lib/rexml/element.rb#281
|
1923
1942
|
def context=(_arg0); end
|
1924
1943
|
|
1925
1944
|
# :call-seq:
|
@@ -1933,7 +1952,7 @@ class REXML::Element < ::REXML::Parent
|
|
1933
1952
|
# e.delete_attribute('bar') # => <bar/>
|
1934
1953
|
# e.delete_attribute('bar') # => nil
|
1935
1954
|
#
|
1936
|
-
# source://rexml//lib/rexml/element.rb#
|
1955
|
+
# source://rexml//lib/rexml/element.rb#1395
|
1937
1956
|
def delete_attribute(key); end
|
1938
1957
|
|
1939
1958
|
# :call-seq:
|
@@ -1973,7 +1992,7 @@ class REXML::Element < ::REXML::Parent
|
|
1973
1992
|
# a.delete_element('//c') # => <c/>
|
1974
1993
|
# a.delete_element('//c') # => nil
|
1975
1994
|
#
|
1976
|
-
# source://rexml//lib/rexml/element.rb#
|
1995
|
+
# source://rexml//lib/rexml/element.rb#778
|
1977
1996
|
def delete_element(element); end
|
1978
1997
|
|
1979
1998
|
# :call-seq:
|
@@ -1998,7 +2017,7 @@ class REXML::Element < ::REXML::Parent
|
|
1998
2017
|
# d.root.delete_namespace('nosuch')
|
1999
2018
|
# d.to_s # => "<a/>"
|
2000
2019
|
#
|
2001
|
-
# source://rexml//lib/rexml/element.rb#
|
2020
|
+
# source://rexml//lib/rexml/element.rb#687
|
2002
2021
|
def delete_namespace(namespace = T.unsafe(nil)); end
|
2003
2022
|
|
2004
2023
|
# :call-seq:
|
@@ -2022,7 +2041,7 @@ class REXML::Element < ::REXML::Parent
|
|
2022
2041
|
#
|
2023
2042
|
# Related: #root, #root_node.
|
2024
2043
|
#
|
2025
|
-
# source://rexml//lib/rexml/element.rb#
|
2044
|
+
# source://rexml//lib/rexml/element.rb#475
|
2026
2045
|
def document; end
|
2027
2046
|
|
2028
2047
|
# :call-seq:
|
@@ -2041,7 +2060,7 @@ class REXML::Element < ::REXML::Parent
|
|
2041
2060
|
# <d> ... </>
|
2042
2061
|
# <e/>
|
2043
2062
|
#
|
2044
|
-
# source://rexml//lib/rexml/element.rb#
|
2063
|
+
# source://rexml//lib/rexml/element.rb#930
|
2045
2064
|
def each_element(xpath = T.unsafe(nil), &block); end
|
2046
2065
|
|
2047
2066
|
# :call-seq:
|
@@ -2093,7 +2112,7 @@ class REXML::Element < ::REXML::Parent
|
|
2093
2112
|
#
|
2094
2113
|
# <d id='1'/>
|
2095
2114
|
#
|
2096
|
-
# source://rexml//lib/rexml/element.rb#
|
2115
|
+
# source://rexml//lib/rexml/element.rb#847
|
2097
2116
|
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2098
2117
|
|
2099
2118
|
# :call-seq:
|
@@ -2143,13 +2162,13 @@ class REXML::Element < ::REXML::Parent
|
|
2143
2162
|
#
|
2144
2163
|
# <c> ... </>
|
2145
2164
|
#
|
2146
|
-
# source://rexml//lib/rexml/element.rb#
|
2165
|
+
# source://rexml//lib/rexml/element.rb#904
|
2147
2166
|
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2148
2167
|
|
2149
2168
|
# Mechanisms for accessing attributes and child elements of this
|
2150
2169
|
# element.
|
2151
2170
|
#
|
2152
|
-
# source://rexml//lib/rexml/element.rb#
|
2171
|
+
# source://rexml//lib/rexml/element.rb#278
|
2153
2172
|
def elements; end
|
2154
2173
|
|
2155
2174
|
# :call-seq:
|
@@ -2167,7 +2186,7 @@ class REXML::Element < ::REXML::Parent
|
|
2167
2186
|
# d = REXML::Document.new(xml_string)
|
2168
2187
|
# d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
|
2169
2188
|
#
|
2170
|
-
# source://rexml//lib/rexml/element.rb#
|
2189
|
+
# source://rexml//lib/rexml/element.rb#949
|
2171
2190
|
def get_elements(xpath); end
|
2172
2191
|
|
2173
2192
|
# :call-seq:
|
@@ -2187,7 +2206,7 @@ class REXML::Element < ::REXML::Parent
|
|
2187
2206
|
#
|
2188
2207
|
# d.root.get_text(1) # => "this is bold!"
|
2189
2208
|
#
|
2190
|
-
# source://rexml//lib/rexml/element.rb#
|
2209
|
+
# source://rexml//lib/rexml/element.rb#1053
|
2191
2210
|
def get_text(path = T.unsafe(nil)); end
|
2192
2211
|
|
2193
2212
|
# :call-seq:
|
@@ -2202,7 +2221,7 @@ class REXML::Element < ::REXML::Parent
|
|
2202
2221
|
#
|
2203
2222
|
# @return [Boolean]
|
2204
2223
|
#
|
2205
|
-
# source://rexml//lib/rexml/element.rb#
|
2224
|
+
# source://rexml//lib/rexml/element.rb#1315
|
2206
2225
|
def has_attributes?; end
|
2207
2226
|
|
2208
2227
|
# :call-seq:
|
@@ -2219,13 +2238,13 @@ class REXML::Element < ::REXML::Parent
|
|
2219
2238
|
#
|
2220
2239
|
# @return [Boolean]
|
2221
2240
|
#
|
2222
|
-
# source://rexml//lib/rexml/element.rb#
|
2241
|
+
# source://rexml//lib/rexml/element.rb#794
|
2223
2242
|
def has_elements?; end
|
2224
2243
|
|
2225
2244
|
# :call-seq:
|
2226
2245
|
# has_text? -> true or false
|
2227
2246
|
#
|
2228
|
-
# Returns +true if the element has one or more text noded,
|
2247
|
+
# Returns +true+ if the element has one or more text noded,
|
2229
2248
|
# +false+ otherwise:
|
2230
2249
|
#
|
2231
2250
|
# d = REXML::Document.new '<a><b/>text<c/></a>'
|
@@ -2236,7 +2255,7 @@ class REXML::Element < ::REXML::Parent
|
|
2236
2255
|
#
|
2237
2256
|
# @return [Boolean]
|
2238
2257
|
#
|
2239
|
-
# source://rexml//lib/rexml/element.rb#
|
2258
|
+
# source://rexml//lib/rexml/element.rb#1002
|
2240
2259
|
def has_text?; end
|
2241
2260
|
|
2242
2261
|
# :call-seq:
|
@@ -2246,7 +2265,7 @@ class REXML::Element < ::REXML::Parent
|
|
2246
2265
|
#
|
2247
2266
|
# See {Element Context}[../doc/rexml/context_rdoc.html].
|
2248
2267
|
#
|
2249
|
-
# source://rexml//lib/rexml/element.rb#
|
2268
|
+
# source://rexml//lib/rexml/element.rb#513
|
2250
2269
|
def ignore_whitespace_nodes; end
|
2251
2270
|
|
2252
2271
|
# :call-seq:
|
@@ -2270,7 +2289,7 @@ class REXML::Element < ::REXML::Parent
|
|
2270
2289
|
# e.add_element(REXML::Element.new('baz'))
|
2271
2290
|
# e.inspect # => "<foo bar='0' baz='1'> ... </>"
|
2272
2291
|
#
|
2273
|
-
# source://rexml//lib/rexml/element.rb#
|
2292
|
+
# source://rexml//lib/rexml/element.rb#358
|
2274
2293
|
def inspect; end
|
2275
2294
|
|
2276
2295
|
# :call-seq:
|
@@ -2290,7 +2309,7 @@ class REXML::Element < ::REXML::Parent
|
|
2290
2309
|
# is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
|
2291
2310
|
# is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
|
2292
2311
|
#
|
2293
|
-
# source://rexml//lib/rexml/element.rb#
|
2312
|
+
# source://rexml//lib/rexml/element.rb#1462
|
2294
2313
|
def instructions; end
|
2295
2314
|
|
2296
2315
|
# :call-seq:
|
@@ -2313,7 +2332,7 @@ class REXML::Element < ::REXML::Parent
|
|
2313
2332
|
# b.namespace('y') # => "2"
|
2314
2333
|
# b.namespace('nosuch') # => nil
|
2315
2334
|
#
|
2316
|
-
# source://rexml//lib/rexml/element.rb#
|
2335
|
+
# source://rexml//lib/rexml/element.rb#618
|
2317
2336
|
def namespace(prefix = T.unsafe(nil)); end
|
2318
2337
|
|
2319
2338
|
# :call-seq:
|
@@ -2335,7 +2354,7 @@ class REXML::Element < ::REXML::Parent
|
|
2335
2354
|
# d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
|
2336
2355
|
# d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
|
2337
2356
|
#
|
2338
|
-
# source://rexml//lib/rexml/element.rb#
|
2357
|
+
# source://rexml//lib/rexml/element.rb#591
|
2339
2358
|
def namespaces; end
|
2340
2359
|
|
2341
2360
|
# :call-seq:
|
@@ -2348,7 +2367,7 @@ class REXML::Element < ::REXML::Parent
|
|
2348
2367
|
# d.root.elements['b'].next_element #-> <c/>
|
2349
2368
|
# d.root.elements['c'].next_element #-> nil
|
2350
2369
|
#
|
2351
|
-
# source://rexml//lib/rexml/element.rb#
|
2370
|
+
# source://rexml//lib/rexml/element.rb#963
|
2352
2371
|
def next_element; end
|
2353
2372
|
|
2354
2373
|
# :call-seq:
|
@@ -2360,7 +2379,7 @@ class REXML::Element < ::REXML::Parent
|
|
2360
2379
|
# a = d.root # => <a/>
|
2361
2380
|
# a.node_type # => :element
|
2362
2381
|
#
|
2363
|
-
# source://rexml//lib/rexml/element.rb#
|
2382
|
+
# source://rexml//lib/rexml/element.rb#1168
|
2364
2383
|
def node_type; end
|
2365
2384
|
|
2366
2385
|
# :call-seq:
|
@@ -2382,7 +2401,7 @@ class REXML::Element < ::REXML::Parent
|
|
2382
2401
|
# d.elements['//b'].prefixes # => ["x", "y"]
|
2383
2402
|
# d.elements['//c'].prefixes # => ["x", "y", "z"]
|
2384
2403
|
#
|
2385
|
-
# source://rexml//lib/rexml/element.rb#
|
2404
|
+
# source://rexml//lib/rexml/element.rb#565
|
2386
2405
|
def prefixes; end
|
2387
2406
|
|
2388
2407
|
# :call-seq:
|
@@ -2395,7 +2414,7 @@ class REXML::Element < ::REXML::Parent
|
|
2395
2414
|
# d.root.elements['c'].previous_element #-> <b/>
|
2396
2415
|
# d.root.elements['b'].previous_element #-> nil
|
2397
2416
|
#
|
2398
|
-
# source://rexml//lib/rexml/element.rb#
|
2417
|
+
# source://rexml//lib/rexml/element.rb#979
|
2399
2418
|
def previous_element; end
|
2400
2419
|
|
2401
2420
|
# :call-seq:
|
@@ -2408,7 +2427,7 @@ class REXML::Element < ::REXML::Parent
|
|
2408
2427
|
# The evaluation is tested against +expanded_name+, and so is namespace
|
2409
2428
|
# sensitive.
|
2410
2429
|
#
|
2411
|
-
# source://rexml//lib/rexml/element.rb#
|
2430
|
+
# source://rexml//lib/rexml/element.rb#533
|
2412
2431
|
def raw; end
|
2413
2432
|
|
2414
2433
|
# :call-seq:
|
@@ -2428,7 +2447,7 @@ class REXML::Element < ::REXML::Parent
|
|
2428
2447
|
#
|
2429
2448
|
# Related: #root_node, #document.
|
2430
2449
|
#
|
2431
|
-
# source://rexml//lib/rexml/element.rb#
|
2450
|
+
# source://rexml//lib/rexml/element.rb#443
|
2432
2451
|
def root; end
|
2433
2452
|
|
2434
2453
|
# :call-seq:
|
@@ -2466,14 +2485,14 @@ class REXML::Element < ::REXML::Parent
|
|
2466
2485
|
#
|
2467
2486
|
# Related: #root, #document.
|
2468
2487
|
#
|
2469
|
-
# source://rexml//lib/rexml/element.rb#
|
2488
|
+
# source://rexml//lib/rexml/element.rb#422
|
2470
2489
|
def root_node; end
|
2471
2490
|
|
2472
2491
|
# :call-seq:
|
2473
2492
|
# text(xpath = nil) -> text_string or nil
|
2474
2493
|
#
|
2475
2494
|
# Returns the text string from the first text node child
|
2476
|
-
# in a specified element, if it exists,
|
2495
|
+
# in a specified element, if it exists, +nil+ otherwise.
|
2477
2496
|
#
|
2478
2497
|
# With no argument, returns the text from the first text node in +self+:
|
2479
2498
|
#
|
@@ -2481,7 +2500,7 @@ class REXML::Element < ::REXML::Parent
|
|
2481
2500
|
# d.root.text.class # => String
|
2482
2501
|
# d.root.text # => "some text "
|
2483
2502
|
#
|
2484
|
-
# With argument +xpath+, returns text from the
|
2503
|
+
# With argument +xpath+, returns text from the first text node
|
2485
2504
|
# in the element that matches +xpath+:
|
2486
2505
|
#
|
2487
2506
|
# d.root.text(1) # => "this is bold!"
|
@@ -2493,7 +2512,7 @@ class REXML::Element < ::REXML::Parent
|
|
2493
2512
|
# Note also that the text note is retrieved by method get_text,
|
2494
2513
|
# and so is always normalized text.
|
2495
2514
|
#
|
2496
|
-
# source://rexml//lib/rexml/element.rb#
|
2515
|
+
# source://rexml//lib/rexml/element.rb#1030
|
2497
2516
|
def text(path = T.unsafe(nil)); end
|
2498
2517
|
|
2499
2518
|
# :call-seq:
|
@@ -2521,7 +2540,7 @@ class REXML::Element < ::REXML::Parent
|
|
2521
2540
|
#
|
2522
2541
|
# d.root.text = nil #-> '<a><b/><c/></a>'
|
2523
2542
|
#
|
2524
|
-
# source://rexml//lib/rexml/element.rb#
|
2543
|
+
# source://rexml//lib/rexml/element.rb#1089
|
2525
2544
|
def text=(text); end
|
2526
2545
|
|
2527
2546
|
# :call-seq:
|
@@ -2536,7 +2555,7 @@ class REXML::Element < ::REXML::Parent
|
|
2536
2555
|
# ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
|
2537
2556
|
# ts.map {|t| t.to_s } # => ["text", "more"]
|
2538
2557
|
#
|
2539
|
-
# source://rexml//lib/rexml/element.rb#
|
2558
|
+
# source://rexml//lib/rexml/element.rb#1478
|
2540
2559
|
def texts; end
|
2541
2560
|
|
2542
2561
|
# :call-seq:
|
@@ -2550,7 +2569,7 @@ class REXML::Element < ::REXML::Parent
|
|
2550
2569
|
# The evaluation is tested against the element's +expanded_name+,
|
2551
2570
|
# and so is namespace-sensitive.
|
2552
2571
|
#
|
2553
|
-
# source://rexml//lib/rexml/element.rb#
|
2572
|
+
# source://rexml//lib/rexml/element.rb#490
|
2554
2573
|
def whitespace; end
|
2555
2574
|
|
2556
2575
|
# == DEPRECATED
|
@@ -2576,7 +2595,7 @@ class REXML::Element < ::REXML::Parent
|
|
2576
2595
|
# doc.write( out ) #-> doc is written to the string 'out'
|
2577
2596
|
# doc.write( $stdout ) #-> doc written to the console
|
2578
2597
|
#
|
2579
|
-
# source://rexml//lib/rexml/element.rb#
|
2598
|
+
# source://rexml//lib/rexml/element.rb#1504
|
2580
2599
|
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
2581
2600
|
|
2582
2601
|
# :call-seq:
|
@@ -2599,17 +2618,17 @@ class REXML::Element < ::REXML::Parent
|
|
2599
2618
|
# e = REXML::Element.new('foo')
|
2600
2619
|
# e.xpath # => "foo"
|
2601
2620
|
#
|
2602
|
-
# source://rexml//lib/rexml/element.rb#
|
2621
|
+
# source://rexml//lib/rexml/element.rb#1192
|
2603
2622
|
def xpath; end
|
2604
2623
|
|
2605
2624
|
private
|
2606
2625
|
|
2607
|
-
# source://rexml//lib/rexml/element.rb#
|
2626
|
+
# source://rexml//lib/rexml/element.rb#1521
|
2608
2627
|
def __to_xpath_helper(node); end
|
2609
2628
|
|
2610
2629
|
# A private helper method
|
2611
2630
|
#
|
2612
|
-
# source://rexml//lib/rexml/element.rb#
|
2631
|
+
# source://rexml//lib/rexml/element.rb#1536
|
2613
2632
|
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
|
2614
2633
|
end
|
2615
2634
|
|
@@ -2663,7 +2682,7 @@ end
|
|
2663
2682
|
# elements = d.root.elements
|
2664
2683
|
# elements # => #<REXML::Elements @element=<bookstore> ... </>>
|
2665
2684
|
#
|
2666
|
-
# source://rexml//lib/rexml/element.rb#
|
2685
|
+
# source://rexml//lib/rexml/element.rb#1591
|
2667
2686
|
class REXML::Elements
|
2668
2687
|
include ::Enumerable
|
2669
2688
|
|
@@ -2680,7 +2699,7 @@ class REXML::Elements
|
|
2680
2699
|
#
|
2681
2700
|
# @return [Elements] a new instance of Elements
|
2682
2701
|
#
|
2683
|
-
# source://rexml//lib/rexml/element.rb#
|
2702
|
+
# source://rexml//lib/rexml/element.rb#1604
|
2684
2703
|
def initialize(parent); end
|
2685
2704
|
|
2686
2705
|
# :call-seq:
|
@@ -2745,7 +2764,7 @@ class REXML::Elements
|
|
2745
2764
|
# element.parent # => <bookstore> ... </>
|
2746
2765
|
# element.context # => {:raw=>:all}
|
2747
2766
|
#
|
2748
|
-
# source://rexml//lib/rexml/element.rb#
|
2767
|
+
# source://rexml//lib/rexml/element.rb#1921
|
2749
2768
|
def <<(element = T.unsafe(nil)); end
|
2750
2769
|
|
2751
2770
|
# :call-seq:
|
@@ -2801,7 +2820,7 @@ class REXML::Elements
|
|
2801
2820
|
# eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
|
2802
2821
|
# eles[5, 'book'] # => nil
|
2803
2822
|
#
|
2804
|
-
# source://rexml//lib/rexml/element.rb#
|
2823
|
+
# source://rexml//lib/rexml/element.rb#1676
|
2805
2824
|
def [](index, name = T.unsafe(nil)); end
|
2806
2825
|
|
2807
2826
|
# :call-seq:
|
@@ -2840,7 +2859,7 @@ class REXML::Elements
|
|
2840
2859
|
# eles[50] = REXML::Text.new('bar') # => "bar"
|
2841
2860
|
# eles.size # => 5
|
2842
2861
|
#
|
2843
|
-
# source://rexml//lib/rexml/element.rb#
|
2862
|
+
# source://rexml//lib/rexml/element.rb#1731
|
2844
2863
|
def []=(index, element); end
|
2845
2864
|
|
2846
2865
|
# :call-seq:
|
@@ -2905,7 +2924,7 @@ class REXML::Elements
|
|
2905
2924
|
# element.parent # => <bookstore> ... </>
|
2906
2925
|
# element.context # => {:raw=>:all}
|
2907
2926
|
#
|
2908
|
-
# source://rexml//lib/rexml/element.rb#
|
2927
|
+
# source://rexml//lib/rexml/element.rb#1921
|
2909
2928
|
def add(element = T.unsafe(nil)); end
|
2910
2929
|
|
2911
2930
|
# :call-seq:
|
@@ -2925,7 +2944,7 @@ class REXML::Elements
|
|
2925
2944
|
# xpath = '//book [@category="web"]'
|
2926
2945
|
# elements.collect(xpath) {|element| element.size } # => [17, 9]
|
2927
2946
|
#
|
2928
|
-
# source://rexml//lib/rexml/element.rb#
|
2947
|
+
# source://rexml//lib/rexml/element.rb#1984
|
2929
2948
|
def collect(xpath = T.unsafe(nil)); end
|
2930
2949
|
|
2931
2950
|
# :call-seq:
|
@@ -2969,7 +2988,7 @@ class REXML::Elements
|
|
2969
2988
|
# elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
|
2970
2989
|
# elements.delete('//nosuch') # => nil
|
2971
2990
|
#
|
2972
|
-
# source://rexml//lib/rexml/element.rb#
|
2991
|
+
# source://rexml//lib/rexml/element.rb#1821
|
2973
2992
|
def delete(element); end
|
2974
2993
|
|
2975
2994
|
# :call-seq:
|
@@ -2989,7 +3008,7 @@ class REXML::Elements
|
|
2989
3008
|
# elements.size # => 0
|
2990
3009
|
# elements.delete_all('//book') # => []
|
2991
3010
|
#
|
2992
|
-
# source://rexml//lib/rexml/element.rb#
|
3011
|
+
# source://rexml//lib/rexml/element.rb#1847
|
2993
3012
|
def delete_all(xpath); end
|
2994
3013
|
|
2995
3014
|
# :call-seq:
|
@@ -3020,7 +3039,7 @@ class REXML::Elements
|
|
3020
3039
|
# <book category='web'> ... </>
|
3021
3040
|
# <book category='web' cover='paperback'> ... </>
|
3022
3041
|
#
|
3023
|
-
# source://rexml//lib/rexml/element.rb#
|
3042
|
+
# source://rexml//lib/rexml/element.rb#1963
|
3024
3043
|
def each(xpath = T.unsafe(nil)); end
|
3025
3044
|
|
3026
3045
|
# :call-seq:
|
@@ -3035,7 +3054,7 @@ class REXML::Elements
|
|
3035
3054
|
#
|
3036
3055
|
# @return [Boolean]
|
3037
3056
|
#
|
3038
|
-
# source://rexml//lib/rexml/element.rb#
|
3057
|
+
# source://rexml//lib/rexml/element.rb#1751
|
3039
3058
|
def empty?; end
|
3040
3059
|
|
3041
3060
|
# :call-seq:
|
@@ -3052,7 +3071,7 @@ class REXML::Elements
|
|
3052
3071
|
# elements.index(ele_4) # => 3
|
3053
3072
|
# elements.index(ele_3) # => -1
|
3054
3073
|
#
|
3055
|
-
# source://rexml//lib/rexml/element.rb#
|
3074
|
+
# source://rexml//lib/rexml/element.rb#1769
|
3056
3075
|
def index(element); end
|
3057
3076
|
|
3058
3077
|
# :call-seq:
|
@@ -3132,7 +3151,7 @@ class REXML::Elements
|
|
3132
3151
|
# total += element.size
|
3133
3152
|
# end # => 26
|
3134
3153
|
#
|
3135
|
-
# source://rexml//lib/rexml/element.rb#
|
3154
|
+
# source://rexml//lib/rexml/element.rb#2069
|
3136
3155
|
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
|
3137
3156
|
|
3138
3157
|
# :call-seq:
|
@@ -3146,7 +3165,7 @@ class REXML::Elements
|
|
3146
3165
|
# elements = REXML::Elements.new(d.root)
|
3147
3166
|
# elements.parent == d.root # => true
|
3148
3167
|
#
|
3149
|
-
# source://rexml//lib/rexml/element.rb#
|
3168
|
+
# source://rexml//lib/rexml/element.rb#1619
|
3150
3169
|
def parent; end
|
3151
3170
|
|
3152
3171
|
# :call-seq:
|
@@ -3158,7 +3177,7 @@ class REXML::Elements
|
|
3158
3177
|
# d.root.elements.size # => 3 # Three elements.
|
3159
3178
|
# d.root.size # => 6 # Three elements plus three text nodes..
|
3160
3179
|
#
|
3161
|
-
# source://rexml//lib/rexml/element.rb#
|
3180
|
+
# source://rexml//lib/rexml/element.rb#2093
|
3162
3181
|
def size; end
|
3163
3182
|
|
3164
3183
|
# :call-seq:
|
@@ -3179,14 +3198,14 @@ class REXML::Elements
|
|
3179
3198
|
#
|
3180
3199
|
# elements.to_a('//c') # => [<c/>]
|
3181
3200
|
#
|
3182
|
-
# source://rexml//lib/rexml/element.rb#
|
3201
|
+
# source://rexml//lib/rexml/element.rb#2117
|
3183
3202
|
def to_a(xpath = T.unsafe(nil)); end
|
3184
3203
|
|
3185
3204
|
private
|
3186
3205
|
|
3187
3206
|
# Private helper class. Removes quotes from quoted strings
|
3188
3207
|
#
|
3189
|
-
# source://rexml//lib/rexml/element.rb#
|
3208
|
+
# source://rexml//lib/rexml/element.rb#2125
|
3190
3209
|
def literalize(name); end
|
3191
3210
|
end
|
3192
3211
|
|
@@ -3228,62 +3247,54 @@ class REXML::Entity < ::REXML::Child
|
|
3228
3247
|
#
|
3229
3248
|
# @return [Entity] a new instance of Entity
|
3230
3249
|
#
|
3231
|
-
# source://rexml//lib/rexml/entity.rb#
|
3250
|
+
# source://rexml//lib/rexml/entity.rb#34
|
3232
3251
|
def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
|
3233
3252
|
|
3234
3253
|
# Returns the value of attribute external.
|
3235
3254
|
#
|
3236
|
-
# source://rexml//lib/rexml/entity.rb#
|
3255
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3237
3256
|
def external; end
|
3238
3257
|
|
3239
3258
|
# Returns the value of attribute name.
|
3240
3259
|
#
|
3241
|
-
# source://rexml//lib/rexml/entity.rb#
|
3260
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3242
3261
|
def name; end
|
3243
3262
|
|
3244
3263
|
# Returns the value of attribute ndata.
|
3245
3264
|
#
|
3246
|
-
# source://rexml//lib/rexml/entity.rb#
|
3265
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3247
3266
|
def ndata; end
|
3248
3267
|
|
3249
3268
|
# Returns the value of this entity unprocessed -- raw. This is the
|
3250
3269
|
# normalized value; that is, with all %ent; and &ent; entities intact
|
3251
3270
|
#
|
3252
|
-
# source://rexml//lib/rexml/entity.rb#
|
3271
|
+
# source://rexml//lib/rexml/entity.rb#86
|
3253
3272
|
def normalized; end
|
3254
3273
|
|
3255
3274
|
# Returns the value of attribute pubid.
|
3256
3275
|
#
|
3257
|
-
# source://rexml//lib/rexml/entity.rb#
|
3276
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3258
3277
|
def pubid; end
|
3259
3278
|
|
3260
3279
|
# Returns the value of attribute ref.
|
3261
3280
|
#
|
3262
|
-
# source://rexml//lib/rexml/entity.rb#
|
3281
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3263
3282
|
def ref; end
|
3264
3283
|
|
3265
3284
|
# Returns this entity as a string. See write().
|
3266
3285
|
#
|
3267
|
-
# source://rexml//lib/rexml/entity.rb#
|
3286
|
+
# source://rexml//lib/rexml/entity.rb#120
|
3268
3287
|
def to_s; end
|
3269
3288
|
|
3270
3289
|
# Evaluates to the unnormalized value of this entity; that is, replacing
|
3271
|
-
#
|
3272
|
-
# +value()+ in that +value+ only replaces %ent; entities.
|
3290
|
+
# &ent; entities.
|
3273
3291
|
#
|
3274
3292
|
# source://rexml//lib/rexml/entity.rb#73
|
3275
3293
|
def unnormalized; end
|
3276
3294
|
|
3277
|
-
# Returns the value of
|
3278
|
-
# are processed. If the value contains internal references (IE,
|
3279
|
-
# %blah;), those are replaced with their values. IE, if the doctype
|
3280
|
-
# contains:
|
3281
|
-
# <!ENTITY % foo "bar">
|
3282
|
-
# <!ENTITY yada "nanoo %foo; nanoo>
|
3283
|
-
# then:
|
3284
|
-
# doctype.entity('yada').value #-> "nanoo bar nanoo"
|
3295
|
+
# Returns the value of attribute value.
|
3285
3296
|
#
|
3286
|
-
# source://rexml//lib/rexml/entity.rb#
|
3297
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3287
3298
|
def value; end
|
3288
3299
|
|
3289
3300
|
# Write out a fully formed, correct entity definition (assuming the Entity
|
@@ -3295,7 +3306,7 @@ class REXML::Entity < ::REXML::Child
|
|
3295
3306
|
# indent::
|
3296
3307
|
# *DEPRECATED* and ignored
|
3297
3308
|
#
|
3298
|
-
# source://rexml//lib/rexml/entity.rb#
|
3309
|
+
# source://rexml//lib/rexml/entity.rb#98
|
3299
3310
|
def write(out, indent = T.unsafe(nil)); end
|
3300
3311
|
|
3301
3312
|
class << self
|
@@ -3304,7 +3315,7 @@ class REXML::Entity < ::REXML::Child
|
|
3304
3315
|
#
|
3305
3316
|
# @return [Boolean]
|
3306
3317
|
#
|
3307
|
-
# source://rexml//lib/rexml/entity.rb#
|
3318
|
+
# source://rexml//lib/rexml/entity.rb#67
|
3308
3319
|
def matches?(string); end
|
3309
3320
|
end
|
3310
3321
|
end
|
@@ -3445,47 +3456,44 @@ end
|
|
3445
3456
|
# A Source that wraps an IO. See the Source class for method
|
3446
3457
|
# documentation
|
3447
3458
|
#
|
3448
|
-
# source://rexml//lib/rexml/source.rb#
|
3459
|
+
# source://rexml//lib/rexml/source.rb#183
|
3449
3460
|
class REXML::IOSource < ::REXML::Source
|
3450
3461
|
# block_size has been deprecated
|
3451
3462
|
#
|
3452
3463
|
# @return [IOSource] a new instance of IOSource
|
3453
3464
|
#
|
3454
|
-
# source://rexml//lib/rexml/source.rb#
|
3465
|
+
# source://rexml//lib/rexml/source.rb#187
|
3455
3466
|
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
3456
3467
|
|
3457
|
-
# source://rexml//lib/rexml/source.rb#215
|
3458
|
-
def consume(pattern); end
|
3459
|
-
|
3460
3468
|
# @return the current line in the source
|
3461
3469
|
#
|
3462
|
-
# source://rexml//lib/rexml/source.rb#
|
3470
|
+
# source://rexml//lib/rexml/source.rb#275
|
3463
3471
|
def current_line; end
|
3464
3472
|
|
3465
3473
|
# @return [Boolean]
|
3466
3474
|
#
|
3467
|
-
# source://rexml//lib/rexml/source.rb#
|
3475
|
+
# source://rexml//lib/rexml/source.rb#270
|
3468
3476
|
def empty?; end
|
3469
3477
|
|
3470
|
-
# source://rexml//lib/rexml/source.rb#
|
3471
|
-
def
|
3478
|
+
# source://rexml//lib/rexml/source.rb#247
|
3479
|
+
def ensure_buffer; end
|
3472
3480
|
|
3473
|
-
# source://rexml//lib/rexml/source.rb#
|
3474
|
-
def
|
3481
|
+
# source://rexml//lib/rexml/source.rb#251
|
3482
|
+
def match(pattern, cons = T.unsafe(nil)); end
|
3475
3483
|
|
3476
|
-
# source://rexml//lib/rexml/source.rb#
|
3477
|
-
def read; end
|
3484
|
+
# source://rexml//lib/rexml/source.rb#208
|
3485
|
+
def read(term = T.unsafe(nil), min_bytes = T.unsafe(nil)); end
|
3478
3486
|
|
3479
|
-
# source://rexml//lib/rexml/source.rb#
|
3480
|
-
def
|
3487
|
+
# source://rexml//lib/rexml/source.rb#229
|
3488
|
+
def read_until(term); end
|
3481
3489
|
|
3482
3490
|
private
|
3483
3491
|
|
3484
|
-
# source://rexml//lib/rexml/source.rb#
|
3492
|
+
# source://rexml//lib/rexml/source.rb#322
|
3485
3493
|
def encoding_updated; end
|
3486
3494
|
|
3487
|
-
# source://rexml//lib/rexml/source.rb#
|
3488
|
-
def readline; end
|
3495
|
+
# source://rexml//lib/rexml/source.rb#297
|
3496
|
+
def readline(term = T.unsafe(nil)); end
|
3489
3497
|
end
|
3490
3498
|
|
3491
3499
|
# Represents an XML Instruction; IE, <? ... ?>
|
@@ -3554,6 +3562,54 @@ class REXML::Instruction < ::REXML::Child
|
|
3554
3562
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
3555
3563
|
end
|
3556
3564
|
|
3565
|
+
# Adds named attributes to an object.
|
3566
|
+
#
|
3567
|
+
# source://rexml//lib/rexml/namespace.rb#7
|
3568
|
+
module REXML::Namespace
|
3569
|
+
include ::REXML::XMLTokens
|
3570
|
+
|
3571
|
+
# The name of the object, valid if set
|
3572
|
+
#
|
3573
|
+
# source://rexml//lib/rexml/namespace.rb#9
|
3574
|
+
def expanded_name; end
|
3575
|
+
|
3576
|
+
# Fully expand the name, even if the prefix wasn't specified in the
|
3577
|
+
# source file.
|
3578
|
+
#
|
3579
|
+
# source://rexml//lib/rexml/namespace.rb#57
|
3580
|
+
def fully_expanded_name; end
|
3581
|
+
|
3582
|
+
# Compares names optionally WITH namespaces
|
3583
|
+
#
|
3584
|
+
# @return [Boolean]
|
3585
|
+
#
|
3586
|
+
# source://rexml//lib/rexml/namespace.rb#43
|
3587
|
+
def has_name?(other, ns = T.unsafe(nil)); end
|
3588
|
+
|
3589
|
+
# The name of the object, valid if set
|
3590
|
+
#
|
3591
|
+
# source://rexml//lib/rexml/namespace.rb#9
|
3592
|
+
def name; end
|
3593
|
+
|
3594
|
+
# Sets the name and the expanded name
|
3595
|
+
#
|
3596
|
+
# source://rexml//lib/rexml/namespace.rb#17
|
3597
|
+
def name=(name); end
|
3598
|
+
|
3599
|
+
# The expanded name of the object, valid if name is set
|
3600
|
+
#
|
3601
|
+
# source://rexml//lib/rexml/namespace.rb#11
|
3602
|
+
def prefix; end
|
3603
|
+
|
3604
|
+
# The expanded name of the object, valid if name is set
|
3605
|
+
#
|
3606
|
+
# source://rexml//lib/rexml/namespace.rb#11
|
3607
|
+
def prefix=(_arg0); end
|
3608
|
+
end
|
3609
|
+
|
3610
|
+
# source://rexml//lib/rexml/namespace.rb#13
|
3611
|
+
REXML::Namespace::NAME_WITHOUT_NAMESPACE = T.let(T.unsafe(nil), Regexp)
|
3612
|
+
|
3557
3613
|
# source://rexml//lib/rexml/doctype.rb#280
|
3558
3614
|
class REXML::NotationDecl < ::REXML::Child
|
3559
3615
|
# @return [NotationDecl] a new instance of NotationDecl
|
@@ -3760,7 +3816,7 @@ class REXML::ParseException < ::RuntimeError
|
|
3760
3816
|
# source://rexml//lib/rexml/parseexception.rb#6
|
3761
3817
|
def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end
|
3762
3818
|
|
3763
|
-
# source://rexml//lib/rexml/parseexception.rb#
|
3819
|
+
# source://rexml//lib/rexml/parseexception.rb#49
|
3764
3820
|
def context; end
|
3765
3821
|
|
3766
3822
|
# Returns the value of attribute continued_exception.
|
@@ -3775,7 +3831,7 @@ class REXML::ParseException < ::RuntimeError
|
|
3775
3831
|
# source://rexml//lib/rexml/parseexception.rb#4
|
3776
3832
|
def continued_exception=(_arg0); end
|
3777
3833
|
|
3778
|
-
# source://rexml//lib/rexml/parseexception.rb#
|
3834
|
+
# source://rexml//lib/rexml/parseexception.rb#44
|
3779
3835
|
def line; end
|
3780
3836
|
|
3781
3837
|
# Returns the value of attribute parser.
|
@@ -3790,7 +3846,7 @@ class REXML::ParseException < ::RuntimeError
|
|
3790
3846
|
# source://rexml//lib/rexml/parseexception.rb#4
|
3791
3847
|
def parser=(_arg0); end
|
3792
3848
|
|
3793
|
-
# source://rexml//lib/rexml/parseexception.rb#
|
3849
|
+
# source://rexml//lib/rexml/parseexception.rb#39
|
3794
3850
|
def position; end
|
3795
3851
|
|
3796
3852
|
# Returns the value of attribute source.
|
@@ -3829,36 +3885,55 @@ end
|
|
3829
3885
|
#
|
3830
3886
|
# Nat Price gave me some good ideas for the API.
|
3831
3887
|
#
|
3832
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3888
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#57
|
3833
3889
|
class REXML::Parsers::BaseParser
|
3834
3890
|
# @return [BaseParser] a new instance of BaseParser
|
3835
3891
|
#
|
3836
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3892
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#163
|
3837
3893
|
def initialize(source); end
|
3838
3894
|
|
3839
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3895
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#173
|
3840
3896
|
def add_listener(listener); end
|
3841
3897
|
|
3842
3898
|
# Returns true if there are no more events
|
3843
3899
|
#
|
3844
3900
|
# @return [Boolean]
|
3845
3901
|
#
|
3846
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3902
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#204
|
3847
3903
|
def empty?; end
|
3848
3904
|
|
3849
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3905
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#536
|
3850
3906
|
def entity(reference, entities); end
|
3851
3907
|
|
3908
|
+
# Returns the value of attribute entity_expansion_count.
|
3909
|
+
#
|
3910
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#178
|
3911
|
+
def entity_expansion_count; end
|
3912
|
+
|
3913
|
+
# Sets the attribute entity_expansion_limit
|
3914
|
+
#
|
3915
|
+
# @param value the value to set the attribute entity_expansion_limit to.
|
3916
|
+
#
|
3917
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#179
|
3918
|
+
def entity_expansion_limit=(_arg0); end
|
3919
|
+
|
3920
|
+
# Sets the attribute entity_expansion_text_limit
|
3921
|
+
#
|
3922
|
+
# @param value the value to set the attribute entity_expansion_text_limit to.
|
3923
|
+
#
|
3924
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#180
|
3925
|
+
def entity_expansion_text_limit=(_arg0); end
|
3926
|
+
|
3852
3927
|
# Returns true if there are more events. Synonymous with !empty?
|
3853
3928
|
#
|
3854
3929
|
# @return [Boolean]
|
3855
3930
|
#
|
3856
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3931
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#209
|
3857
3932
|
def has_next?; end
|
3858
3933
|
|
3859
3934
|
# Escapes all possible entities
|
3860
3935
|
#
|
3861
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3936
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#547
|
3862
3937
|
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
3863
3938
|
|
3864
3939
|
# Peek at the +depth+ event in the stack. The first element on the stack
|
@@ -3868,75 +3943,126 @@ class REXML::Parsers::BaseParser
|
|
3868
3943
|
# event, so you can effectively pre-parse the entire document (pull the
|
3869
3944
|
# entire thing into memory) using this method.
|
3870
3945
|
#
|
3871
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3946
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#225
|
3872
3947
|
def peek(depth = T.unsafe(nil)); end
|
3873
3948
|
|
3874
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3949
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#194
|
3875
3950
|
def position; end
|
3876
3951
|
|
3877
3952
|
# Returns the next event. This is a +PullEvent+ object.
|
3878
3953
|
#
|
3879
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3954
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#240
|
3880
3955
|
def pull; end
|
3881
3956
|
|
3882
3957
|
# Returns the value of attribute source.
|
3883
3958
|
#
|
3884
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3959
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#177
|
3885
3960
|
def source; end
|
3886
3961
|
|
3887
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3962
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#182
|
3888
3963
|
def stream=(source); end
|
3889
3964
|
|
3890
3965
|
# Unescapes all possible entities
|
3891
3966
|
#
|
3892
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3967
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#563
|
3893
3968
|
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
3894
3969
|
|
3895
3970
|
# Push an event back on the head of the stream. This method
|
3896
3971
|
# has (theoretically) infinite depth.
|
3897
3972
|
#
|
3898
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3973
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#215
|
3899
3974
|
def unshift(token); end
|
3900
3975
|
|
3901
3976
|
private
|
3902
3977
|
|
3978
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#612
|
3979
|
+
def add_namespace(prefix, uri); end
|
3980
|
+
|
3903
3981
|
# @return [Boolean]
|
3904
3982
|
#
|
3905
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3983
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#645
|
3906
3984
|
def need_source_encoding_update?(xml_declaration_encoding); end
|
3907
3985
|
|
3908
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3909
|
-
def parse_attributes(prefixes
|
3986
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#765
|
3987
|
+
def parse_attributes(prefixes); end
|
3910
3988
|
|
3911
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3989
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#664
|
3912
3990
|
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
3913
3991
|
|
3914
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3992
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#692
|
3915
3993
|
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
3916
3994
|
|
3917
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3995
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#651
|
3918
3996
|
def parse_name(base_error_message); end
|
3919
3997
|
|
3920
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3998
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#627
|
3999
|
+
def pop_namespaces_restore; end
|
4000
|
+
|
4001
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#730
|
3921
4002
|
def process_instruction; end
|
3922
4003
|
|
3923
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4004
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#250
|
3924
4005
|
def pull_event; end
|
4006
|
+
|
4007
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#621
|
4008
|
+
def push_namespaces_restore; end
|
4009
|
+
|
4010
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#638
|
4011
|
+
def record_entity_expansion(delta = T.unsafe(nil)); end
|
3925
4012
|
end
|
3926
4013
|
|
3927
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4014
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#130
|
3928
4015
|
REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
|
3929
4016
|
|
3930
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4017
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#131
|
3931
4018
|
REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
|
3932
4019
|
|
3933
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4020
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#132
|
3934
4021
|
REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
|
3935
4022
|
|
3936
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4023
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#143
|
4024
|
+
module REXML::Parsers::BaseParser::Private; end
|
4025
|
+
|
4026
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#147
|
4027
|
+
REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
|
4028
|
+
|
4029
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#152
|
4030
|
+
REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4031
|
+
|
4032
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#153
|
4033
|
+
REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
|
4034
|
+
|
4035
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#146
|
4036
|
+
REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4037
|
+
|
4038
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#154
|
4039
|
+
REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4040
|
+
|
4041
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#151
|
4042
|
+
REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4043
|
+
|
4044
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#149
|
4045
|
+
REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4046
|
+
|
4047
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#148
|
4048
|
+
REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4049
|
+
|
4050
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#150
|
4051
|
+
REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4052
|
+
|
4053
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#144
|
4054
|
+
REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4055
|
+
|
4056
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#145
|
4057
|
+
REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4058
|
+
|
4059
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#159
|
4060
|
+
REXML::Parsers::BaseParser::Private::XML_PREFIXED_NAMESPACE = T.let(T.unsafe(nil), String)
|
4061
|
+
|
4062
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#66
|
3937
4063
|
REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
|
3938
4064
|
|
3939
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4065
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#65
|
3940
4066
|
REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
|
3941
4067
|
|
3942
4068
|
# source://rexml//lib/rexml/parsers/streamparser.rb#6
|
@@ -3950,9 +4076,21 @@ class REXML::Parsers::StreamParser
|
|
3950
4076
|
def add_listener(listener); end
|
3951
4077
|
|
3952
4078
|
# source://rexml//lib/rexml/parsers/streamparser.rb#17
|
4079
|
+
def entity_expansion_count; end
|
4080
|
+
|
4081
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#21
|
4082
|
+
def entity_expansion_limit=(limit); end
|
4083
|
+
|
4084
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#25
|
4085
|
+
def entity_expansion_text_limit=(limit); end
|
4086
|
+
|
4087
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#29
|
3953
4088
|
def parse; end
|
3954
4089
|
end
|
3955
4090
|
|
4091
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#28
|
4092
|
+
module REXML::Parsers::StringScannerCaptures; end
|
4093
|
+
|
3956
4094
|
# source://rexml//lib/rexml/parsers/treeparser.rb#7
|
3957
4095
|
class REXML::Parsers::TreeParser
|
3958
4096
|
# @return [TreeParser] a new instance of TreeParser
|
@@ -3972,57 +4110,62 @@ end
|
|
3972
4110
|
# There is strange, dark magic at work in this code. Beware. Go back! Go
|
3973
4111
|
# back while you still can!
|
3974
4112
|
#
|
3975
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4113
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#12
|
3976
4114
|
class REXML::Parsers::XPathParser
|
3977
4115
|
include ::REXML::XMLTokens
|
3978
4116
|
|
3979
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
3980
|
-
def abbreviate(
|
4117
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#42
|
4118
|
+
def abbreviate(path_or_parsed); end
|
3981
4119
|
|
3982
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
3983
|
-
def expand(
|
4120
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#132
|
4121
|
+
def expand(path_or_parsed); end
|
3984
4122
|
|
3985
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4123
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#16
|
3986
4124
|
def namespaces=(namespaces); end
|
3987
4125
|
|
3988
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4126
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#21
|
3989
4127
|
def parse(path); end
|
3990
4128
|
|
3991
|
-
#
|
4129
|
+
# For backward compatibility
|
4130
|
+
#
|
4131
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#174
|
4132
|
+
def preciate_to_string(parsed, &block); end
|
4133
|
+
|
4134
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#36
|
3992
4135
|
def predicate(path); end
|
3993
4136
|
|
3994
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
3995
|
-
def
|
4137
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#174
|
4138
|
+
def predicate_to_path(parsed, &block); end
|
3996
4139
|
|
3997
4140
|
private
|
3998
4141
|
|
3999
4142
|
# | AdditiveExpr ('+' | '-') MultiplicativeExpr
|
4000
4143
|
# | MultiplicativeExpr
|
4001
4144
|
#
|
4002
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4145
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#505
|
4003
4146
|
def AdditiveExpr(path, parsed); end
|
4004
4147
|
|
4005
4148
|
# | AndExpr S 'and' S EqualityExpr
|
4006
4149
|
# | EqualityExpr
|
4007
4150
|
#
|
4008
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4151
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#438
|
4009
4152
|
def AndExpr(path, parsed); end
|
4010
4153
|
|
4011
4154
|
# | EqualityExpr ('=' | '!=') RelationalExpr
|
4012
4155
|
# | RelationalExpr
|
4013
4156
|
#
|
4014
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4157
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#457
|
4015
4158
|
def EqualityExpr(path, parsed); end
|
4016
4159
|
|
4017
4160
|
# | FilterExpr Predicate
|
4018
4161
|
# | PrimaryExpr
|
4019
4162
|
#
|
4020
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4163
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#608
|
4021
4164
|
def FilterExpr(path, parsed); end
|
4022
4165
|
|
4023
4166
|
# | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')'
|
4024
4167
|
#
|
4025
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4168
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#663
|
4026
4169
|
def FunctionCall(rest, parsed); end
|
4027
4170
|
|
4028
4171
|
# LocationPath
|
@@ -4030,69 +4173,72 @@ class REXML::Parsers::XPathParser
|
|
4030
4173
|
# | '/' RelativeLocationPath?
|
4031
4174
|
# | '//' RelativeLocationPath
|
4032
4175
|
#
|
4033
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4176
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#243
|
4034
4177
|
def LocationPath(path, parsed); end
|
4035
4178
|
|
4036
4179
|
# | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr
|
4037
4180
|
# | UnaryExpr
|
4038
4181
|
#
|
4039
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4182
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#528
|
4040
4183
|
def MultiplicativeExpr(path, parsed); end
|
4041
4184
|
|
4042
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4185
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#343
|
4043
4186
|
def NodeTest(path, parsed); end
|
4044
4187
|
|
4045
4188
|
# | OrExpr S 'or' S AndExpr
|
4046
4189
|
# | AndExpr
|
4047
4190
|
#
|
4048
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4191
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#419
|
4049
4192
|
def OrExpr(path, parsed); end
|
4050
4193
|
|
4051
4194
|
# | LocationPath
|
4052
4195
|
# | FilterExpr ('/' | '//') RelativeLocationPath
|
4053
4196
|
#
|
4054
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4197
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#590
|
4055
4198
|
def PathExpr(path, parsed); end
|
4056
4199
|
|
4057
4200
|
# Filters the supplied nodeset on the predicate(s)
|
4058
4201
|
#
|
4059
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4202
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#395
|
4060
4203
|
def Predicate(path, parsed); end
|
4061
4204
|
|
4062
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4205
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#626
|
4063
4206
|
def PrimaryExpr(path, parsed); end
|
4064
4207
|
|
4065
4208
|
# | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr
|
4066
4209
|
# | AdditiveExpr
|
4067
4210
|
#
|
4068
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4211
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#480
|
4069
4212
|
def RelationalExpr(path, parsed); end
|
4070
4213
|
|
4071
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4214
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#267
|
4072
4215
|
def RelativeLocationPath(path, parsed); end
|
4073
4216
|
|
4074
4217
|
# | '-' UnaryExpr
|
4075
4218
|
# | UnionExpr
|
4076
4219
|
#
|
4077
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4220
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#553
|
4078
4221
|
def UnaryExpr(path, parsed); end
|
4079
4222
|
|
4080
4223
|
# | UnionExpr '|' PathExpr
|
4081
4224
|
# | PathExpr
|
4082
4225
|
#
|
4083
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4226
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#571
|
4084
4227
|
def UnionExpr(path, parsed); end
|
4085
4228
|
|
4086
4229
|
# get_group( '[foo]bar' ) -> ['bar', '[foo]']
|
4087
4230
|
#
|
4088
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4231
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#676
|
4089
4232
|
def get_group(string); end
|
4090
4233
|
|
4091
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4234
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#694
|
4092
4235
|
def parse_args(string); end
|
4236
|
+
|
4237
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#224
|
4238
|
+
def quote_literal(literal); end
|
4093
4239
|
end
|
4094
4240
|
|
4095
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4241
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#339
|
4096
4242
|
REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
4097
4243
|
|
4098
4244
|
# Returns a 1-1 map of the nodeset
|
@@ -4106,7 +4252,7 @@ REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
|
4106
4252
|
# | PI '(' LITERAL ')' PI
|
4107
4253
|
# | '[' expr ']' Predicate
|
4108
4254
|
#
|
4109
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4255
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#338
|
4110
4256
|
REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
4111
4257
|
|
4112
4258
|
# source://rexml//lib/rexml/doctype.rb#10
|
@@ -4123,7 +4269,7 @@ end
|
|
4123
4269
|
# A Source can be searched for patterns, and wraps buffers and other
|
4124
4270
|
# objects and provides consumption of text
|
4125
4271
|
#
|
4126
|
-
# source://rexml//lib/rexml/source.rb#
|
4272
|
+
# source://rexml//lib/rexml/source.rb#51
|
4127
4273
|
class REXML::Source
|
4128
4274
|
include ::REXML::Encoding
|
4129
4275
|
|
@@ -4134,88 +4280,82 @@ class REXML::Source
|
|
4134
4280
|
# @param encoding if non-null, sets the encoding of the source to this
|
4135
4281
|
# @return [Source] a new instance of Source
|
4136
4282
|
#
|
4137
|
-
# source://rexml//lib/rexml/source.rb#
|
4283
|
+
# source://rexml//lib/rexml/source.rb#71
|
4138
4284
|
def initialize(arg, encoding = T.unsafe(nil)); end
|
4139
4285
|
|
4140
4286
|
# The current buffer (what we're going to read next)
|
4141
4287
|
#
|
4142
|
-
# source://rexml//lib/rexml/source.rb#
|
4288
|
+
# source://rexml//lib/rexml/source.rb#84
|
4143
4289
|
def buffer; end
|
4144
4290
|
|
4145
|
-
# source://rexml//lib/rexml/source.rb#
|
4146
|
-
def
|
4291
|
+
# source://rexml//lib/rexml/source.rb#94
|
4292
|
+
def buffer_encoding=(encoding); end
|
4147
4293
|
|
4148
4294
|
# @return the current line in the source
|
4149
4295
|
#
|
4150
|
-
# source://rexml//lib/rexml/source.rb#
|
4296
|
+
# source://rexml//lib/rexml/source.rb#143
|
4151
4297
|
def current_line; end
|
4152
4298
|
|
4299
|
+
# source://rexml//lib/rexml/source.rb#88
|
4300
|
+
def drop_parsed_content; end
|
4301
|
+
|
4153
4302
|
# @return [Boolean] true if the Source is exhausted
|
4154
4303
|
#
|
4155
|
-
# source://rexml//lib/rexml/source.rb#
|
4304
|
+
# source://rexml//lib/rexml/source.rb#138
|
4156
4305
|
def empty?; end
|
4157
4306
|
|
4158
4307
|
# Returns the value of attribute encoding.
|
4159
4308
|
#
|
4160
|
-
# source://rexml//lib/rexml/source.rb#
|
4309
|
+
# source://rexml//lib/rexml/source.rb#55
|
4161
4310
|
def encoding; end
|
4162
4311
|
|
4163
4312
|
# Inherited from Encoding
|
4164
4313
|
# Overridden to support optimized en/decoding
|
4165
4314
|
#
|
4166
|
-
# source://rexml//lib/rexml/source.rb#
|
4315
|
+
# source://rexml//lib/rexml/source.rb#100
|
4167
4316
|
def encoding=(enc); end
|
4168
4317
|
|
4318
|
+
# source://rexml//lib/rexml/source.rb#118
|
4319
|
+
def ensure_buffer; end
|
4320
|
+
|
4169
4321
|
# The line number of the last consumed text
|
4170
4322
|
#
|
4171
|
-
# source://rexml//lib/rexml/source.rb#
|
4323
|
+
# source://rexml//lib/rexml/source.rb#54
|
4172
4324
|
def line; end
|
4173
4325
|
|
4174
|
-
# source://rexml//lib/rexml/source.rb#
|
4326
|
+
# source://rexml//lib/rexml/source.rb#121
|
4175
4327
|
def match(pattern, cons = T.unsafe(nil)); end
|
4176
4328
|
|
4177
|
-
# source://rexml//lib/rexml/source.rb#
|
4178
|
-
def
|
4329
|
+
# source://rexml//lib/rexml/source.rb#129
|
4330
|
+
def position; end
|
4179
4331
|
|
4180
|
-
# source://rexml//lib/rexml/source.rb#
|
4181
|
-
def
|
4332
|
+
# source://rexml//lib/rexml/source.rb#133
|
4333
|
+
def position=(pos); end
|
4182
4334
|
|
4183
|
-
# source://rexml//lib/rexml/source.rb#
|
4184
|
-
def
|
4335
|
+
# source://rexml//lib/rexml/source.rb#105
|
4336
|
+
def read(term = T.unsafe(nil)); end
|
4185
4337
|
|
4186
|
-
# source://rexml//lib/rexml/source.rb#
|
4187
|
-
def
|
4188
|
-
|
4189
|
-
# Scans the source for a given pattern. Note, that this is not your
|
4190
|
-
# usual scan() method. For one thing, the pattern argument has some
|
4191
|
-
# requirements; for another, the source can be consumed. You can easily
|
4192
|
-
# confuse this method. Originally, the patterns were easier
|
4193
|
-
# to construct and this method more robust, because this method
|
4194
|
-
# generated search regexps on the fly; however, this was
|
4195
|
-
# computationally expensive and slowed down the entire REXML package
|
4196
|
-
# considerably, since this is by far the most commonly called method.
|
4197
|
-
# /^\s*(#{your pattern, with no groups})(.*)/. The first group
|
4198
|
-
# will be returned; the second group is used if the consume flag is
|
4199
|
-
# set.
|
4200
|
-
# everything after it in the Source.
|
4201
|
-
# pattern is not found.
|
4202
|
-
#
|
4203
|
-
# @param pattern must be a Regexp, and must be in the form of
|
4204
|
-
# @param consume if true, the pattern returned will be consumed, leaving
|
4205
|
-
# @return the pattern, if found, or nil if the Source is empty or the
|
4206
|
-
#
|
4207
|
-
# source://rexml//lib/rexml/source.rb#77
|
4208
|
-
def scan(pattern, cons = T.unsafe(nil)); end
|
4338
|
+
# source://rexml//lib/rexml/source.rb#108
|
4339
|
+
def read_until(term); end
|
4209
4340
|
|
4210
4341
|
private
|
4211
4342
|
|
4212
|
-
# source://rexml//lib/rexml/source.rb#
|
4343
|
+
# source://rexml//lib/rexml/source.rb#152
|
4213
4344
|
def detect_encoding; end
|
4214
4345
|
|
4215
|
-
# source://rexml//lib/rexml/source.rb#
|
4346
|
+
# source://rexml//lib/rexml/source.rb#170
|
4216
4347
|
def encoding_updated; end
|
4217
4348
|
end
|
4218
4349
|
|
4350
|
+
# source://rexml//lib/rexml/source.rb#57
|
4351
|
+
module REXML::Source::Private; end
|
4352
|
+
|
4353
|
+
# source://rexml//lib/rexml/source.rb#59
|
4354
|
+
REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4355
|
+
|
4356
|
+
# source://rexml//lib/rexml/source.rb#58
|
4357
|
+
REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer)
|
4358
|
+
|
4219
4359
|
# Represents text nodes in an XML document
|
4220
4360
|
#
|
4221
4361
|
# source://rexml//lib/rexml/text.rb#11
|
@@ -4270,33 +4410,33 @@ class REXML::Text < ::REXML::Child
|
|
4270
4410
|
# +returns+ the text itself to enable method chain like
|
4271
4411
|
# 'text << "XXX" << "YYY"'.
|
4272
4412
|
#
|
4273
|
-
# source://rexml//lib/rexml/text.rb#
|
4413
|
+
# source://rexml//lib/rexml/text.rb#214
|
4274
4414
|
def <<(to_append); end
|
4275
4415
|
|
4276
4416
|
# +other+ a String or a Text
|
4277
4417
|
# +returns+ the result of (to_s <=> arg.to_s)
|
4278
4418
|
#
|
4279
|
-
# source://rexml//lib/rexml/text.rb#
|
4419
|
+
# source://rexml//lib/rexml/text.rb#223
|
4280
4420
|
def <=>(other); end
|
4281
4421
|
|
4282
|
-
# source://rexml//lib/rexml/text.rb#
|
4422
|
+
# source://rexml//lib/rexml/text.rb#204
|
4283
4423
|
def clone; end
|
4284
4424
|
|
4285
|
-
# source://rexml//lib/rexml/text.rb#
|
4425
|
+
# source://rexml//lib/rexml/text.rb#227
|
4286
4426
|
def doctype; end
|
4287
4427
|
|
4288
4428
|
# @return [Boolean]
|
4289
4429
|
#
|
4290
|
-
# source://rexml//lib/rexml/text.rb#
|
4430
|
+
# source://rexml//lib/rexml/text.rb#199
|
4291
4431
|
def empty?; end
|
4292
4432
|
|
4293
|
-
# source://rexml//lib/rexml/text.rb#
|
4433
|
+
# source://rexml//lib/rexml/text.rb#299
|
4294
4434
|
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
4295
4435
|
|
4296
|
-
# source://rexml//lib/rexml/text.rb#
|
4436
|
+
# source://rexml//lib/rexml/text.rb#253
|
4297
4437
|
def inspect; end
|
4298
4438
|
|
4299
|
-
# source://rexml//lib/rexml/text.rb#
|
4439
|
+
# source://rexml//lib/rexml/text.rb#195
|
4300
4440
|
def node_type; end
|
4301
4441
|
|
4302
4442
|
# source://rexml//lib/rexml/text.rb#125
|
@@ -4326,7 +4466,7 @@ class REXML::Text < ::REXML::Child
|
|
4326
4466
|
# u = Text.new( "sean russell", false, nil, true )
|
4327
4467
|
# u.to_s #-> "sean russell"
|
4328
4468
|
#
|
4329
|
-
# source://rexml//lib/rexml/text.rb#
|
4469
|
+
# source://rexml//lib/rexml/text.rb#248
|
4330
4470
|
def to_s; end
|
4331
4471
|
|
4332
4472
|
# Returns the string value of this text. This is the text without
|
@@ -4343,7 +4483,7 @@ class REXML::Text < ::REXML::Child
|
|
4343
4483
|
# u = Text.new( "sean russell", false, nil, true )
|
4344
4484
|
# u.value #-> "sean russell"
|
4345
4485
|
#
|
4346
|
-
# source://rexml//lib/rexml/text.rb#
|
4486
|
+
# source://rexml//lib/rexml/text.rb#270
|
4347
4487
|
def value; end
|
4348
4488
|
|
4349
4489
|
# Sets the contents of this text node. This expects the text to be
|
@@ -4354,16 +4494,16 @@ class REXML::Text < ::REXML::Child
|
|
4354
4494
|
# e[0].value = "bar" # <a>bar</a>
|
4355
4495
|
# e[0].value = "<a>" # <a><a></a>
|
4356
4496
|
#
|
4357
|
-
# source://rexml//lib/rexml/text.rb#
|
4497
|
+
# source://rexml//lib/rexml/text.rb#282
|
4358
4498
|
def value=(val); end
|
4359
4499
|
|
4360
|
-
# source://rexml//lib/rexml/text.rb#
|
4500
|
+
# source://rexml//lib/rexml/text.rb#288
|
4361
4501
|
def wrap(string, width, addnewline = T.unsafe(nil)); end
|
4362
4502
|
|
4363
4503
|
# == DEPRECATED
|
4364
4504
|
# See REXML::Formatters
|
4365
4505
|
#
|
4366
|
-
# source://rexml//lib/rexml/text.rb#
|
4506
|
+
# source://rexml//lib/rexml/text.rb#314
|
4367
4507
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
4368
4508
|
|
4369
4509
|
# Writes out text, substituting special characters beforehand.
|
@@ -4381,18 +4521,18 @@ class REXML::Text < ::REXML::Child
|
|
4381
4521
|
# }
|
4382
4522
|
# puts ascOut
|
4383
4523
|
#
|
4384
|
-
# source://rexml//lib/rexml/text.rb#
|
4524
|
+
# source://rexml//lib/rexml/text.rb#346
|
4385
4525
|
def write_with_substitution(out, input); end
|
4386
4526
|
|
4387
4527
|
# FIXME
|
4388
4528
|
# This probably won't work properly
|
4389
4529
|
#
|
4390
|
-
# source://rexml//lib/rexml/text.rb#
|
4530
|
+
# source://rexml//lib/rexml/text.rb#326
|
4391
4531
|
def xpath; end
|
4392
4532
|
|
4393
4533
|
private
|
4394
4534
|
|
4395
|
-
# source://rexml//lib/rexml/text.rb#
|
4535
|
+
# source://rexml//lib/rexml/text.rb#359
|
4396
4536
|
def clear_cache; end
|
4397
4537
|
|
4398
4538
|
class << self
|
@@ -4401,23 +4541,23 @@ class REXML::Text < ::REXML::Child
|
|
4401
4541
|
# source://rexml//lib/rexml/text.rb#131
|
4402
4542
|
def check(string, pattern, doctype); end
|
4403
4543
|
|
4404
|
-
# source://rexml//lib/rexml/text.rb#
|
4544
|
+
# source://rexml//lib/rexml/text.rb#429
|
4405
4545
|
def expand(ref, doctype, filter); end
|
4406
4546
|
|
4407
4547
|
# Escapes all possible entities
|
4408
4548
|
#
|
4409
|
-
# source://rexml//lib/rexml/text.rb#
|
4549
|
+
# source://rexml//lib/rexml/text.rb#391
|
4410
4550
|
def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
4411
4551
|
|
4412
4552
|
# Reads text, substituting entities
|
4413
4553
|
#
|
4414
|
-
# source://rexml//lib/rexml/text.rb#
|
4554
|
+
# source://rexml//lib/rexml/text.rb#365
|
4415
4555
|
def read_with_substitution(input, illegal = T.unsafe(nil)); end
|
4416
4556
|
|
4417
4557
|
# Unescapes all possible entities
|
4418
4558
|
#
|
4419
|
-
# source://rexml//lib/rexml/text.rb#
|
4420
|
-
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
|
4559
|
+
# source://rexml//lib/rexml/text.rb#415
|
4560
|
+
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil), entity_expansion_text_limit: T.unsafe(nil)); end
|
4421
4561
|
end
|
4422
4562
|
end
|
4423
4563
|
|
@@ -4543,24 +4683,24 @@ end
|
|
4543
4683
|
|
4544
4684
|
# @private
|
4545
4685
|
#
|
4546
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4686
|
+
# source://rexml//lib/rexml/xpath_parser.rb#963
|
4547
4687
|
class REXML::XPathNode
|
4548
4688
|
# @return [XPathNode] a new instance of XPathNode
|
4549
4689
|
#
|
4550
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4690
|
+
# source://rexml//lib/rexml/xpath_parser.rb#965
|
4551
4691
|
def initialize(node, context = T.unsafe(nil)); end
|
4552
4692
|
|
4553
4693
|
# Returns the value of attribute context.
|
4554
4694
|
#
|
4555
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4695
|
+
# source://rexml//lib/rexml/xpath_parser.rb#964
|
4556
4696
|
def context; end
|
4557
4697
|
|
4558
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4698
|
+
# source://rexml//lib/rexml/xpath_parser.rb#974
|
4559
4699
|
def position; end
|
4560
4700
|
|
4561
4701
|
# Returns the value of attribute raw_node.
|
4562
4702
|
#
|
4563
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4703
|
+
# source://rexml//lib/rexml/xpath_parser.rb#964
|
4564
4704
|
def raw_node; end
|
4565
4705
|
end
|
4566
4706
|
|
@@ -4609,25 +4749,25 @@ class REXML::XPathParser
|
|
4609
4749
|
|
4610
4750
|
private
|
4611
4751
|
|
4612
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4752
|
+
# source://rexml//lib/rexml/xpath_parser.rb#779
|
4613
4753
|
def child(nodeset); end
|
4614
4754
|
|
4615
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4755
|
+
# source://rexml//lib/rexml/xpath_parser.rb#920
|
4616
4756
|
def compare(a, operator, b); end
|
4617
4757
|
|
4618
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4758
|
+
# source://rexml//lib/rexml/xpath_parser.rb#682
|
4619
4759
|
def descendant(nodeset, include_self); end
|
4620
4760
|
|
4621
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4761
|
+
# source://rexml//lib/rexml/xpath_parser.rb#693
|
4622
4762
|
def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
|
4623
4763
|
|
4624
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4764
|
+
# source://rexml//lib/rexml/xpath_parser.rb#942
|
4625
4765
|
def each_unnode(nodeset); end
|
4626
4766
|
|
4627
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4767
|
+
# source://rexml//lib/rexml/xpath_parser.rb#641
|
4628
4768
|
def enter(tag, *args); end
|
4629
4769
|
|
4630
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4770
|
+
# source://rexml//lib/rexml/xpath_parser.rb#819
|
4631
4771
|
def equality_relational_compare(set1, op, set2); end
|
4632
4772
|
|
4633
4773
|
# source://rexml//lib/rexml/xpath_parser.rb#591
|
@@ -4642,10 +4782,10 @@ class REXML::XPathParser
|
|
4642
4782
|
# source://rexml//lib/rexml/xpath_parser.rb#582
|
4643
4783
|
def filter_nodeset(nodeset); end
|
4644
4784
|
|
4645
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4785
|
+
# source://rexml//lib/rexml/xpath_parser.rb#749
|
4646
4786
|
def following(node); end
|
4647
4787
|
|
4648
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4788
|
+
# source://rexml//lib/rexml/xpath_parser.rb#760
|
4649
4789
|
def following_node_of(node); end
|
4650
4790
|
|
4651
4791
|
# Returns a String namespace for a node, given a prefix
|
@@ -4657,19 +4797,19 @@ class REXML::XPathParser
|
|
4657
4797
|
# source://rexml//lib/rexml/xpath_parser.rb#163
|
4658
4798
|
def get_namespace(node, prefix); end
|
4659
4799
|
|
4660
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4800
|
+
# source://rexml//lib/rexml/xpath_parser.rb#646
|
4661
4801
|
def leave(tag, *args); end
|
4662
4802
|
|
4663
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4803
|
+
# source://rexml//lib/rexml/xpath_parser.rb#767
|
4664
4804
|
def next_sibling_node(node); end
|
4665
4805
|
|
4666
4806
|
# source://rexml//lib/rexml/xpath_parser.rb#477
|
4667
4807
|
def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
|
4668
4808
|
|
4669
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4809
|
+
# source://rexml//lib/rexml/xpath_parser.rb#806
|
4670
4810
|
def norm(b); end
|
4671
4811
|
|
4672
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4812
|
+
# source://rexml//lib/rexml/xpath_parser.rb#894
|
4673
4813
|
def normalize_compare_values(a, operator, b); end
|
4674
4814
|
|
4675
4815
|
# Builds a nodeset of all of the preceding nodes of the supplied node,
|
@@ -4677,10 +4817,10 @@ class REXML::XPathParser
|
|
4677
4817
|
# preceding:: includes every element in the document that precedes this node,
|
4678
4818
|
# except for ancestors
|
4679
4819
|
#
|
4680
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4820
|
+
# source://rexml//lib/rexml/xpath_parser.rb#712
|
4681
4821
|
def preceding(node); end
|
4682
4822
|
|
4683
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4823
|
+
# source://rexml//lib/rexml/xpath_parser.rb#734
|
4684
4824
|
def preceding_node_of(node); end
|
4685
4825
|
|
4686
4826
|
# Reorders an array of nodes so that they are in document order
|
@@ -4692,7 +4832,7 @@ class REXML::XPathParser
|
|
4692
4832
|
# I wouldn't have to do this. Maybe add a document IDX for each node?
|
4693
4833
|
# Problems with mutable documents. Or, rewrite everything.
|
4694
4834
|
#
|
4695
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4835
|
+
# source://rexml//lib/rexml/xpath_parser.rb#659
|
4696
4836
|
def sort(array_of_nodes, order); end
|
4697
4837
|
|
4698
4838
|
# source://rexml//lib/rexml/xpath_parser.rb#441
|
@@ -4703,13 +4843,13 @@ class REXML::XPathParser
|
|
4703
4843
|
# source://rexml//lib/rexml/xpath_parser.rb#154
|
4704
4844
|
def strict?; end
|
4705
4845
|
|
4706
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4846
|
+
# source://rexml//lib/rexml/xpath_parser.rb#634
|
4707
4847
|
def trace(*args); end
|
4708
4848
|
|
4709
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4849
|
+
# source://rexml//lib/rexml/xpath_parser.rb#954
|
4710
4850
|
def unnode(nodeset); end
|
4711
4851
|
|
4712
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4852
|
+
# source://rexml//lib/rexml/xpath_parser.rb#881
|
4713
4853
|
def value_type(value); end
|
4714
4854
|
end
|
4715
4855
|
|