checkoff 0.219.0 → 0.221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +3 -4
- data/.overcommit.yml +2 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +2 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +42 -8
- data/Makefile +13 -7
- data/bin/tapioca +1 -1
- data/checkoff.gemspec +1 -0
- data/fix.sh +1 -0
- data/lib/checkoff/tasks.rb +8 -2
- data/lib/checkoff/version.rb +1 -1
- data/sorbet/rbi/gems/{activesupport@7.1.3.rbi → activesupport@7.1.5.rbi} +157 -160
- data/sorbet/rbi/gems/brakeman@6.2.2.rbi +222 -0
- data/sorbet/rbi/gems/{i18n@1.14.1.rbi → i18n@1.14.6.rbi} +135 -102
- data/sorbet/rbi/gems/{logger@1.6.1.rbi → logger@1.6.2.rbi} +4 -1
- data/sorbet/rbi/gems/{mutex_m@0.2.0.rbi → mutex_m@0.3.0.rbi} +15 -12
- data/sorbet/rbi/gems/{nokogiri@1.16.7.rbi → nokogiri@1.17.0.rbi} +1693 -803
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +33 -33
- data/sorbet/rbi/gems/{rack@3.0.8.rbi → rack@3.1.8.rbi} +697 -985
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.3.9.rbi} +354 -278
- data/sorbet/rbi/gems/rubocop-rspec@3.0.0.rbi +7546 -0
- data/sorbet/rbi/gems/securerandom@0.4.0.rbi +75 -0
- data/sorbet/rbi/gems/solargraph-rails@1.1.0-9dc37915bd4f3b169046e34db6fb32193ab347d8.rbi +320 -0
- data/sorbet/rbi/gems/{tapioca@0.16.4.rbi → tapioca@0.16.5.rbi} +89 -76
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +429 -270
- metadata +33 -16
- data/sorbet/rbi/gems/ostruct@0.6.1.rbi +0 -354
- /data/sorbet/rbi/gems/{drb@2.2.0.rbi → drb@2.2.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{gli@2.21.1.rbi → gli@2.22.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{overcommit@0.64.0.rbi → overcommit@0.64.1.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.
|
@@ -113,7 +113,7 @@ class REXML::Attribute
|
|
113
113
|
|
114
114
|
# Returns a copy of this attribute
|
115
115
|
#
|
116
|
-
# source://rexml//lib/rexml/attribute.rb#
|
116
|
+
# source://rexml//lib/rexml/attribute.rb#164
|
117
117
|
def clone; end
|
118
118
|
|
119
119
|
# source://rexml//lib/rexml/attribute.rb#132
|
@@ -129,7 +129,7 @@ class REXML::Attribute
|
|
129
129
|
#
|
130
130
|
# Returns this attribute
|
131
131
|
#
|
132
|
-
# source://rexml//lib/rexml/attribute.rb#
|
132
|
+
# source://rexml//lib/rexml/attribute.rb#172
|
133
133
|
def element=(element); end
|
134
134
|
|
135
135
|
# Creates (and returns) a hash from both the name and value
|
@@ -137,7 +137,7 @@ class REXML::Attribute
|
|
137
137
|
# source://rexml//lib/rexml/attribute.rb#111
|
138
138
|
def hash; end
|
139
139
|
|
140
|
-
# source://rexml//lib/rexml/attribute.rb#
|
140
|
+
# source://rexml//lib/rexml/attribute.rb#198
|
141
141
|
def inspect; end
|
142
142
|
|
143
143
|
# Returns the namespace URL, if defined, or nil otherwise
|
@@ -165,13 +165,13 @@ class REXML::Attribute
|
|
165
165
|
# source://rexml//lib/rexml/attribute.rb#95
|
166
166
|
def namespace(arg = T.unsafe(nil)); end
|
167
167
|
|
168
|
-
# source://rexml//lib/rexml/attribute.rb#
|
168
|
+
# source://rexml//lib/rexml/attribute.rb#194
|
169
169
|
def node_type; end
|
170
170
|
|
171
171
|
# The normalized value of this attribute. That is, the attribute with
|
172
172
|
# entities intact.
|
173
173
|
#
|
174
|
-
# source://rexml//lib/rexml/attribute.rb#
|
174
|
+
# source://rexml//lib/rexml/attribute.rb#158
|
175
175
|
def normalized=(new_normalized); end
|
176
176
|
|
177
177
|
# Returns the namespace of the attribute.
|
@@ -191,7 +191,7 @@ class REXML::Attribute
|
|
191
191
|
#
|
192
192
|
# This method is usually not called directly.
|
193
193
|
#
|
194
|
-
# source://rexml//lib/rexml/attribute.rb#
|
194
|
+
# source://rexml//lib/rexml/attribute.rb#185
|
195
195
|
def remove; end
|
196
196
|
|
197
197
|
# Returns the attribute value, with entities replaced
|
@@ -217,17 +217,17 @@ class REXML::Attribute
|
|
217
217
|
|
218
218
|
# Writes this attribute (EG, puts 'key="value"' to the output)
|
219
219
|
#
|
220
|
-
# source://rexml//lib/rexml/attribute.rb#
|
220
|
+
# source://rexml//lib/rexml/attribute.rb#190
|
221
221
|
def write(output, indent = T.unsafe(nil)); end
|
222
222
|
|
223
|
-
# source://rexml//lib/rexml/attribute.rb#
|
223
|
+
# source://rexml//lib/rexml/attribute.rb#204
|
224
224
|
def xpath; end
|
225
225
|
end
|
226
226
|
|
227
227
|
# A class that defines the set of Attributes of an Element and provides
|
228
228
|
# operations for accessing elements in that set.
|
229
229
|
#
|
230
|
-
# source://rexml//lib/rexml/element.rb#
|
230
|
+
# source://rexml//lib/rexml/element.rb#2137
|
231
231
|
class REXML::Attributes < ::Hash
|
232
232
|
# :call-seq:
|
233
233
|
# new(element)
|
@@ -248,7 +248,7 @@ class REXML::Attributes < ::Hash
|
|
248
248
|
#
|
249
249
|
# @return [Attributes] a new instance of Attributes
|
250
250
|
#
|
251
|
-
# source://rexml//lib/rexml/element.rb#
|
251
|
+
# source://rexml//lib/rexml/element.rb#2156
|
252
252
|
def initialize(element); end
|
253
253
|
|
254
254
|
# :call-seq:
|
@@ -271,7 +271,7 @@ class REXML::Attributes < ::Hash
|
|
271
271
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
272
272
|
# attrs.include?('baz') # => true
|
273
273
|
#
|
274
|
-
# source://rexml//lib/rexml/element.rb#
|
274
|
+
# source://rexml//lib/rexml/element.rb#2522
|
275
275
|
def <<(attribute); end
|
276
276
|
|
277
277
|
# :call-seq:
|
@@ -295,7 +295,7 @@ class REXML::Attributes < ::Hash
|
|
295
295
|
#
|
296
296
|
# Related: get_attribute (returns an \Attribute object).
|
297
297
|
#
|
298
|
-
# source://rexml//lib/rexml/element.rb#
|
298
|
+
# source://rexml//lib/rexml/element.rb#2181
|
299
299
|
def [](name); end
|
300
300
|
|
301
301
|
# :call-seq:
|
@@ -321,7 +321,7 @@ class REXML::Attributes < ::Hash
|
|
321
321
|
# attrs['baz:att'] = nil
|
322
322
|
# attrs.include?('baz:att') # => false
|
323
323
|
#
|
324
|
-
# source://rexml//lib/rexml/element.rb#
|
324
|
+
# source://rexml//lib/rexml/element.rb#2365
|
325
325
|
def []=(name, value); end
|
326
326
|
|
327
327
|
# :call-seq:
|
@@ -344,7 +344,7 @@ class REXML::Attributes < ::Hash
|
|
344
344
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
345
345
|
# attrs.include?('baz') # => true
|
346
346
|
#
|
347
|
-
# source://rexml//lib/rexml/element.rb#
|
347
|
+
# source://rexml//lib/rexml/element.rb#2522
|
348
348
|
def add(attribute); end
|
349
349
|
|
350
350
|
# :call-seq:
|
@@ -375,7 +375,7 @@ class REXML::Attributes < ::Hash
|
|
375
375
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele att='<'/>
|
376
376
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele/>
|
377
377
|
#
|
378
|
-
# source://rexml//lib/rexml/element.rb#
|
378
|
+
# source://rexml//lib/rexml/element.rb#2475
|
379
379
|
def delete(attribute); end
|
380
380
|
|
381
381
|
# :call-seq:
|
@@ -394,7 +394,7 @@ class REXML::Attributes < ::Hash
|
|
394
394
|
# attrs = ele.attributes
|
395
395
|
# attrs.delete_all('att') # => [att='<']
|
396
396
|
#
|
397
|
-
# source://rexml//lib/rexml/element.rb#
|
397
|
+
# source://rexml//lib/rexml/element.rb#2544
|
398
398
|
def delete_all(name); end
|
399
399
|
|
400
400
|
# :call-seq:
|
@@ -419,7 +419,7 @@ class REXML::Attributes < ::Hash
|
|
419
419
|
# ["bar:att", "2"]
|
420
420
|
# ["att", "<"]
|
421
421
|
#
|
422
|
-
# source://rexml//lib/rexml/element.rb#
|
422
|
+
# source://rexml//lib/rexml/element.rb#2283
|
423
423
|
def each; end
|
424
424
|
|
425
425
|
# :call-seq:
|
@@ -444,7 +444,7 @@ class REXML::Attributes < ::Hash
|
|
444
444
|
# [REXML::Attribute, bar:att='2']
|
445
445
|
# [REXML::Attribute, att='<']
|
446
446
|
#
|
447
|
-
# source://rexml//lib/rexml/element.rb#
|
447
|
+
# source://rexml//lib/rexml/element.rb#2250
|
448
448
|
def each_attribute; end
|
449
449
|
|
450
450
|
# :call-seq:
|
@@ -466,7 +466,7 @@ class REXML::Attributes < ::Hash
|
|
466
466
|
# attrs.get_attribute('att') # => att='<'
|
467
467
|
# attrs.get_attribute('nosuch') # => nil
|
468
468
|
#
|
469
|
-
# source://rexml//lib/rexml/element.rb#
|
469
|
+
# source://rexml//lib/rexml/element.rb#2309
|
470
470
|
def get_attribute(name); end
|
471
471
|
|
472
472
|
# :call-seq:
|
@@ -486,7 +486,7 @@ class REXML::Attributes < ::Hash
|
|
486
486
|
# attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
|
487
487
|
# attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
|
488
488
|
#
|
489
|
-
# source://rexml//lib/rexml/element.rb#
|
489
|
+
# source://rexml//lib/rexml/element.rb#2570
|
490
490
|
def get_attribute_ns(namespace, name); end
|
491
491
|
|
492
492
|
# :call-seq:
|
@@ -503,7 +503,7 @@ class REXML::Attributes < ::Hash
|
|
503
503
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
504
504
|
# ele.attributes.length # => 3
|
505
505
|
#
|
506
|
-
# source://rexml//lib/rexml/element.rb#
|
506
|
+
# source://rexml//lib/rexml/element.rb#2221
|
507
507
|
def length; end
|
508
508
|
|
509
509
|
# :call-seq:
|
@@ -515,7 +515,7 @@ class REXML::Attributes < ::Hash
|
|
515
515
|
# d = REXML::Document.new(xml_string)
|
516
516
|
# d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
|
517
517
|
#
|
518
|
-
# source://rexml//lib/rexml/element.rb#
|
518
|
+
# source://rexml//lib/rexml/element.rb#2431
|
519
519
|
def namespaces; end
|
520
520
|
|
521
521
|
# :call-seq:
|
@@ -529,7 +529,7 @@ class REXML::Attributes < ::Hash
|
|
529
529
|
# d = REXML::Document.new(xml_string)
|
530
530
|
# d.root.attributes.prefixes # => ["x", "y"]
|
531
531
|
#
|
532
|
-
# source://rexml//lib/rexml/element.rb#
|
532
|
+
# source://rexml//lib/rexml/element.rb#2406
|
533
533
|
def prefixes; end
|
534
534
|
|
535
535
|
# :call-seq:
|
@@ -546,7 +546,7 @@ class REXML::Attributes < ::Hash
|
|
546
546
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
547
547
|
# ele.attributes.length # => 3
|
548
548
|
#
|
549
|
-
# source://rexml//lib/rexml/element.rb#
|
549
|
+
# source://rexml//lib/rexml/element.rb#2221
|
550
550
|
def size; end
|
551
551
|
|
552
552
|
# :call-seq:
|
@@ -565,7 +565,7 @@ class REXML::Attributes < ::Hash
|
|
565
565
|
# attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
|
566
566
|
# attrs.first.class # => REXML::Attribute
|
567
567
|
#
|
568
|
-
# source://rexml//lib/rexml/element.rb#
|
568
|
+
# source://rexml//lib/rexml/element.rb#2203
|
569
569
|
def to_a; end
|
570
570
|
end
|
571
571
|
|
@@ -1038,7 +1038,7 @@ class REXML::Document < ::REXML::Element
|
|
1038
1038
|
# d.add(REXML::Element.new('foo'))
|
1039
1039
|
# d.to_s # => "<foo/>"
|
1040
1040
|
#
|
1041
|
-
# source://rexml//lib/rexml/document.rb#
|
1041
|
+
# source://rexml//lib/rexml/document.rb#172
|
1042
1042
|
def <<(child); end
|
1043
1043
|
|
1044
1044
|
# :call-seq:
|
@@ -1075,7 +1075,7 @@ class REXML::Document < ::REXML::Element
|
|
1075
1075
|
# d.add(REXML::Element.new('foo'))
|
1076
1076
|
# d.to_s # => "<foo/>"
|
1077
1077
|
#
|
1078
|
-
# source://rexml//lib/rexml/document.rb#
|
1078
|
+
# source://rexml//lib/rexml/document.rb#172
|
1079
1079
|
def add(child); end
|
1080
1080
|
|
1081
1081
|
# :call-seq:
|
@@ -1085,7 +1085,7 @@ class REXML::Document < ::REXML::Element
|
|
1085
1085
|
#
|
1086
1086
|
# REXML::Element.add_element(name_or_element, attributes)
|
1087
1087
|
#
|
1088
|
-
# source://rexml//lib/rexml/document.rb#
|
1088
|
+
# source://rexml//lib/rexml/document.rb#211
|
1089
1089
|
def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end
|
1090
1090
|
|
1091
1091
|
# :call-seq:
|
@@ -1094,7 +1094,7 @@ class REXML::Document < ::REXML::Element
|
|
1094
1094
|
# Returns the new document resulting from executing
|
1095
1095
|
# <tt>Document.new(self)</tt>. See Document.new.
|
1096
1096
|
#
|
1097
|
-
# source://rexml//lib/rexml/document.rb#
|
1097
|
+
# source://rexml//lib/rexml/document.rb#122
|
1098
1098
|
def clone; end
|
1099
1099
|
|
1100
1100
|
# :call-seq:
|
@@ -1107,10 +1107,10 @@ class REXML::Document < ::REXML::Element
|
|
1107
1107
|
# d = REXML::Document.new('')
|
1108
1108
|
# d.doctype.class # => nil
|
1109
1109
|
#
|
1110
|
-
# source://rexml//lib/rexml/document.rb#
|
1110
|
+
# source://rexml//lib/rexml/document.rb#243
|
1111
1111
|
def doctype; end
|
1112
1112
|
|
1113
|
-
# source://rexml//lib/rexml/document.rb#
|
1113
|
+
# source://rexml//lib/rexml/document.rb#446
|
1114
1114
|
def document; end
|
1115
1115
|
|
1116
1116
|
# :call-seq:
|
@@ -1123,20 +1123,39 @@ class REXML::Document < ::REXML::Element
|
|
1123
1123
|
# d = REXML::Document.new('')
|
1124
1124
|
# d.encoding # => "UTF-8"
|
1125
1125
|
#
|
1126
|
-
# source://rexml//lib/rexml/document.rb#
|
1126
|
+
# source://rexml//lib/rexml/document.rb#292
|
1127
1127
|
def encoding; end
|
1128
1128
|
|
1129
1129
|
# Returns the value of attribute entity_expansion_count.
|
1130
1130
|
#
|
1131
|
-
# source://rexml//lib/rexml/document.rb#
|
1131
|
+
# source://rexml//lib/rexml/document.rb#435
|
1132
1132
|
def entity_expansion_count; end
|
1133
1133
|
|
1134
|
+
# Sets the attribute entity_expansion_limit
|
1135
|
+
#
|
1136
|
+
# @param value the value to set the attribute entity_expansion_limit to.
|
1137
|
+
#
|
1138
|
+
# source://rexml//lib/rexml/document.rb#436
|
1139
|
+
def entity_expansion_limit=(_arg0); end
|
1140
|
+
|
1141
|
+
# Returns the value of attribute entity_expansion_text_limit.
|
1142
|
+
#
|
1143
|
+
# source://rexml//lib/rexml/document.rb#437
|
1144
|
+
def entity_expansion_text_limit; end
|
1145
|
+
|
1146
|
+
# Sets the attribute entity_expansion_text_limit
|
1147
|
+
#
|
1148
|
+
# @param value the value to set the attribute entity_expansion_text_limit to.
|
1149
|
+
#
|
1150
|
+
# source://rexml//lib/rexml/document.rb#437
|
1151
|
+
def entity_expansion_text_limit=(_arg0); end
|
1152
|
+
|
1134
1153
|
# :call-seq:
|
1135
1154
|
# expanded_name -> empty_string
|
1136
1155
|
#
|
1137
1156
|
# Returns an empty string.
|
1138
1157
|
#
|
1139
|
-
# source://rexml//lib/rexml/document.rb#
|
1158
|
+
# source://rexml//lib/rexml/document.rb#131
|
1140
1159
|
def expanded_name; end
|
1141
1160
|
|
1142
1161
|
# :call-seq:
|
@@ -1146,7 +1165,7 @@ class REXML::Document < ::REXML::Element
|
|
1146
1165
|
# d = doc_type
|
1147
1166
|
# d ? d.name : "UNDEFINED"
|
1148
1167
|
#
|
1149
|
-
# source://rexml//lib/rexml/document.rb#
|
1168
|
+
# source://rexml//lib/rexml/document.rb#131
|
1150
1169
|
def name; end
|
1151
1170
|
|
1152
1171
|
# :call-seq:
|
@@ -1154,10 +1173,10 @@ class REXML::Document < ::REXML::Element
|
|
1154
1173
|
#
|
1155
1174
|
# Returns the symbol +:document+.
|
1156
1175
|
#
|
1157
|
-
# source://rexml//lib/rexml/document.rb#
|
1176
|
+
# source://rexml//lib/rexml/document.rb#112
|
1158
1177
|
def node_type; end
|
1159
1178
|
|
1160
|
-
# source://rexml//lib/rexml/document.rb#
|
1179
|
+
# source://rexml//lib/rexml/document.rb#439
|
1161
1180
|
def record_entity_expansion; end
|
1162
1181
|
|
1163
1182
|
# :call-seq:
|
@@ -1170,7 +1189,7 @@ class REXML::Document < ::REXML::Element
|
|
1170
1189
|
# d = REXML::Document.new('')
|
1171
1190
|
# d.root # => nil
|
1172
1191
|
#
|
1173
|
-
# source://rexml//lib/rexml/document.rb#
|
1192
|
+
# source://rexml//lib/rexml/document.rb#227
|
1174
1193
|
def root; end
|
1175
1194
|
|
1176
1195
|
# :call-seq:
|
@@ -1186,7 +1205,7 @@ class REXML::Document < ::REXML::Element
|
|
1186
1205
|
#
|
1187
1206
|
# @return [Boolean]
|
1188
1207
|
#
|
1189
|
-
# source://rexml//lib/rexml/document.rb#
|
1208
|
+
# source://rexml//lib/rexml/document.rb#307
|
1190
1209
|
def stand_alone?; end
|
1191
1210
|
|
1192
1211
|
# :call-seq:
|
@@ -1200,7 +1219,7 @@ class REXML::Document < ::REXML::Element
|
|
1200
1219
|
# d = REXML::Document.new('')
|
1201
1220
|
# d.version # => "1.0"
|
1202
1221
|
#
|
1203
|
-
# source://rexml//lib/rexml/document.rb#
|
1222
|
+
# source://rexml//lib/rexml/document.rb#277
|
1204
1223
|
def version; end
|
1205
1224
|
|
1206
1225
|
# :call-seq:
|
@@ -1259,7 +1278,7 @@ class REXML::Document < ::REXML::Element
|
|
1259
1278
|
# instead of encoding in XML declaration.
|
1260
1279
|
# Defaults to nil. It means encoding in XML declaration is used.
|
1261
1280
|
#
|
1262
|
-
# source://rexml//lib/rexml/document.rb#
|
1281
|
+
# source://rexml//lib/rexml/document.rb#367
|
1263
1282
|
def write(*arguments); end
|
1264
1283
|
|
1265
1284
|
# :call-seq:
|
@@ -1275,12 +1294,12 @@ class REXML::Document < ::REXML::Element
|
|
1275
1294
|
# d.xml_decl.class # => REXML::XMLDecl
|
1276
1295
|
# d.xml_decl.to_s # => ""
|
1277
1296
|
#
|
1278
|
-
# source://rexml//lib/rexml/document.rb#
|
1297
|
+
# source://rexml//lib/rexml/document.rb#260
|
1279
1298
|
def xml_decl; end
|
1280
1299
|
|
1281
1300
|
private
|
1282
1301
|
|
1283
|
-
# source://rexml//lib/rexml/document.rb#
|
1302
|
+
# source://rexml//lib/rexml/document.rb#451
|
1284
1303
|
def build(source); end
|
1285
1304
|
|
1286
1305
|
class << self
|
@@ -1288,31 +1307,31 @@ class REXML::Document < ::REXML::Element
|
|
1288
1307
|
#
|
1289
1308
|
# Deprecated. Use REXML::Security.entity_expansion_limit= instead.
|
1290
1309
|
#
|
1291
|
-
# source://rexml//lib/rexml/document.rb#
|
1310
|
+
# source://rexml//lib/rexml/document.rb#417
|
1292
1311
|
def entity_expansion_limit; end
|
1293
1312
|
|
1294
1313
|
# Set the entity expansion limit. By default the limit is set to 10000.
|
1295
1314
|
#
|
1296
1315
|
# Deprecated. Use REXML::Security.entity_expansion_limit= instead.
|
1297
1316
|
#
|
1298
|
-
# source://rexml//lib/rexml/document.rb#
|
1317
|
+
# source://rexml//lib/rexml/document.rb#410
|
1299
1318
|
def entity_expansion_limit=(val); end
|
1300
1319
|
|
1301
1320
|
# Get the entity expansion limit. By default the limit is set to 10240.
|
1302
1321
|
#
|
1303
1322
|
# Deprecated. Use REXML::Security.entity_expansion_text_limit instead.
|
1304
1323
|
#
|
1305
|
-
# source://rexml//lib/rexml/document.rb#
|
1324
|
+
# source://rexml//lib/rexml/document.rb#431
|
1306
1325
|
def entity_expansion_text_limit; end
|
1307
1326
|
|
1308
1327
|
# Set the entity expansion limit. By default the limit is set to 10240.
|
1309
1328
|
#
|
1310
1329
|
# Deprecated. Use REXML::Security.entity_expansion_text_limit= instead.
|
1311
1330
|
#
|
1312
|
-
# source://rexml//lib/rexml/document.rb#
|
1331
|
+
# source://rexml//lib/rexml/document.rb#424
|
1313
1332
|
def entity_expansion_text_limit=(val); end
|
1314
1333
|
|
1315
|
-
# source://rexml//lib/rexml/document.rb#
|
1334
|
+
# source://rexml//lib/rexml/document.rb#403
|
1316
1335
|
def parse_stream(source, listener); end
|
1317
1336
|
end
|
1318
1337
|
end
|
@@ -1578,7 +1597,7 @@ end
|
|
1578
1597
|
# #attributes:: Returns the REXML::Attributes object for the element.
|
1579
1598
|
# #context:: Returns or sets the context hash for the element.
|
1580
1599
|
#
|
1581
|
-
# source://rexml//lib/rexml/element.rb#
|
1600
|
+
# source://rexml//lib/rexml/element.rb#271
|
1582
1601
|
class REXML::Element < ::REXML::Parent
|
1583
1602
|
include ::REXML::XMLTokens
|
1584
1603
|
include ::REXML::Namespace
|
@@ -1621,7 +1640,7 @@ class REXML::Element < ::REXML::Parent
|
|
1621
1640
|
#
|
1622
1641
|
# @return [Element] a new instance of Element
|
1623
1642
|
#
|
1624
|
-
# source://rexml//lib/rexml/element.rb#
|
1643
|
+
# source://rexml//lib/rexml/element.rb#319
|
1625
1644
|
def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
|
1626
1645
|
|
1627
1646
|
# :call-seq:
|
@@ -1663,7 +1682,7 @@ class REXML::Element < ::REXML::Parent
|
|
1663
1682
|
# root[:attr] # => "value"
|
1664
1683
|
# root[:nosuch] # => nil
|
1665
1684
|
#
|
1666
|
-
# source://rexml//lib/rexml/element.rb#
|
1685
|
+
# source://rexml//lib/rexml/element.rb#1246
|
1667
1686
|
def [](name_or_index); end
|
1668
1687
|
|
1669
1688
|
# :call-seq:
|
@@ -1692,7 +1711,7 @@ class REXML::Element < ::REXML::Parent
|
|
1692
1711
|
# e.add_attribute(a) # => attr='VALUE'
|
1693
1712
|
# e['attr'] # => "VALUE"
|
1694
1713
|
#
|
1695
|
-
# source://rexml//lib/rexml/element.rb#
|
1714
|
+
# source://rexml//lib/rexml/element.rb#1345
|
1696
1715
|
def add_attribute(key, value = T.unsafe(nil)); end
|
1697
1716
|
|
1698
1717
|
# :call-seq:
|
@@ -1718,7 +1737,7 @@ class REXML::Element < ::REXML::Parent
|
|
1718
1737
|
# a = [['foo' => 'bar'], ['baz' => 'bat']]
|
1719
1738
|
# e.add_attributes(a)
|
1720
1739
|
#
|
1721
|
-
# source://rexml//lib/rexml/element.rb#
|
1740
|
+
# source://rexml//lib/rexml/element.rb#1376
|
1722
1741
|
def add_attributes(hash); end
|
1723
1742
|
|
1724
1743
|
# :call-seq:
|
@@ -1755,7 +1774,7 @@ class REXML::Element < ::REXML::Parent
|
|
1755
1774
|
# e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
|
1756
1775
|
# e0[1] # => <bar bat='0' bam='1'/>
|
1757
1776
|
#
|
1758
|
-
# source://rexml//lib/rexml/element.rb#
|
1777
|
+
# source://rexml//lib/rexml/element.rb#732
|
1759
1778
|
def add_element(element, attrs = T.unsafe(nil)); end
|
1760
1779
|
|
1761
1780
|
# :call-seq:
|
@@ -1776,7 +1795,7 @@ class REXML::Element < ::REXML::Parent
|
|
1776
1795
|
# e.add_namespace('baz', 'bat')
|
1777
1796
|
# e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
|
1778
1797
|
#
|
1779
|
-
# source://rexml//lib/rexml/element.rb#
|
1798
|
+
# source://rexml//lib/rexml/element.rb#655
|
1780
1799
|
def add_namespace(prefix, uri = T.unsafe(nil)); end
|
1781
1800
|
|
1782
1801
|
# :call-seq:
|
@@ -1818,7 +1837,7 @@ class REXML::Element < ::REXML::Parent
|
|
1818
1837
|
# a.add_text(REXML::Text.new('baz'))
|
1819
1838
|
# a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
|
1820
1839
|
#
|
1821
|
-
# source://rexml//lib/rexml/element.rb#
|
1840
|
+
# source://rexml//lib/rexml/element.rb#1147
|
1822
1841
|
def add_text(text); end
|
1823
1842
|
|
1824
1843
|
# :call-seq:
|
@@ -1850,13 +1869,13 @@ class REXML::Element < ::REXML::Parent
|
|
1850
1869
|
# document.root.attribute("x") # => x='x'
|
1851
1870
|
# document.root.attribute("x", "a") # => a:x='a:x'
|
1852
1871
|
#
|
1853
|
-
# source://rexml//lib/rexml/element.rb#
|
1872
|
+
# source://rexml//lib/rexml/element.rb#1287
|
1854
1873
|
def attribute(name, namespace = T.unsafe(nil)); end
|
1855
1874
|
|
1856
1875
|
# Mechanisms for accessing attributes and child elements of this
|
1857
1876
|
# element.
|
1858
1877
|
#
|
1859
|
-
# source://rexml//lib/rexml/element.rb#
|
1878
|
+
# source://rexml//lib/rexml/element.rb#278
|
1860
1879
|
def attributes; end
|
1861
1880
|
|
1862
1881
|
# :call-seq:
|
@@ -1875,7 +1894,7 @@ class REXML::Element < ::REXML::Parent
|
|
1875
1894
|
# cds.frozen? # => true
|
1876
1895
|
# cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
|
1877
1896
|
#
|
1878
|
-
# source://rexml//lib/rexml/element.rb#
|
1897
|
+
# source://rexml//lib/rexml/element.rb#1420
|
1879
1898
|
def cdatas; end
|
1880
1899
|
|
1881
1900
|
# :call-seq:
|
@@ -1888,7 +1907,7 @@ class REXML::Element < ::REXML::Parent
|
|
1888
1907
|
# e.add_attributes({'bar' => 0, 'baz' => 1})
|
1889
1908
|
# e.clone # => <foo bar='0' baz='1'/>
|
1890
1909
|
#
|
1891
|
-
# source://rexml//lib/rexml/element.rb#
|
1910
|
+
# source://rexml//lib/rexml/element.rb#383
|
1892
1911
|
def clone; end
|
1893
1912
|
|
1894
1913
|
# :call-seq:
|
@@ -1908,19 +1927,19 @@ class REXML::Element < ::REXML::Parent
|
|
1908
1927
|
# cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
|
1909
1928
|
# cs.map {|c| c.to_s } # => ["foo", "bar"]
|
1910
1929
|
#
|
1911
|
-
# source://rexml//lib/rexml/element.rb#
|
1930
|
+
# source://rexml//lib/rexml/element.rb#1441
|
1912
1931
|
def comments; end
|
1913
1932
|
|
1914
1933
|
# The context holds information about the processing environment, such as
|
1915
1934
|
# whitespace handling.
|
1916
1935
|
#
|
1917
|
-
# source://rexml//lib/rexml/element.rb#
|
1936
|
+
# source://rexml//lib/rexml/element.rb#281
|
1918
1937
|
def context; end
|
1919
1938
|
|
1920
1939
|
# The context holds information about the processing environment, such as
|
1921
1940
|
# whitespace handling.
|
1922
1941
|
#
|
1923
|
-
# source://rexml//lib/rexml/element.rb#
|
1942
|
+
# source://rexml//lib/rexml/element.rb#281
|
1924
1943
|
def context=(_arg0); end
|
1925
1944
|
|
1926
1945
|
# :call-seq:
|
@@ -1934,7 +1953,7 @@ class REXML::Element < ::REXML::Parent
|
|
1934
1953
|
# e.delete_attribute('bar') # => <bar/>
|
1935
1954
|
# e.delete_attribute('bar') # => nil
|
1936
1955
|
#
|
1937
|
-
# source://rexml//lib/rexml/element.rb#
|
1956
|
+
# source://rexml//lib/rexml/element.rb#1395
|
1938
1957
|
def delete_attribute(key); end
|
1939
1958
|
|
1940
1959
|
# :call-seq:
|
@@ -1974,7 +1993,7 @@ class REXML::Element < ::REXML::Parent
|
|
1974
1993
|
# a.delete_element('//c') # => <c/>
|
1975
1994
|
# a.delete_element('//c') # => nil
|
1976
1995
|
#
|
1977
|
-
# source://rexml//lib/rexml/element.rb#
|
1996
|
+
# source://rexml//lib/rexml/element.rb#778
|
1978
1997
|
def delete_element(element); end
|
1979
1998
|
|
1980
1999
|
# :call-seq:
|
@@ -1999,7 +2018,7 @@ class REXML::Element < ::REXML::Parent
|
|
1999
2018
|
# d.root.delete_namespace('nosuch')
|
2000
2019
|
# d.to_s # => "<a/>"
|
2001
2020
|
#
|
2002
|
-
# source://rexml//lib/rexml/element.rb#
|
2021
|
+
# source://rexml//lib/rexml/element.rb#687
|
2003
2022
|
def delete_namespace(namespace = T.unsafe(nil)); end
|
2004
2023
|
|
2005
2024
|
# :call-seq:
|
@@ -2023,7 +2042,7 @@ class REXML::Element < ::REXML::Parent
|
|
2023
2042
|
#
|
2024
2043
|
# Related: #root, #root_node.
|
2025
2044
|
#
|
2026
|
-
# source://rexml//lib/rexml/element.rb#
|
2045
|
+
# source://rexml//lib/rexml/element.rb#475
|
2027
2046
|
def document; end
|
2028
2047
|
|
2029
2048
|
# :call-seq:
|
@@ -2042,7 +2061,7 @@ class REXML::Element < ::REXML::Parent
|
|
2042
2061
|
# <d> ... </>
|
2043
2062
|
# <e/>
|
2044
2063
|
#
|
2045
|
-
# source://rexml//lib/rexml/element.rb#
|
2064
|
+
# source://rexml//lib/rexml/element.rb#930
|
2046
2065
|
def each_element(xpath = T.unsafe(nil), &block); end
|
2047
2066
|
|
2048
2067
|
# :call-seq:
|
@@ -2094,7 +2113,7 @@ class REXML::Element < ::REXML::Parent
|
|
2094
2113
|
#
|
2095
2114
|
# <d id='1'/>
|
2096
2115
|
#
|
2097
|
-
# source://rexml//lib/rexml/element.rb#
|
2116
|
+
# source://rexml//lib/rexml/element.rb#847
|
2098
2117
|
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2099
2118
|
|
2100
2119
|
# :call-seq:
|
@@ -2144,13 +2163,13 @@ class REXML::Element < ::REXML::Parent
|
|
2144
2163
|
#
|
2145
2164
|
# <c> ... </>
|
2146
2165
|
#
|
2147
|
-
# source://rexml//lib/rexml/element.rb#
|
2166
|
+
# source://rexml//lib/rexml/element.rb#904
|
2148
2167
|
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2149
2168
|
|
2150
2169
|
# Mechanisms for accessing attributes and child elements of this
|
2151
2170
|
# element.
|
2152
2171
|
#
|
2153
|
-
# source://rexml//lib/rexml/element.rb#
|
2172
|
+
# source://rexml//lib/rexml/element.rb#278
|
2154
2173
|
def elements; end
|
2155
2174
|
|
2156
2175
|
# :call-seq:
|
@@ -2168,7 +2187,7 @@ class REXML::Element < ::REXML::Parent
|
|
2168
2187
|
# d = REXML::Document.new(xml_string)
|
2169
2188
|
# d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
|
2170
2189
|
#
|
2171
|
-
# source://rexml//lib/rexml/element.rb#
|
2190
|
+
# source://rexml//lib/rexml/element.rb#949
|
2172
2191
|
def get_elements(xpath); end
|
2173
2192
|
|
2174
2193
|
# :call-seq:
|
@@ -2188,7 +2207,7 @@ class REXML::Element < ::REXML::Parent
|
|
2188
2207
|
#
|
2189
2208
|
# d.root.get_text(1) # => "this is bold!"
|
2190
2209
|
#
|
2191
|
-
# source://rexml//lib/rexml/element.rb#
|
2210
|
+
# source://rexml//lib/rexml/element.rb#1053
|
2192
2211
|
def get_text(path = T.unsafe(nil)); end
|
2193
2212
|
|
2194
2213
|
# :call-seq:
|
@@ -2203,7 +2222,7 @@ class REXML::Element < ::REXML::Parent
|
|
2203
2222
|
#
|
2204
2223
|
# @return [Boolean]
|
2205
2224
|
#
|
2206
|
-
# source://rexml//lib/rexml/element.rb#
|
2225
|
+
# source://rexml//lib/rexml/element.rb#1315
|
2207
2226
|
def has_attributes?; end
|
2208
2227
|
|
2209
2228
|
# :call-seq:
|
@@ -2220,7 +2239,7 @@ class REXML::Element < ::REXML::Parent
|
|
2220
2239
|
#
|
2221
2240
|
# @return [Boolean]
|
2222
2241
|
#
|
2223
|
-
# source://rexml//lib/rexml/element.rb#
|
2242
|
+
# source://rexml//lib/rexml/element.rb#794
|
2224
2243
|
def has_elements?; end
|
2225
2244
|
|
2226
2245
|
# :call-seq:
|
@@ -2237,7 +2256,7 @@ class REXML::Element < ::REXML::Parent
|
|
2237
2256
|
#
|
2238
2257
|
# @return [Boolean]
|
2239
2258
|
#
|
2240
|
-
# source://rexml//lib/rexml/element.rb#
|
2259
|
+
# source://rexml//lib/rexml/element.rb#1002
|
2241
2260
|
def has_text?; end
|
2242
2261
|
|
2243
2262
|
# :call-seq:
|
@@ -2247,7 +2266,7 @@ class REXML::Element < ::REXML::Parent
|
|
2247
2266
|
#
|
2248
2267
|
# See {Element Context}[../doc/rexml/context_rdoc.html].
|
2249
2268
|
#
|
2250
|
-
# source://rexml//lib/rexml/element.rb#
|
2269
|
+
# source://rexml//lib/rexml/element.rb#513
|
2251
2270
|
def ignore_whitespace_nodes; end
|
2252
2271
|
|
2253
2272
|
# :call-seq:
|
@@ -2271,7 +2290,7 @@ class REXML::Element < ::REXML::Parent
|
|
2271
2290
|
# e.add_element(REXML::Element.new('baz'))
|
2272
2291
|
# e.inspect # => "<foo bar='0' baz='1'> ... </>"
|
2273
2292
|
#
|
2274
|
-
# source://rexml//lib/rexml/element.rb#
|
2293
|
+
# source://rexml//lib/rexml/element.rb#358
|
2275
2294
|
def inspect; end
|
2276
2295
|
|
2277
2296
|
# :call-seq:
|
@@ -2291,7 +2310,7 @@ class REXML::Element < ::REXML::Parent
|
|
2291
2310
|
# is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
|
2292
2311
|
# is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
|
2293
2312
|
#
|
2294
|
-
# source://rexml//lib/rexml/element.rb#
|
2313
|
+
# source://rexml//lib/rexml/element.rb#1462
|
2295
2314
|
def instructions; end
|
2296
2315
|
|
2297
2316
|
# :call-seq:
|
@@ -2314,7 +2333,7 @@ class REXML::Element < ::REXML::Parent
|
|
2314
2333
|
# b.namespace('y') # => "2"
|
2315
2334
|
# b.namespace('nosuch') # => nil
|
2316
2335
|
#
|
2317
|
-
# source://rexml//lib/rexml/element.rb#
|
2336
|
+
# source://rexml//lib/rexml/element.rb#618
|
2318
2337
|
def namespace(prefix = T.unsafe(nil)); end
|
2319
2338
|
|
2320
2339
|
# :call-seq:
|
@@ -2336,7 +2355,7 @@ class REXML::Element < ::REXML::Parent
|
|
2336
2355
|
# d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
|
2337
2356
|
# d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
|
2338
2357
|
#
|
2339
|
-
# source://rexml//lib/rexml/element.rb#
|
2358
|
+
# source://rexml//lib/rexml/element.rb#591
|
2340
2359
|
def namespaces; end
|
2341
2360
|
|
2342
2361
|
# :call-seq:
|
@@ -2349,7 +2368,7 @@ class REXML::Element < ::REXML::Parent
|
|
2349
2368
|
# d.root.elements['b'].next_element #-> <c/>
|
2350
2369
|
# d.root.elements['c'].next_element #-> nil
|
2351
2370
|
#
|
2352
|
-
# source://rexml//lib/rexml/element.rb#
|
2371
|
+
# source://rexml//lib/rexml/element.rb#963
|
2353
2372
|
def next_element; end
|
2354
2373
|
|
2355
2374
|
# :call-seq:
|
@@ -2361,7 +2380,7 @@ class REXML::Element < ::REXML::Parent
|
|
2361
2380
|
# a = d.root # => <a/>
|
2362
2381
|
# a.node_type # => :element
|
2363
2382
|
#
|
2364
|
-
# source://rexml//lib/rexml/element.rb#
|
2383
|
+
# source://rexml//lib/rexml/element.rb#1168
|
2365
2384
|
def node_type; end
|
2366
2385
|
|
2367
2386
|
# :call-seq:
|
@@ -2383,7 +2402,7 @@ class REXML::Element < ::REXML::Parent
|
|
2383
2402
|
# d.elements['//b'].prefixes # => ["x", "y"]
|
2384
2403
|
# d.elements['//c'].prefixes # => ["x", "y", "z"]
|
2385
2404
|
#
|
2386
|
-
# source://rexml//lib/rexml/element.rb#
|
2405
|
+
# source://rexml//lib/rexml/element.rb#565
|
2387
2406
|
def prefixes; end
|
2388
2407
|
|
2389
2408
|
# :call-seq:
|
@@ -2396,7 +2415,7 @@ class REXML::Element < ::REXML::Parent
|
|
2396
2415
|
# d.root.elements['c'].previous_element #-> <b/>
|
2397
2416
|
# d.root.elements['b'].previous_element #-> nil
|
2398
2417
|
#
|
2399
|
-
# source://rexml//lib/rexml/element.rb#
|
2418
|
+
# source://rexml//lib/rexml/element.rb#979
|
2400
2419
|
def previous_element; end
|
2401
2420
|
|
2402
2421
|
# :call-seq:
|
@@ -2409,7 +2428,7 @@ class REXML::Element < ::REXML::Parent
|
|
2409
2428
|
# The evaluation is tested against +expanded_name+, and so is namespace
|
2410
2429
|
# sensitive.
|
2411
2430
|
#
|
2412
|
-
# source://rexml//lib/rexml/element.rb#
|
2431
|
+
# source://rexml//lib/rexml/element.rb#533
|
2413
2432
|
def raw; end
|
2414
2433
|
|
2415
2434
|
# :call-seq:
|
@@ -2429,7 +2448,7 @@ class REXML::Element < ::REXML::Parent
|
|
2429
2448
|
#
|
2430
2449
|
# Related: #root_node, #document.
|
2431
2450
|
#
|
2432
|
-
# source://rexml//lib/rexml/element.rb#
|
2451
|
+
# source://rexml//lib/rexml/element.rb#443
|
2433
2452
|
def root; end
|
2434
2453
|
|
2435
2454
|
# :call-seq:
|
@@ -2467,7 +2486,7 @@ class REXML::Element < ::REXML::Parent
|
|
2467
2486
|
#
|
2468
2487
|
# Related: #root, #document.
|
2469
2488
|
#
|
2470
|
-
# source://rexml//lib/rexml/element.rb#
|
2489
|
+
# source://rexml//lib/rexml/element.rb#422
|
2471
2490
|
def root_node; end
|
2472
2491
|
|
2473
2492
|
# :call-seq:
|
@@ -2494,7 +2513,7 @@ class REXML::Element < ::REXML::Parent
|
|
2494
2513
|
# Note also that the text note is retrieved by method get_text,
|
2495
2514
|
# and so is always normalized text.
|
2496
2515
|
#
|
2497
|
-
# source://rexml//lib/rexml/element.rb#
|
2516
|
+
# source://rexml//lib/rexml/element.rb#1030
|
2498
2517
|
def text(path = T.unsafe(nil)); end
|
2499
2518
|
|
2500
2519
|
# :call-seq:
|
@@ -2522,7 +2541,7 @@ class REXML::Element < ::REXML::Parent
|
|
2522
2541
|
#
|
2523
2542
|
# d.root.text = nil #-> '<a><b/><c/></a>'
|
2524
2543
|
#
|
2525
|
-
# source://rexml//lib/rexml/element.rb#
|
2544
|
+
# source://rexml//lib/rexml/element.rb#1089
|
2526
2545
|
def text=(text); end
|
2527
2546
|
|
2528
2547
|
# :call-seq:
|
@@ -2537,7 +2556,7 @@ class REXML::Element < ::REXML::Parent
|
|
2537
2556
|
# ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
|
2538
2557
|
# ts.map {|t| t.to_s } # => ["text", "more"]
|
2539
2558
|
#
|
2540
|
-
# source://rexml//lib/rexml/element.rb#
|
2559
|
+
# source://rexml//lib/rexml/element.rb#1478
|
2541
2560
|
def texts; end
|
2542
2561
|
|
2543
2562
|
# :call-seq:
|
@@ -2551,7 +2570,7 @@ class REXML::Element < ::REXML::Parent
|
|
2551
2570
|
# The evaluation is tested against the element's +expanded_name+,
|
2552
2571
|
# and so is namespace-sensitive.
|
2553
2572
|
#
|
2554
|
-
# source://rexml//lib/rexml/element.rb#
|
2573
|
+
# source://rexml//lib/rexml/element.rb#490
|
2555
2574
|
def whitespace; end
|
2556
2575
|
|
2557
2576
|
# == DEPRECATED
|
@@ -2577,7 +2596,7 @@ class REXML::Element < ::REXML::Parent
|
|
2577
2596
|
# doc.write( out ) #-> doc is written to the string 'out'
|
2578
2597
|
# doc.write( $stdout ) #-> doc written to the console
|
2579
2598
|
#
|
2580
|
-
# source://rexml//lib/rexml/element.rb#
|
2599
|
+
# source://rexml//lib/rexml/element.rb#1504
|
2581
2600
|
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
2582
2601
|
|
2583
2602
|
# :call-seq:
|
@@ -2600,17 +2619,17 @@ class REXML::Element < ::REXML::Parent
|
|
2600
2619
|
# e = REXML::Element.new('foo')
|
2601
2620
|
# e.xpath # => "foo"
|
2602
2621
|
#
|
2603
|
-
# source://rexml//lib/rexml/element.rb#
|
2622
|
+
# source://rexml//lib/rexml/element.rb#1192
|
2604
2623
|
def xpath; end
|
2605
2624
|
|
2606
2625
|
private
|
2607
2626
|
|
2608
|
-
# source://rexml//lib/rexml/element.rb#
|
2627
|
+
# source://rexml//lib/rexml/element.rb#1521
|
2609
2628
|
def __to_xpath_helper(node); end
|
2610
2629
|
|
2611
2630
|
# A private helper method
|
2612
2631
|
#
|
2613
|
-
# source://rexml//lib/rexml/element.rb#
|
2632
|
+
# source://rexml//lib/rexml/element.rb#1536
|
2614
2633
|
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
|
2615
2634
|
end
|
2616
2635
|
|
@@ -2664,7 +2683,7 @@ end
|
|
2664
2683
|
# elements = d.root.elements
|
2665
2684
|
# elements # => #<REXML::Elements @element=<bookstore> ... </>>
|
2666
2685
|
#
|
2667
|
-
# source://rexml//lib/rexml/element.rb#
|
2686
|
+
# source://rexml//lib/rexml/element.rb#1591
|
2668
2687
|
class REXML::Elements
|
2669
2688
|
include ::Enumerable
|
2670
2689
|
|
@@ -2681,7 +2700,7 @@ class REXML::Elements
|
|
2681
2700
|
#
|
2682
2701
|
# @return [Elements] a new instance of Elements
|
2683
2702
|
#
|
2684
|
-
# source://rexml//lib/rexml/element.rb#
|
2703
|
+
# source://rexml//lib/rexml/element.rb#1604
|
2685
2704
|
def initialize(parent); end
|
2686
2705
|
|
2687
2706
|
# :call-seq:
|
@@ -2746,7 +2765,7 @@ class REXML::Elements
|
|
2746
2765
|
# element.parent # => <bookstore> ... </>
|
2747
2766
|
# element.context # => {:raw=>:all}
|
2748
2767
|
#
|
2749
|
-
# source://rexml//lib/rexml/element.rb#
|
2768
|
+
# source://rexml//lib/rexml/element.rb#1921
|
2750
2769
|
def <<(element = T.unsafe(nil)); end
|
2751
2770
|
|
2752
2771
|
# :call-seq:
|
@@ -2802,7 +2821,7 @@ class REXML::Elements
|
|
2802
2821
|
# eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
|
2803
2822
|
# eles[5, 'book'] # => nil
|
2804
2823
|
#
|
2805
|
-
# source://rexml//lib/rexml/element.rb#
|
2824
|
+
# source://rexml//lib/rexml/element.rb#1676
|
2806
2825
|
def [](index, name = T.unsafe(nil)); end
|
2807
2826
|
|
2808
2827
|
# :call-seq:
|
@@ -2841,7 +2860,7 @@ class REXML::Elements
|
|
2841
2860
|
# eles[50] = REXML::Text.new('bar') # => "bar"
|
2842
2861
|
# eles.size # => 5
|
2843
2862
|
#
|
2844
|
-
# source://rexml//lib/rexml/element.rb#
|
2863
|
+
# source://rexml//lib/rexml/element.rb#1731
|
2845
2864
|
def []=(index, element); end
|
2846
2865
|
|
2847
2866
|
# :call-seq:
|
@@ -2906,7 +2925,7 @@ class REXML::Elements
|
|
2906
2925
|
# element.parent # => <bookstore> ... </>
|
2907
2926
|
# element.context # => {:raw=>:all}
|
2908
2927
|
#
|
2909
|
-
# source://rexml//lib/rexml/element.rb#
|
2928
|
+
# source://rexml//lib/rexml/element.rb#1921
|
2910
2929
|
def add(element = T.unsafe(nil)); end
|
2911
2930
|
|
2912
2931
|
# :call-seq:
|
@@ -2926,7 +2945,7 @@ class REXML::Elements
|
|
2926
2945
|
# xpath = '//book [@category="web"]'
|
2927
2946
|
# elements.collect(xpath) {|element| element.size } # => [17, 9]
|
2928
2947
|
#
|
2929
|
-
# source://rexml//lib/rexml/element.rb#
|
2948
|
+
# source://rexml//lib/rexml/element.rb#1984
|
2930
2949
|
def collect(xpath = T.unsafe(nil)); end
|
2931
2950
|
|
2932
2951
|
# :call-seq:
|
@@ -2970,7 +2989,7 @@ class REXML::Elements
|
|
2970
2989
|
# elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
|
2971
2990
|
# elements.delete('//nosuch') # => nil
|
2972
2991
|
#
|
2973
|
-
# source://rexml//lib/rexml/element.rb#
|
2992
|
+
# source://rexml//lib/rexml/element.rb#1821
|
2974
2993
|
def delete(element); end
|
2975
2994
|
|
2976
2995
|
# :call-seq:
|
@@ -2990,7 +3009,7 @@ class REXML::Elements
|
|
2990
3009
|
# elements.size # => 0
|
2991
3010
|
# elements.delete_all('//book') # => []
|
2992
3011
|
#
|
2993
|
-
# source://rexml//lib/rexml/element.rb#
|
3012
|
+
# source://rexml//lib/rexml/element.rb#1847
|
2994
3013
|
def delete_all(xpath); end
|
2995
3014
|
|
2996
3015
|
# :call-seq:
|
@@ -3021,7 +3040,7 @@ class REXML::Elements
|
|
3021
3040
|
# <book category='web'> ... </>
|
3022
3041
|
# <book category='web' cover='paperback'> ... </>
|
3023
3042
|
#
|
3024
|
-
# source://rexml//lib/rexml/element.rb#
|
3043
|
+
# source://rexml//lib/rexml/element.rb#1963
|
3025
3044
|
def each(xpath = T.unsafe(nil)); end
|
3026
3045
|
|
3027
3046
|
# :call-seq:
|
@@ -3036,7 +3055,7 @@ class REXML::Elements
|
|
3036
3055
|
#
|
3037
3056
|
# @return [Boolean]
|
3038
3057
|
#
|
3039
|
-
# source://rexml//lib/rexml/element.rb#
|
3058
|
+
# source://rexml//lib/rexml/element.rb#1751
|
3040
3059
|
def empty?; end
|
3041
3060
|
|
3042
3061
|
# :call-seq:
|
@@ -3053,7 +3072,7 @@ class REXML::Elements
|
|
3053
3072
|
# elements.index(ele_4) # => 3
|
3054
3073
|
# elements.index(ele_3) # => -1
|
3055
3074
|
#
|
3056
|
-
# source://rexml//lib/rexml/element.rb#
|
3075
|
+
# source://rexml//lib/rexml/element.rb#1769
|
3057
3076
|
def index(element); end
|
3058
3077
|
|
3059
3078
|
# :call-seq:
|
@@ -3133,7 +3152,7 @@ class REXML::Elements
|
|
3133
3152
|
# total += element.size
|
3134
3153
|
# end # => 26
|
3135
3154
|
#
|
3136
|
-
# source://rexml//lib/rexml/element.rb#
|
3155
|
+
# source://rexml//lib/rexml/element.rb#2069
|
3137
3156
|
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
|
3138
3157
|
|
3139
3158
|
# :call-seq:
|
@@ -3147,7 +3166,7 @@ class REXML::Elements
|
|
3147
3166
|
# elements = REXML::Elements.new(d.root)
|
3148
3167
|
# elements.parent == d.root # => true
|
3149
3168
|
#
|
3150
|
-
# source://rexml//lib/rexml/element.rb#
|
3169
|
+
# source://rexml//lib/rexml/element.rb#1619
|
3151
3170
|
def parent; end
|
3152
3171
|
|
3153
3172
|
# :call-seq:
|
@@ -3159,7 +3178,7 @@ class REXML::Elements
|
|
3159
3178
|
# d.root.elements.size # => 3 # Three elements.
|
3160
3179
|
# d.root.size # => 6 # Three elements plus three text nodes..
|
3161
3180
|
#
|
3162
|
-
# source://rexml//lib/rexml/element.rb#
|
3181
|
+
# source://rexml//lib/rexml/element.rb#2093
|
3163
3182
|
def size; end
|
3164
3183
|
|
3165
3184
|
# :call-seq:
|
@@ -3180,14 +3199,14 @@ class REXML::Elements
|
|
3180
3199
|
#
|
3181
3200
|
# elements.to_a('//c') # => [<c/>]
|
3182
3201
|
#
|
3183
|
-
# source://rexml//lib/rexml/element.rb#
|
3202
|
+
# source://rexml//lib/rexml/element.rb#2117
|
3184
3203
|
def to_a(xpath = T.unsafe(nil)); end
|
3185
3204
|
|
3186
3205
|
private
|
3187
3206
|
|
3188
3207
|
# Private helper class. Removes quotes from quoted strings
|
3189
3208
|
#
|
3190
|
-
# source://rexml//lib/rexml/element.rb#
|
3209
|
+
# source://rexml//lib/rexml/element.rb#2125
|
3191
3210
|
def literalize(name); end
|
3192
3211
|
end
|
3193
3212
|
|
@@ -3229,65 +3248,54 @@ class REXML::Entity < ::REXML::Child
|
|
3229
3248
|
#
|
3230
3249
|
# @return [Entity] a new instance of Entity
|
3231
3250
|
#
|
3232
|
-
# source://rexml//lib/rexml/entity.rb#
|
3251
|
+
# source://rexml//lib/rexml/entity.rb#34
|
3233
3252
|
def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
|
3234
3253
|
|
3235
3254
|
# Returns the value of attribute external.
|
3236
3255
|
#
|
3237
|
-
# source://rexml//lib/rexml/entity.rb#
|
3256
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3238
3257
|
def external; end
|
3239
3258
|
|
3240
3259
|
# Returns the value of attribute name.
|
3241
3260
|
#
|
3242
|
-
# source://rexml//lib/rexml/entity.rb#
|
3261
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3243
3262
|
def name; end
|
3244
3263
|
|
3245
3264
|
# Returns the value of attribute ndata.
|
3246
3265
|
#
|
3247
|
-
# source://rexml//lib/rexml/entity.rb#
|
3266
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3248
3267
|
def ndata; end
|
3249
3268
|
|
3250
3269
|
# Returns the value of this entity unprocessed -- raw. This is the
|
3251
3270
|
# normalized value; that is, with all %ent; and &ent; entities intact
|
3252
3271
|
#
|
3253
|
-
# source://rexml//lib/rexml/entity.rb#
|
3272
|
+
# source://rexml//lib/rexml/entity.rb#86
|
3254
3273
|
def normalized; end
|
3255
3274
|
|
3256
|
-
# source://rexml//lib/rexml/entity.rb#138
|
3257
|
-
def parent=(other); end
|
3258
|
-
|
3259
3275
|
# Returns the value of attribute pubid.
|
3260
3276
|
#
|
3261
|
-
# source://rexml//lib/rexml/entity.rb#
|
3277
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3262
3278
|
def pubid; end
|
3263
3279
|
|
3264
3280
|
# Returns the value of attribute ref.
|
3265
3281
|
#
|
3266
|
-
# source://rexml//lib/rexml/entity.rb#
|
3282
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3267
3283
|
def ref; end
|
3268
3284
|
|
3269
3285
|
# Returns this entity as a string. See write().
|
3270
3286
|
#
|
3271
|
-
# source://rexml//lib/rexml/entity.rb#
|
3287
|
+
# source://rexml//lib/rexml/entity.rb#120
|
3272
3288
|
def to_s; end
|
3273
3289
|
|
3274
3290
|
# Evaluates to the unnormalized value of this entity; that is, replacing
|
3275
|
-
#
|
3276
|
-
# +value()+ in that +value+ only replaces %ent; entities.
|
3291
|
+
# &ent; entities.
|
3277
3292
|
#
|
3278
3293
|
# source://rexml//lib/rexml/entity.rb#73
|
3279
3294
|
def unnormalized; end
|
3280
3295
|
|
3281
|
-
# Returns the value of
|
3282
|
-
# are processed. If the value contains internal references (IE,
|
3283
|
-
# %blah;), those are replaced with their values. IE, if the doctype
|
3284
|
-
# contains:
|
3285
|
-
# <!ENTITY % foo "bar">
|
3286
|
-
# <!ENTITY yada "nanoo %foo; nanoo>
|
3287
|
-
# then:
|
3288
|
-
# doctype.entity('yada').value #-> "nanoo bar nanoo"
|
3296
|
+
# Returns the value of attribute value.
|
3289
3297
|
#
|
3290
|
-
# source://rexml//lib/rexml/entity.rb#
|
3298
|
+
# source://rexml//lib/rexml/entity.rb#23
|
3291
3299
|
def value; end
|
3292
3300
|
|
3293
3301
|
# Write out a fully formed, correct entity definition (assuming the Entity
|
@@ -3299,21 +3307,16 @@ class REXML::Entity < ::REXML::Child
|
|
3299
3307
|
# indent::
|
3300
3308
|
# *DEPRECATED* and ignored
|
3301
3309
|
#
|
3302
|
-
# source://rexml//lib/rexml/entity.rb#
|
3310
|
+
# source://rexml//lib/rexml/entity.rb#98
|
3303
3311
|
def write(out, indent = T.unsafe(nil)); end
|
3304
3312
|
|
3305
|
-
private
|
3306
|
-
|
3307
|
-
# source://rexml//lib/rexml/entity.rb#144
|
3308
|
-
def resolve_value; end
|
3309
|
-
|
3310
3313
|
class << self
|
3311
3314
|
# Evaluates whether the given string matches an entity definition,
|
3312
3315
|
# returning true if so, and false otherwise.
|
3313
3316
|
#
|
3314
3317
|
# @return [Boolean]
|
3315
3318
|
#
|
3316
|
-
# source://rexml//lib/rexml/entity.rb#
|
3319
|
+
# source://rexml//lib/rexml/entity.rb#67
|
3317
3320
|
def matches?(string); end
|
3318
3321
|
end
|
3319
3322
|
end
|
@@ -3454,47 +3457,44 @@ end
|
|
3454
3457
|
# A Source that wraps an IO. See the Source class for method
|
3455
3458
|
# documentation
|
3456
3459
|
#
|
3457
|
-
# source://rexml//lib/rexml/source.rb#
|
3460
|
+
# source://rexml//lib/rexml/source.rb#184
|
3458
3461
|
class REXML::IOSource < ::REXML::Source
|
3459
3462
|
# block_size has been deprecated
|
3460
3463
|
#
|
3461
3464
|
# @return [IOSource] a new instance of IOSource
|
3462
3465
|
#
|
3463
|
-
# source://rexml//lib/rexml/source.rb#
|
3466
|
+
# source://rexml//lib/rexml/source.rb#187
|
3464
3467
|
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
3465
3468
|
|
3466
|
-
# source://rexml//lib/rexml/source.rb#215
|
3467
|
-
def consume(pattern); end
|
3468
|
-
|
3469
3469
|
# @return the current line in the source
|
3470
3470
|
#
|
3471
|
-
# source://rexml//lib/rexml/source.rb#
|
3471
|
+
# source://rexml//lib/rexml/source.rb#275
|
3472
3472
|
def current_line; end
|
3473
3473
|
|
3474
3474
|
# @return [Boolean]
|
3475
3475
|
#
|
3476
|
-
# source://rexml//lib/rexml/source.rb#
|
3476
|
+
# source://rexml//lib/rexml/source.rb#270
|
3477
3477
|
def empty?; end
|
3478
3478
|
|
3479
|
-
# source://rexml//lib/rexml/source.rb#
|
3480
|
-
def
|
3479
|
+
# source://rexml//lib/rexml/source.rb#247
|
3480
|
+
def ensure_buffer; end
|
3481
3481
|
|
3482
|
-
# source://rexml//lib/rexml/source.rb#
|
3483
|
-
def
|
3482
|
+
# source://rexml//lib/rexml/source.rb#251
|
3483
|
+
def match(pattern, cons = T.unsafe(nil)); end
|
3484
3484
|
|
3485
|
-
# source://rexml//lib/rexml/source.rb#
|
3486
|
-
def read; end
|
3485
|
+
# source://rexml//lib/rexml/source.rb#208
|
3486
|
+
def read(term = T.unsafe(nil), min_bytes = T.unsafe(nil)); end
|
3487
3487
|
|
3488
|
-
# source://rexml//lib/rexml/source.rb#
|
3489
|
-
def
|
3488
|
+
# source://rexml//lib/rexml/source.rb#229
|
3489
|
+
def read_until(term); end
|
3490
3490
|
|
3491
3491
|
private
|
3492
3492
|
|
3493
|
-
# source://rexml//lib/rexml/source.rb#
|
3493
|
+
# source://rexml//lib/rexml/source.rb#322
|
3494
3494
|
def encoding_updated; end
|
3495
3495
|
|
3496
|
-
# source://rexml//lib/rexml/source.rb#
|
3497
|
-
def readline; end
|
3496
|
+
# source://rexml//lib/rexml/source.rb#297
|
3497
|
+
def readline(term = T.unsafe(nil)); end
|
3498
3498
|
end
|
3499
3499
|
|
3500
3500
|
# Represents an XML Instruction; IE, <? ... ?>
|
@@ -3923,7 +3923,7 @@ class REXML::ParseException < ::RuntimeError
|
|
3923
3923
|
# source://rexml//lib/rexml/parseexception.rb#6
|
3924
3924
|
def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end
|
3925
3925
|
|
3926
|
-
# source://rexml//lib/rexml/parseexception.rb#
|
3926
|
+
# source://rexml//lib/rexml/parseexception.rb#49
|
3927
3927
|
def context; end
|
3928
3928
|
|
3929
3929
|
# Returns the value of attribute continued_exception.
|
@@ -3938,7 +3938,7 @@ class REXML::ParseException < ::RuntimeError
|
|
3938
3938
|
# source://rexml//lib/rexml/parseexception.rb#4
|
3939
3939
|
def continued_exception=(_arg0); end
|
3940
3940
|
|
3941
|
-
# source://rexml//lib/rexml/parseexception.rb#
|
3941
|
+
# source://rexml//lib/rexml/parseexception.rb#44
|
3942
3942
|
def line; end
|
3943
3943
|
|
3944
3944
|
# Returns the value of attribute parser.
|
@@ -3953,7 +3953,7 @@ class REXML::ParseException < ::RuntimeError
|
|
3953
3953
|
# source://rexml//lib/rexml/parseexception.rb#4
|
3954
3954
|
def parser=(_arg0); end
|
3955
3955
|
|
3956
|
-
# source://rexml//lib/rexml/parseexception.rb#
|
3956
|
+
# source://rexml//lib/rexml/parseexception.rb#39
|
3957
3957
|
def position; end
|
3958
3958
|
|
3959
3959
|
# Returns the value of attribute source.
|
@@ -3992,36 +3992,55 @@ end
|
|
3992
3992
|
#
|
3993
3993
|
# Nat Price gave me some good ideas for the API.
|
3994
3994
|
#
|
3995
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3995
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#57
|
3996
3996
|
class REXML::Parsers::BaseParser
|
3997
3997
|
# @return [BaseParser] a new instance of BaseParser
|
3998
3998
|
#
|
3999
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3999
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#163
|
4000
4000
|
def initialize(source); end
|
4001
4001
|
|
4002
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4002
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#173
|
4003
4003
|
def add_listener(listener); end
|
4004
4004
|
|
4005
4005
|
# Returns true if there are no more events
|
4006
4006
|
#
|
4007
4007
|
# @return [Boolean]
|
4008
4008
|
#
|
4009
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4009
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#204
|
4010
4010
|
def empty?; end
|
4011
4011
|
|
4012
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4012
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#536
|
4013
4013
|
def entity(reference, entities); end
|
4014
4014
|
|
4015
|
+
# Returns the value of attribute entity_expansion_count.
|
4016
|
+
#
|
4017
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#178
|
4018
|
+
def entity_expansion_count; end
|
4019
|
+
|
4020
|
+
# Sets the attribute entity_expansion_limit
|
4021
|
+
#
|
4022
|
+
# @param value the value to set the attribute entity_expansion_limit to.
|
4023
|
+
#
|
4024
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#179
|
4025
|
+
def entity_expansion_limit=(_arg0); end
|
4026
|
+
|
4027
|
+
# Sets the attribute entity_expansion_text_limit
|
4028
|
+
#
|
4029
|
+
# @param value the value to set the attribute entity_expansion_text_limit to.
|
4030
|
+
#
|
4031
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#180
|
4032
|
+
def entity_expansion_text_limit=(_arg0); end
|
4033
|
+
|
4015
4034
|
# Returns true if there are more events. Synonymous with !empty?
|
4016
4035
|
#
|
4017
4036
|
# @return [Boolean]
|
4018
4037
|
#
|
4019
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4038
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#209
|
4020
4039
|
def has_next?; end
|
4021
4040
|
|
4022
4041
|
# Escapes all possible entities
|
4023
4042
|
#
|
4024
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4043
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#547
|
4025
4044
|
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
4026
4045
|
|
4027
4046
|
# Peek at the +depth+ event in the stack. The first element on the stack
|
@@ -4031,75 +4050,126 @@ class REXML::Parsers::BaseParser
|
|
4031
4050
|
# event, so you can effectively pre-parse the entire document (pull the
|
4032
4051
|
# entire thing into memory) using this method.
|
4033
4052
|
#
|
4034
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4053
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#225
|
4035
4054
|
def peek(depth = T.unsafe(nil)); end
|
4036
4055
|
|
4037
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4056
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#194
|
4038
4057
|
def position; end
|
4039
4058
|
|
4040
4059
|
# Returns the next event. This is a +PullEvent+ object.
|
4041
4060
|
#
|
4042
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4061
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#240
|
4043
4062
|
def pull; end
|
4044
4063
|
|
4045
4064
|
# Returns the value of attribute source.
|
4046
4065
|
#
|
4047
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4066
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#177
|
4048
4067
|
def source; end
|
4049
4068
|
|
4050
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4069
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#182
|
4051
4070
|
def stream=(source); end
|
4052
4071
|
|
4053
4072
|
# Unescapes all possible entities
|
4054
4073
|
#
|
4055
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4074
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#563
|
4056
4075
|
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
4057
4076
|
|
4058
4077
|
# Push an event back on the head of the stream. This method
|
4059
4078
|
# has (theoretically) infinite depth.
|
4060
4079
|
#
|
4061
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4080
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#215
|
4062
4081
|
def unshift(token); end
|
4063
4082
|
|
4064
4083
|
private
|
4065
4084
|
|
4085
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#612
|
4086
|
+
def add_namespace(prefix, uri); end
|
4087
|
+
|
4066
4088
|
# @return [Boolean]
|
4067
4089
|
#
|
4068
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4090
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#645
|
4069
4091
|
def need_source_encoding_update?(xml_declaration_encoding); end
|
4070
4092
|
|
4071
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4072
|
-
def parse_attributes(prefixes
|
4093
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#765
|
4094
|
+
def parse_attributes(prefixes); end
|
4073
4095
|
|
4074
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4096
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#664
|
4075
4097
|
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
4076
4098
|
|
4077
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4099
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#692
|
4078
4100
|
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
4079
4101
|
|
4080
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4102
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#651
|
4081
4103
|
def parse_name(base_error_message); end
|
4082
4104
|
|
4083
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4105
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#627
|
4106
|
+
def pop_namespaces_restore; end
|
4107
|
+
|
4108
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#730
|
4084
4109
|
def process_instruction; end
|
4085
4110
|
|
4086
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4111
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#250
|
4087
4112
|
def pull_event; end
|
4113
|
+
|
4114
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#621
|
4115
|
+
def push_namespaces_restore; end
|
4116
|
+
|
4117
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#638
|
4118
|
+
def record_entity_expansion(delta = T.unsafe(nil)); end
|
4088
4119
|
end
|
4089
4120
|
|
4090
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4121
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#130
|
4091
4122
|
REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
|
4092
4123
|
|
4093
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4124
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#131
|
4094
4125
|
REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
|
4095
4126
|
|
4096
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4127
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#132
|
4097
4128
|
REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
|
4098
4129
|
|
4099
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4130
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#143
|
4131
|
+
module REXML::Parsers::BaseParser::Private; end
|
4132
|
+
|
4133
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#147
|
4134
|
+
REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
|
4135
|
+
|
4136
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#152
|
4137
|
+
REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4138
|
+
|
4139
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#153
|
4140
|
+
REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
|
4141
|
+
|
4142
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#146
|
4143
|
+
REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4144
|
+
|
4145
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#154
|
4146
|
+
REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4147
|
+
|
4148
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#151
|
4149
|
+
REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4150
|
+
|
4151
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#149
|
4152
|
+
REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4153
|
+
|
4154
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#148
|
4155
|
+
REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4156
|
+
|
4157
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#150
|
4158
|
+
REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4159
|
+
|
4160
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#144
|
4161
|
+
REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4162
|
+
|
4163
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#145
|
4164
|
+
REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4165
|
+
|
4166
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#159
|
4167
|
+
REXML::Parsers::BaseParser::Private::XML_PREFIXED_NAMESPACE = T.let(T.unsafe(nil), String)
|
4168
|
+
|
4169
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#66
|
4100
4170
|
REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
|
4101
4171
|
|
4102
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4172
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#65
|
4103
4173
|
REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
|
4104
4174
|
|
4105
4175
|
# source://rexml//lib/rexml/parsers/streamparser.rb#6
|
@@ -4113,9 +4183,21 @@ class REXML::Parsers::StreamParser
|
|
4113
4183
|
def add_listener(listener); end
|
4114
4184
|
|
4115
4185
|
# source://rexml//lib/rexml/parsers/streamparser.rb#17
|
4186
|
+
def entity_expansion_count; end
|
4187
|
+
|
4188
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#21
|
4189
|
+
def entity_expansion_limit=(limit); end
|
4190
|
+
|
4191
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#25
|
4192
|
+
def entity_expansion_text_limit=(limit); end
|
4193
|
+
|
4194
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#29
|
4116
4195
|
def parse; end
|
4117
4196
|
end
|
4118
4197
|
|
4198
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#28
|
4199
|
+
module REXML::Parsers::StringScannerCaptures; end
|
4200
|
+
|
4119
4201
|
# source://rexml//lib/rexml/parsers/treeparser.rb#7
|
4120
4202
|
class REXML::Parsers::TreeParser
|
4121
4203
|
# @return [TreeParser] a new instance of TreeParser
|
@@ -4294,7 +4376,7 @@ end
|
|
4294
4376
|
# A Source can be searched for patterns, and wraps buffers and other
|
4295
4377
|
# objects and provides consumption of text
|
4296
4378
|
#
|
4297
|
-
# source://rexml//lib/rexml/source.rb#
|
4379
|
+
# source://rexml//lib/rexml/source.rb#51
|
4298
4380
|
class REXML::Source
|
4299
4381
|
include ::REXML::Encoding
|
4300
4382
|
|
@@ -4305,88 +4387,82 @@ class REXML::Source
|
|
4305
4387
|
# @param encoding if non-null, sets the encoding of the source to this
|
4306
4388
|
# @return [Source] a new instance of Source
|
4307
4389
|
#
|
4308
|
-
# source://rexml//lib/rexml/source.rb#
|
4390
|
+
# source://rexml//lib/rexml/source.rb#71
|
4309
4391
|
def initialize(arg, encoding = T.unsafe(nil)); end
|
4310
4392
|
|
4311
4393
|
# The current buffer (what we're going to read next)
|
4312
4394
|
#
|
4313
|
-
# source://rexml//lib/rexml/source.rb#
|
4395
|
+
# source://rexml//lib/rexml/source.rb#84
|
4314
4396
|
def buffer; end
|
4315
4397
|
|
4316
|
-
# source://rexml//lib/rexml/source.rb#
|
4317
|
-
def
|
4398
|
+
# source://rexml//lib/rexml/source.rb#94
|
4399
|
+
def buffer_encoding=(encoding); end
|
4318
4400
|
|
4319
4401
|
# @return the current line in the source
|
4320
4402
|
#
|
4321
|
-
# source://rexml//lib/rexml/source.rb#
|
4403
|
+
# source://rexml//lib/rexml/source.rb#143
|
4322
4404
|
def current_line; end
|
4323
4405
|
|
4406
|
+
# source://rexml//lib/rexml/source.rb#88
|
4407
|
+
def drop_parsed_content; end
|
4408
|
+
|
4324
4409
|
# @return [Boolean] true if the Source is exhausted
|
4325
4410
|
#
|
4326
|
-
# source://rexml//lib/rexml/source.rb#
|
4411
|
+
# source://rexml//lib/rexml/source.rb#138
|
4327
4412
|
def empty?; end
|
4328
4413
|
|
4329
4414
|
# Returns the value of attribute encoding.
|
4330
4415
|
#
|
4331
|
-
# source://rexml//lib/rexml/source.rb#
|
4416
|
+
# source://rexml//lib/rexml/source.rb#55
|
4332
4417
|
def encoding; end
|
4333
4418
|
|
4334
4419
|
# Inherited from Encoding
|
4335
4420
|
# Overridden to support optimized en/decoding
|
4336
4421
|
#
|
4337
|
-
# source://rexml//lib/rexml/source.rb#
|
4422
|
+
# source://rexml//lib/rexml/source.rb#100
|
4338
4423
|
def encoding=(enc); end
|
4339
4424
|
|
4425
|
+
# source://rexml//lib/rexml/source.rb#118
|
4426
|
+
def ensure_buffer; end
|
4427
|
+
|
4340
4428
|
# The line number of the last consumed text
|
4341
4429
|
#
|
4342
|
-
# source://rexml//lib/rexml/source.rb#
|
4430
|
+
# source://rexml//lib/rexml/source.rb#54
|
4343
4431
|
def line; end
|
4344
4432
|
|
4345
|
-
# source://rexml//lib/rexml/source.rb#
|
4433
|
+
# source://rexml//lib/rexml/source.rb#121
|
4346
4434
|
def match(pattern, cons = T.unsafe(nil)); end
|
4347
4435
|
|
4348
|
-
# source://rexml//lib/rexml/source.rb#
|
4349
|
-
def
|
4436
|
+
# source://rexml//lib/rexml/source.rb#129
|
4437
|
+
def position; end
|
4350
4438
|
|
4351
|
-
# source://rexml//lib/rexml/source.rb#
|
4352
|
-
def
|
4439
|
+
# source://rexml//lib/rexml/source.rb#133
|
4440
|
+
def position=(pos); end
|
4353
4441
|
|
4354
|
-
# source://rexml//lib/rexml/source.rb#
|
4355
|
-
def
|
4442
|
+
# source://rexml//lib/rexml/source.rb#105
|
4443
|
+
def read(term = T.unsafe(nil)); end
|
4356
4444
|
|
4357
|
-
# source://rexml//lib/rexml/source.rb#
|
4358
|
-
def
|
4359
|
-
|
4360
|
-
# Scans the source for a given pattern. Note, that this is not your
|
4361
|
-
# usual scan() method. For one thing, the pattern argument has some
|
4362
|
-
# requirements; for another, the source can be consumed. You can easily
|
4363
|
-
# confuse this method. Originally, the patterns were easier
|
4364
|
-
# to construct and this method more robust, because this method
|
4365
|
-
# generated search regexps on the fly; however, this was
|
4366
|
-
# computationally expensive and slowed down the entire REXML package
|
4367
|
-
# considerably, since this is by far the most commonly called method.
|
4368
|
-
# /^\s*(#{your pattern, with no groups})(.*)/. The first group
|
4369
|
-
# will be returned; the second group is used if the consume flag is
|
4370
|
-
# set.
|
4371
|
-
# everything after it in the Source.
|
4372
|
-
# pattern is not found.
|
4373
|
-
#
|
4374
|
-
# @param pattern must be a Regexp, and must be in the form of
|
4375
|
-
# @param consume if true, the pattern returned will be consumed, leaving
|
4376
|
-
# @return the pattern, if found, or nil if the Source is empty or the
|
4377
|
-
#
|
4378
|
-
# source://rexml//lib/rexml/source.rb#77
|
4379
|
-
def scan(pattern, cons = T.unsafe(nil)); end
|
4445
|
+
# source://rexml//lib/rexml/source.rb#108
|
4446
|
+
def read_until(term); end
|
4380
4447
|
|
4381
4448
|
private
|
4382
4449
|
|
4383
|
-
# source://rexml//lib/rexml/source.rb#
|
4450
|
+
# source://rexml//lib/rexml/source.rb#152
|
4384
4451
|
def detect_encoding; end
|
4385
4452
|
|
4386
|
-
# source://rexml//lib/rexml/source.rb#
|
4453
|
+
# source://rexml//lib/rexml/source.rb#170
|
4387
4454
|
def encoding_updated; end
|
4388
4455
|
end
|
4389
4456
|
|
4457
|
+
# source://rexml//lib/rexml/source.rb#57
|
4458
|
+
module REXML::Source::Private; end
|
4459
|
+
|
4460
|
+
# source://rexml//lib/rexml/source.rb#59
|
4461
|
+
REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4462
|
+
|
4463
|
+
# source://rexml//lib/rexml/source.rb#58
|
4464
|
+
REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer)
|
4465
|
+
|
4390
4466
|
# Represents text nodes in an XML document
|
4391
4467
|
#
|
4392
4468
|
# source://rexml//lib/rexml/text.rb#11
|
@@ -4441,33 +4517,33 @@ class REXML::Text < ::REXML::Child
|
|
4441
4517
|
# +returns+ the text itself to enable method chain like
|
4442
4518
|
# 'text << "XXX" << "YYY"'.
|
4443
4519
|
#
|
4444
|
-
# source://rexml//lib/rexml/text.rb#
|
4520
|
+
# source://rexml//lib/rexml/text.rb#214
|
4445
4521
|
def <<(to_append); end
|
4446
4522
|
|
4447
4523
|
# +other+ a String or a Text
|
4448
4524
|
# +returns+ the result of (to_s <=> arg.to_s)
|
4449
4525
|
#
|
4450
|
-
# source://rexml//lib/rexml/text.rb#
|
4526
|
+
# source://rexml//lib/rexml/text.rb#223
|
4451
4527
|
def <=>(other); end
|
4452
4528
|
|
4453
|
-
# source://rexml//lib/rexml/text.rb#
|
4529
|
+
# source://rexml//lib/rexml/text.rb#204
|
4454
4530
|
def clone; end
|
4455
4531
|
|
4456
|
-
# source://rexml//lib/rexml/text.rb#
|
4532
|
+
# source://rexml//lib/rexml/text.rb#227
|
4457
4533
|
def doctype; end
|
4458
4534
|
|
4459
4535
|
# @return [Boolean]
|
4460
4536
|
#
|
4461
|
-
# source://rexml//lib/rexml/text.rb#
|
4537
|
+
# source://rexml//lib/rexml/text.rb#199
|
4462
4538
|
def empty?; end
|
4463
4539
|
|
4464
|
-
# source://rexml//lib/rexml/text.rb#
|
4540
|
+
# source://rexml//lib/rexml/text.rb#299
|
4465
4541
|
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
4466
4542
|
|
4467
|
-
# source://rexml//lib/rexml/text.rb#
|
4543
|
+
# source://rexml//lib/rexml/text.rb#253
|
4468
4544
|
def inspect; end
|
4469
4545
|
|
4470
|
-
# source://rexml//lib/rexml/text.rb#
|
4546
|
+
# source://rexml//lib/rexml/text.rb#195
|
4471
4547
|
def node_type; end
|
4472
4548
|
|
4473
4549
|
# source://rexml//lib/rexml/text.rb#125
|
@@ -4497,7 +4573,7 @@ class REXML::Text < ::REXML::Child
|
|
4497
4573
|
# u = Text.new( "sean russell", false, nil, true )
|
4498
4574
|
# u.to_s #-> "sean russell"
|
4499
4575
|
#
|
4500
|
-
# source://rexml//lib/rexml/text.rb#
|
4576
|
+
# source://rexml//lib/rexml/text.rb#248
|
4501
4577
|
def to_s; end
|
4502
4578
|
|
4503
4579
|
# Returns the string value of this text. This is the text without
|
@@ -4514,7 +4590,7 @@ class REXML::Text < ::REXML::Child
|
|
4514
4590
|
# u = Text.new( "sean russell", false, nil, true )
|
4515
4591
|
# u.value #-> "sean russell"
|
4516
4592
|
#
|
4517
|
-
# source://rexml//lib/rexml/text.rb#
|
4593
|
+
# source://rexml//lib/rexml/text.rb#270
|
4518
4594
|
def value; end
|
4519
4595
|
|
4520
4596
|
# Sets the contents of this text node. This expects the text to be
|
@@ -4525,16 +4601,16 @@ class REXML::Text < ::REXML::Child
|
|
4525
4601
|
# e[0].value = "bar" # <a>bar</a>
|
4526
4602
|
# e[0].value = "<a>" # <a><a></a>
|
4527
4603
|
#
|
4528
|
-
# source://rexml//lib/rexml/text.rb#
|
4604
|
+
# source://rexml//lib/rexml/text.rb#282
|
4529
4605
|
def value=(val); end
|
4530
4606
|
|
4531
|
-
# source://rexml//lib/rexml/text.rb#
|
4607
|
+
# source://rexml//lib/rexml/text.rb#288
|
4532
4608
|
def wrap(string, width, addnewline = T.unsafe(nil)); end
|
4533
4609
|
|
4534
4610
|
# == DEPRECATED
|
4535
4611
|
# See REXML::Formatters
|
4536
4612
|
#
|
4537
|
-
# source://rexml//lib/rexml/text.rb#
|
4613
|
+
# source://rexml//lib/rexml/text.rb#314
|
4538
4614
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
4539
4615
|
|
4540
4616
|
# Writes out text, substituting special characters beforehand.
|
@@ -4552,18 +4628,18 @@ class REXML::Text < ::REXML::Child
|
|
4552
4628
|
# }
|
4553
4629
|
# puts ascOut
|
4554
4630
|
#
|
4555
|
-
# source://rexml//lib/rexml/text.rb#
|
4631
|
+
# source://rexml//lib/rexml/text.rb#346
|
4556
4632
|
def write_with_substitution(out, input); end
|
4557
4633
|
|
4558
4634
|
# FIXME
|
4559
4635
|
# This probably won't work properly
|
4560
4636
|
#
|
4561
|
-
# source://rexml//lib/rexml/text.rb#
|
4637
|
+
# source://rexml//lib/rexml/text.rb#326
|
4562
4638
|
def xpath; end
|
4563
4639
|
|
4564
4640
|
private
|
4565
4641
|
|
4566
|
-
# source://rexml//lib/rexml/text.rb#
|
4642
|
+
# source://rexml//lib/rexml/text.rb#359
|
4567
4643
|
def clear_cache; end
|
4568
4644
|
|
4569
4645
|
class << self
|
@@ -4572,23 +4648,23 @@ class REXML::Text < ::REXML::Child
|
|
4572
4648
|
# source://rexml//lib/rexml/text.rb#131
|
4573
4649
|
def check(string, pattern, doctype); end
|
4574
4650
|
|
4575
|
-
# source://rexml//lib/rexml/text.rb#
|
4651
|
+
# source://rexml//lib/rexml/text.rb#429
|
4576
4652
|
def expand(ref, doctype, filter); end
|
4577
4653
|
|
4578
4654
|
# Escapes all possible entities
|
4579
4655
|
#
|
4580
|
-
# source://rexml//lib/rexml/text.rb#
|
4656
|
+
# source://rexml//lib/rexml/text.rb#391
|
4581
4657
|
def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
4582
4658
|
|
4583
4659
|
# Reads text, substituting entities
|
4584
4660
|
#
|
4585
|
-
# source://rexml//lib/rexml/text.rb#
|
4661
|
+
# source://rexml//lib/rexml/text.rb#365
|
4586
4662
|
def read_with_substitution(input, illegal = T.unsafe(nil)); end
|
4587
4663
|
|
4588
4664
|
# Unescapes all possible entities
|
4589
4665
|
#
|
4590
|
-
# source://rexml//lib/rexml/text.rb#
|
4591
|
-
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
|
4666
|
+
# source://rexml//lib/rexml/text.rb#415
|
4667
|
+
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil), entity_expansion_text_limit: T.unsafe(nil)); end
|
4592
4668
|
end
|
4593
4669
|
end
|
4594
4670
|
|
@@ -4714,24 +4790,24 @@ end
|
|
4714
4790
|
|
4715
4791
|
# @private
|
4716
4792
|
#
|
4717
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4793
|
+
# source://rexml//lib/rexml/xpath_parser.rb#963
|
4718
4794
|
class REXML::XPathNode
|
4719
4795
|
# @return [XPathNode] a new instance of XPathNode
|
4720
4796
|
#
|
4721
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4797
|
+
# source://rexml//lib/rexml/xpath_parser.rb#965
|
4722
4798
|
def initialize(node, context = T.unsafe(nil)); end
|
4723
4799
|
|
4724
4800
|
# Returns the value of attribute context.
|
4725
4801
|
#
|
4726
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4802
|
+
# source://rexml//lib/rexml/xpath_parser.rb#964
|
4727
4803
|
def context; end
|
4728
4804
|
|
4729
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4805
|
+
# source://rexml//lib/rexml/xpath_parser.rb#974
|
4730
4806
|
def position; end
|
4731
4807
|
|
4732
4808
|
# Returns the value of attribute raw_node.
|
4733
4809
|
#
|
4734
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4810
|
+
# source://rexml//lib/rexml/xpath_parser.rb#964
|
4735
4811
|
def raw_node; end
|
4736
4812
|
end
|
4737
4813
|
|
@@ -4780,25 +4856,25 @@ class REXML::XPathParser
|
|
4780
4856
|
|
4781
4857
|
private
|
4782
4858
|
|
4783
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4859
|
+
# source://rexml//lib/rexml/xpath_parser.rb#779
|
4784
4860
|
def child(nodeset); end
|
4785
4861
|
|
4786
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4862
|
+
# source://rexml//lib/rexml/xpath_parser.rb#920
|
4787
4863
|
def compare(a, operator, b); end
|
4788
4864
|
|
4789
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4865
|
+
# source://rexml//lib/rexml/xpath_parser.rb#682
|
4790
4866
|
def descendant(nodeset, include_self); end
|
4791
4867
|
|
4792
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4868
|
+
# source://rexml//lib/rexml/xpath_parser.rb#693
|
4793
4869
|
def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
|
4794
4870
|
|
4795
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4871
|
+
# source://rexml//lib/rexml/xpath_parser.rb#942
|
4796
4872
|
def each_unnode(nodeset); end
|
4797
4873
|
|
4798
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4874
|
+
# source://rexml//lib/rexml/xpath_parser.rb#641
|
4799
4875
|
def enter(tag, *args); end
|
4800
4876
|
|
4801
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4877
|
+
# source://rexml//lib/rexml/xpath_parser.rb#819
|
4802
4878
|
def equality_relational_compare(set1, op, set2); end
|
4803
4879
|
|
4804
4880
|
# source://rexml//lib/rexml/xpath_parser.rb#591
|
@@ -4813,10 +4889,10 @@ class REXML::XPathParser
|
|
4813
4889
|
# source://rexml//lib/rexml/xpath_parser.rb#582
|
4814
4890
|
def filter_nodeset(nodeset); end
|
4815
4891
|
|
4816
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4892
|
+
# source://rexml//lib/rexml/xpath_parser.rb#749
|
4817
4893
|
def following(node); end
|
4818
4894
|
|
4819
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4895
|
+
# source://rexml//lib/rexml/xpath_parser.rb#760
|
4820
4896
|
def following_node_of(node); end
|
4821
4897
|
|
4822
4898
|
# Returns a String namespace for a node, given a prefix
|
@@ -4828,19 +4904,19 @@ class REXML::XPathParser
|
|
4828
4904
|
# source://rexml//lib/rexml/xpath_parser.rb#163
|
4829
4905
|
def get_namespace(node, prefix); end
|
4830
4906
|
|
4831
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4907
|
+
# source://rexml//lib/rexml/xpath_parser.rb#646
|
4832
4908
|
def leave(tag, *args); end
|
4833
4909
|
|
4834
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4910
|
+
# source://rexml//lib/rexml/xpath_parser.rb#767
|
4835
4911
|
def next_sibling_node(node); end
|
4836
4912
|
|
4837
4913
|
# source://rexml//lib/rexml/xpath_parser.rb#477
|
4838
4914
|
def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
|
4839
4915
|
|
4840
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4916
|
+
# source://rexml//lib/rexml/xpath_parser.rb#806
|
4841
4917
|
def norm(b); end
|
4842
4918
|
|
4843
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4919
|
+
# source://rexml//lib/rexml/xpath_parser.rb#894
|
4844
4920
|
def normalize_compare_values(a, operator, b); end
|
4845
4921
|
|
4846
4922
|
# Builds a nodeset of all of the preceding nodes of the supplied node,
|
@@ -4848,10 +4924,10 @@ class REXML::XPathParser
|
|
4848
4924
|
# preceding:: includes every element in the document that precedes this node,
|
4849
4925
|
# except for ancestors
|
4850
4926
|
#
|
4851
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4927
|
+
# source://rexml//lib/rexml/xpath_parser.rb#712
|
4852
4928
|
def preceding(node); end
|
4853
4929
|
|
4854
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4930
|
+
# source://rexml//lib/rexml/xpath_parser.rb#734
|
4855
4931
|
def preceding_node_of(node); end
|
4856
4932
|
|
4857
4933
|
# Reorders an array of nodes so that they are in document order
|
@@ -4863,7 +4939,7 @@ class REXML::XPathParser
|
|
4863
4939
|
# I wouldn't have to do this. Maybe add a document IDX for each node?
|
4864
4940
|
# Problems with mutable documents. Or, rewrite everything.
|
4865
4941
|
#
|
4866
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4942
|
+
# source://rexml//lib/rexml/xpath_parser.rb#659
|
4867
4943
|
def sort(array_of_nodes, order); end
|
4868
4944
|
|
4869
4945
|
# source://rexml//lib/rexml/xpath_parser.rb#441
|
@@ -4874,13 +4950,13 @@ class REXML::XPathParser
|
|
4874
4950
|
# source://rexml//lib/rexml/xpath_parser.rb#154
|
4875
4951
|
def strict?; end
|
4876
4952
|
|
4877
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4953
|
+
# source://rexml//lib/rexml/xpath_parser.rb#634
|
4878
4954
|
def trace(*args); end
|
4879
4955
|
|
4880
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4956
|
+
# source://rexml//lib/rexml/xpath_parser.rb#954
|
4881
4957
|
def unnode(nodeset); end
|
4882
4958
|
|
4883
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
4959
|
+
# source://rexml//lib/rexml/xpath_parser.rb#881
|
4884
4960
|
def value_type(value); end
|
4885
4961
|
end
|
4886
4962
|
|