lunchmoney 1.4.1 → 1.5.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/.github/workflows/build_and_publish_yard_docs.yml +2 -2
- data/.github/workflows/ci.yml +9 -10
- data/.github/workflows/rbi-updater.yml +1 -1
- data/.github/workflows/release_pipeline.yml +1 -1
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/.toys/.toys.rb +8 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +76 -60
- data/README.md +0 -2
- data/SECURITY.md +151 -0
- data/bin/check_vcr_version +94 -0
- data/lib/lunchmoney/api.rb +25 -38
- data/lib/lunchmoney/calls/assets.rb +10 -13
- data/lib/lunchmoney/calls/base.rb +59 -7
- data/lib/lunchmoney/calls/budgets.rb +22 -25
- data/lib/lunchmoney/calls/categories.rb +28 -36
- data/lib/lunchmoney/calls/crypto.rb +7 -9
- data/lib/lunchmoney/calls/plaid_accounts.rb +7 -9
- data/lib/lunchmoney/calls/recurring_expenses.rb +4 -5
- data/lib/lunchmoney/calls/tags.rb +3 -4
- data/lib/lunchmoney/calls/transactions.rb +28 -36
- data/lib/lunchmoney/calls/users.rb +3 -4
- data/lib/lunchmoney/configuration.rb +20 -0
- data/lib/lunchmoney/objects/object.rb +4 -9
- data/lib/lunchmoney/validators.rb +8 -6
- data/lib/lunchmoney/version.rb +1 -1
- data/lib/lunchmoney.rb +3 -3
- data/lunchmoney.gemspec +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +35 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +0 -2
- data/sorbet/rbi/gems/{activesupport@7.2.2.1.rbi → activesupport@8.0.2.1.rbi} +1369 -989
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
- data/sorbet/rbi/gems/{base64@0.2.0.rbi → base64@0.3.0.rbi} +76 -39
- data/sorbet/rbi/gems/{benchmark@0.4.0.rbi → benchmark@0.4.1.rbi} +50 -49
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +275 -0
- data/sorbet/rbi/gems/{dotenv@3.1.7.rbi → dotenv@3.1.8.rbi} +9 -9
- data/sorbet/rbi/gems/{drb@2.2.1.rbi → drb@2.2.3.rbi} +503 -188
- data/sorbet/rbi/gems/{faraday-net_http@3.4.0.rbi → faraday-net_http@3.4.1.rbi} +23 -23
- data/sorbet/rbi/gems/{faraday@2.12.2.rbi → faraday@2.13.4.rbi} +468 -141
- data/sorbet/rbi/gems/{hashdiff@1.1.2.rbi → hashdiff@1.2.0.rbi} +5 -3
- data/sorbet/rbi/gems/{json@2.10.2.rbi → json@2.13.2.rbi} +386 -175
- data/sorbet/rbi/gems/{kramdown@2.4.0.rbi → kramdown@2.5.1.rbi} +316 -234
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/{logger@1.6.6.rbi → logger@1.7.0.rbi} +63 -40
- data/sorbet/rbi/gems/{parser@3.3.7.1.rbi → parser@3.3.9.0.rbi} +303 -291
- data/sorbet/rbi/gems/{rack@3.1.9.rbi → rack@3.2.1.rbi} +712 -547
- data/sorbet/rbi/gems/{rake@13.2.1.rbi → rake@13.3.0.rbi} +238 -227
- data/sorbet/rbi/gems/{rbi@0.3.1.rbi → rbi@0.3.6.rbi} +1084 -2521
- data/sorbet/rbi/gems/{rbs@3.9.0.rbi → rbs@4.0.0.dev.4.rbi} +1336 -419
- data/sorbet/rbi/gems/{regexp_parser@2.10.0.rbi → regexp_parser@2.11.2.rbi} +1044 -956
- data/sorbet/rbi/gems/require-hooks@0.2.2.rbi +110 -0
- data/sorbet/rbi/gems/{rexml@3.4.1.rbi → rexml@3.4.2.rbi} +302 -292
- data/sorbet/rbi/gems/{rubocop-ast@1.38.0.rbi → rubocop-ast@1.46.0.rbi} +802 -1016
- data/sorbet/rbi/gems/{rubocop-minitest@0.36.0.rbi → rubocop-minitest@0.38.2.rbi} +129 -93
- data/sorbet/rbi/gems/{rubocop-rails@2.29.1.rbi → rubocop-rails@2.33.3.rbi} +575 -230
- data/sorbet/rbi/gems/{rubocop-shopify@2.15.1.rbi → rubocop-shopify@2.17.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.8.7.rbi → rubocop-sorbet@0.10.5.rbi} +761 -83
- data/sorbet/rbi/gems/{rubocop@1.71.2.rbi → rubocop@1.80.1.rbi} +6543 -3097
- data/sorbet/rbi/gems/{spoom@1.6.1.rbi → spoom@1.7.6.rbi} +1179 -2621
- data/sorbet/rbi/gems/{tapioca@0.16.11.rbi → tapioca@0.17.7.rbi} +623 -745
- data/sorbet/rbi/gems/{thor@1.3.2.rbi → thor@1.4.0.rbi} +88 -67
- data/sorbet/rbi/gems/{unicode-display_width@3.1.4.rbi → unicode-display_width@3.1.5.rbi} +5 -5
- data/sorbet/rbi/gems/{vcr@6.3.1.rbi → vcr@6.3.1-ce35c236fe48899f02ddf780973b44cdb756c0ee.rbi} +140 -123
- metadata +42 -38
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +0 -78
- /data/sorbet/rbi/gems/{connection_pool@2.5.0.rbi → connection_pool@2.5.3.rbi} +0 -0
- /data/sorbet/rbi/gems/{language_server-protocol@3.17.0.4.rbi → language_server-protocol@3.17.0.5.rbi} +0 -0
- /data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +0 -0
@@ -113,12 +113,15 @@ 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#161
|
117
117
|
def clone; end
|
118
118
|
|
119
119
|
# source://rexml//lib/rexml/attribute.rb#132
|
120
120
|
def doctype; end
|
121
121
|
|
122
|
+
# source://rexml//lib/rexml/attribute.rb#205
|
123
|
+
def document; end
|
124
|
+
|
122
125
|
# The element to which this attribute belongs
|
123
126
|
#
|
124
127
|
# source://rexml//lib/rexml/attribute.rb#15
|
@@ -129,7 +132,7 @@ class REXML::Attribute
|
|
129
132
|
#
|
130
133
|
# Returns this attribute
|
131
134
|
#
|
132
|
-
# source://rexml//lib/rexml/attribute.rb#
|
135
|
+
# source://rexml//lib/rexml/attribute.rb#169
|
133
136
|
def element=(element); end
|
134
137
|
|
135
138
|
# Creates (and returns) a hash from both the name and value
|
@@ -137,7 +140,7 @@ class REXML::Attribute
|
|
137
140
|
# source://rexml//lib/rexml/attribute.rb#111
|
138
141
|
def hash; end
|
139
142
|
|
140
|
-
# source://rexml//lib/rexml/attribute.rb#
|
143
|
+
# source://rexml//lib/rexml/attribute.rb#195
|
141
144
|
def inspect; end
|
142
145
|
|
143
146
|
# Returns the namespace URL, if defined, or nil otherwise
|
@@ -165,13 +168,13 @@ class REXML::Attribute
|
|
165
168
|
# source://rexml//lib/rexml/attribute.rb#95
|
166
169
|
def namespace(arg = T.unsafe(nil)); end
|
167
170
|
|
168
|
-
# source://rexml//lib/rexml/attribute.rb#
|
171
|
+
# source://rexml//lib/rexml/attribute.rb#191
|
169
172
|
def node_type; end
|
170
173
|
|
171
174
|
# The normalized value of this attribute. That is, the attribute with
|
172
175
|
# entities intact.
|
173
176
|
#
|
174
|
-
# source://rexml//lib/rexml/attribute.rb#
|
177
|
+
# source://rexml//lib/rexml/attribute.rb#155
|
175
178
|
def normalized=(new_normalized); end
|
176
179
|
|
177
180
|
# Returns the namespace of the attribute.
|
@@ -191,12 +194,12 @@ class REXML::Attribute
|
|
191
194
|
#
|
192
195
|
# This method is usually not called directly.
|
193
196
|
#
|
194
|
-
# source://rexml//lib/rexml/attribute.rb#
|
197
|
+
# source://rexml//lib/rexml/attribute.rb#182
|
195
198
|
def remove; end
|
196
199
|
|
197
200
|
# Returns the attribute value, with entities replaced
|
198
201
|
#
|
199
|
-
# source://rexml//lib/rexml/attribute.rb#
|
202
|
+
# source://rexml//lib/rexml/attribute.rb#137
|
200
203
|
def to_s; end
|
201
204
|
|
202
205
|
# Returns this attribute out as XML source, expanding the name
|
@@ -212,22 +215,22 @@ class REXML::Attribute
|
|
212
215
|
# Returns the UNNORMALIZED value of this attribute. That is, entities
|
213
216
|
# have been expanded to their values
|
214
217
|
#
|
215
|
-
# source://rexml//lib/rexml/attribute.rb#
|
218
|
+
# source://rexml//lib/rexml/attribute.rb#146
|
216
219
|
def value; end
|
217
220
|
|
218
221
|
# Writes this attribute (EG, puts 'key="value"' to the output)
|
219
222
|
#
|
220
|
-
# source://rexml//lib/rexml/attribute.rb#
|
223
|
+
# source://rexml//lib/rexml/attribute.rb#187
|
221
224
|
def write(output, indent = T.unsafe(nil)); end
|
222
225
|
|
223
|
-
# source://rexml//lib/rexml/attribute.rb#
|
226
|
+
# source://rexml//lib/rexml/attribute.rb#201
|
224
227
|
def xpath; end
|
225
228
|
end
|
226
229
|
|
227
230
|
# A class that defines the set of Attributes of an Element and provides
|
228
231
|
# operations for accessing elements in that set.
|
229
232
|
#
|
230
|
-
# source://rexml//lib/rexml/element.rb#
|
233
|
+
# source://rexml//lib/rexml/element.rb#2131
|
231
234
|
class REXML::Attributes < ::Hash
|
232
235
|
# :call-seq:
|
233
236
|
# new(element)
|
@@ -248,7 +251,7 @@ class REXML::Attributes < ::Hash
|
|
248
251
|
#
|
249
252
|
# @return [Attributes] a new instance of Attributes
|
250
253
|
#
|
251
|
-
# source://rexml//lib/rexml/element.rb#
|
254
|
+
# source://rexml//lib/rexml/element.rb#2150
|
252
255
|
def initialize(element); end
|
253
256
|
|
254
257
|
# :call-seq:
|
@@ -271,7 +274,7 @@ class REXML::Attributes < ::Hash
|
|
271
274
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
272
275
|
# attrs.include?('baz') # => true
|
273
276
|
#
|
274
|
-
# source://rexml//lib/rexml/element.rb#
|
277
|
+
# source://rexml//lib/rexml/element.rb#2520
|
275
278
|
def <<(attribute); end
|
276
279
|
|
277
280
|
# :call-seq:
|
@@ -295,7 +298,7 @@ class REXML::Attributes < ::Hash
|
|
295
298
|
#
|
296
299
|
# Related: get_attribute (returns an \Attribute object).
|
297
300
|
#
|
298
|
-
# source://rexml//lib/rexml/element.rb#
|
301
|
+
# source://rexml//lib/rexml/element.rb#2175
|
299
302
|
def [](name); end
|
300
303
|
|
301
304
|
# :call-seq:
|
@@ -321,7 +324,7 @@ class REXML::Attributes < ::Hash
|
|
321
324
|
# attrs['baz:att'] = nil
|
322
325
|
# attrs.include?('baz:att') # => false
|
323
326
|
#
|
324
|
-
# source://rexml//lib/rexml/element.rb#
|
327
|
+
# source://rexml//lib/rexml/element.rb#2358
|
325
328
|
def []=(name, value); end
|
326
329
|
|
327
330
|
# :call-seq:
|
@@ -344,7 +347,7 @@ class REXML::Attributes < ::Hash
|
|
344
347
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
345
348
|
# attrs.include?('baz') # => true
|
346
349
|
#
|
347
|
-
# source://rexml//lib/rexml/element.rb#
|
350
|
+
# source://rexml//lib/rexml/element.rb#2516
|
348
351
|
def add(attribute); end
|
349
352
|
|
350
353
|
# :call-seq:
|
@@ -375,7 +378,7 @@ class REXML::Attributes < ::Hash
|
|
375
378
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele att='<'/>
|
376
379
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele/>
|
377
380
|
#
|
378
|
-
# source://rexml//lib/rexml/element.rb#
|
381
|
+
# source://rexml//lib/rexml/element.rb#2471
|
379
382
|
def delete(attribute); end
|
380
383
|
|
381
384
|
# :call-seq:
|
@@ -394,7 +397,7 @@ class REXML::Attributes < ::Hash
|
|
394
397
|
# attrs = ele.attributes
|
395
398
|
# attrs.delete_all('att') # => [att='<']
|
396
399
|
#
|
397
|
-
# source://rexml//lib/rexml/element.rb#
|
400
|
+
# source://rexml//lib/rexml/element.rb#2538
|
398
401
|
def delete_all(name); end
|
399
402
|
|
400
403
|
# :call-seq:
|
@@ -419,7 +422,7 @@ class REXML::Attributes < ::Hash
|
|
419
422
|
# ["bar:att", "2"]
|
420
423
|
# ["att", "<"]
|
421
424
|
#
|
422
|
-
# source://rexml//lib/rexml/element.rb#
|
425
|
+
# source://rexml//lib/rexml/element.rb#2276
|
423
426
|
def each; end
|
424
427
|
|
425
428
|
# :call-seq:
|
@@ -444,7 +447,7 @@ class REXML::Attributes < ::Hash
|
|
444
447
|
# [REXML::Attribute, bar:att='2']
|
445
448
|
# [REXML::Attribute, att='<']
|
446
449
|
#
|
447
|
-
# source://rexml//lib/rexml/element.rb#
|
450
|
+
# source://rexml//lib/rexml/element.rb#2243
|
448
451
|
def each_attribute; end
|
449
452
|
|
450
453
|
# :call-seq:
|
@@ -466,7 +469,7 @@ class REXML::Attributes < ::Hash
|
|
466
469
|
# attrs.get_attribute('att') # => att='<'
|
467
470
|
# attrs.get_attribute('nosuch') # => nil
|
468
471
|
#
|
469
|
-
# source://rexml//lib/rexml/element.rb#
|
472
|
+
# source://rexml//lib/rexml/element.rb#2302
|
470
473
|
def get_attribute(name); end
|
471
474
|
|
472
475
|
# :call-seq:
|
@@ -486,7 +489,7 @@ class REXML::Attributes < ::Hash
|
|
486
489
|
# attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
|
487
490
|
# attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
|
488
491
|
#
|
489
|
-
# source://rexml//lib/rexml/element.rb#
|
492
|
+
# source://rexml//lib/rexml/element.rb#2564
|
490
493
|
def get_attribute_ns(namespace, name); end
|
491
494
|
|
492
495
|
# :call-seq:
|
@@ -503,7 +506,7 @@ class REXML::Attributes < ::Hash
|
|
503
506
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
504
507
|
# ele.attributes.length # => 3
|
505
508
|
#
|
506
|
-
# source://rexml//lib/rexml/element.rb#
|
509
|
+
# source://rexml//lib/rexml/element.rb#2214
|
507
510
|
def length; end
|
508
511
|
|
509
512
|
# :call-seq:
|
@@ -515,7 +518,7 @@ class REXML::Attributes < ::Hash
|
|
515
518
|
# d = REXML::Document.new(xml_string)
|
516
519
|
# d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
|
517
520
|
#
|
518
|
-
# source://rexml//lib/rexml/element.rb#
|
521
|
+
# source://rexml//lib/rexml/element.rb#2426
|
519
522
|
def namespaces; end
|
520
523
|
|
521
524
|
# :call-seq:
|
@@ -529,7 +532,7 @@ class REXML::Attributes < ::Hash
|
|
529
532
|
# d = REXML::Document.new(xml_string)
|
530
533
|
# d.root.attributes.prefixes # => ["x", "y"]
|
531
534
|
#
|
532
|
-
# source://rexml//lib/rexml/element.rb#
|
535
|
+
# source://rexml//lib/rexml/element.rb#2400
|
533
536
|
def prefixes; end
|
534
537
|
|
535
538
|
# :call-seq:
|
@@ -546,7 +549,7 @@ class REXML::Attributes < ::Hash
|
|
546
549
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
547
550
|
# ele.attributes.length # => 3
|
548
551
|
#
|
549
|
-
# source://rexml//lib/rexml/element.rb#
|
552
|
+
# source://rexml//lib/rexml/element.rb#2219
|
550
553
|
def size; end
|
551
554
|
|
552
555
|
# :call-seq:
|
@@ -565,7 +568,7 @@ class REXML::Attributes < ::Hash
|
|
565
568
|
# attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
|
566
569
|
# attrs.first.class # => REXML::Attribute
|
567
570
|
#
|
568
|
-
# source://rexml//lib/rexml/element.rb#
|
571
|
+
# source://rexml//lib/rexml/element.rb#2196
|
569
572
|
def to_a; end
|
570
573
|
end
|
571
574
|
|
@@ -648,7 +651,7 @@ class REXML::Child
|
|
648
651
|
|
649
652
|
# This doesn't yet handle encodings
|
650
653
|
#
|
651
|
-
# source://rexml//lib/rexml/child.rb#
|
654
|
+
# source://rexml//lib/rexml/child.rb#90
|
652
655
|
def bytes; end
|
653
656
|
|
654
657
|
# Returns:: the document this child belongs to, or nil if this child
|
@@ -657,7 +660,7 @@ class REXML::Child
|
|
657
660
|
# source://rexml//lib/rexml/child.rb#85
|
658
661
|
def document; end
|
659
662
|
|
660
|
-
# source://rexml//lib/rexml/
|
663
|
+
# source://rexml//lib/rexml/child.rb#58
|
661
664
|
def next_sibling; end
|
662
665
|
|
663
666
|
# Sets the next sibling of this child. This can be used to insert a child
|
@@ -688,7 +691,7 @@ class REXML::Child
|
|
688
691
|
# source://rexml//lib/rexml/child.rb#52
|
689
692
|
def parent=(other); end
|
690
693
|
|
691
|
-
# source://rexml//lib/rexml/
|
694
|
+
# source://rexml//lib/rexml/child.rb#59
|
692
695
|
def previous_sibling; end
|
693
696
|
|
694
697
|
# Sets the previous sibling of this child. This can be used to insert a
|
@@ -767,7 +770,7 @@ class REXML::Comment < ::REXML::Child
|
|
767
770
|
|
768
771
|
# The content text
|
769
772
|
#
|
770
|
-
# source://rexml//lib/rexml/comment.rb#
|
773
|
+
# source://rexml//lib/rexml/comment.rb#58
|
771
774
|
def to_s; end
|
772
775
|
|
773
776
|
# == DEPRECATED
|
@@ -794,20 +797,20 @@ module REXML::DClonable; end
|
|
794
797
|
# This is an abstract class. You never use this directly; it serves as a
|
795
798
|
# parent class for the specific declarations.
|
796
799
|
#
|
797
|
-
# source://rexml//lib/rexml/doctype.rb#
|
800
|
+
# source://rexml//lib/rexml/doctype.rb#238
|
798
801
|
class REXML::Declaration < ::REXML::Child
|
799
802
|
# @return [Declaration] a new instance of Declaration
|
800
803
|
#
|
801
|
-
# source://rexml//lib/rexml/doctype.rb#
|
804
|
+
# source://rexml//lib/rexml/doctype.rb#239
|
802
805
|
def initialize(src); end
|
803
806
|
|
804
|
-
# source://rexml//lib/rexml/doctype.rb#
|
807
|
+
# source://rexml//lib/rexml/doctype.rb#244
|
805
808
|
def to_s; end
|
806
809
|
|
807
810
|
# == DEPRECATED
|
808
811
|
# See REXML::Formatters
|
809
812
|
#
|
810
|
-
# source://rexml//lib/rexml/doctype.rb#
|
813
|
+
# source://rexml//lib/rexml/doctype.rb#251
|
811
814
|
def write(output, indent); end
|
812
815
|
end
|
813
816
|
|
@@ -837,7 +840,7 @@ class REXML::DocType < ::REXML::Parent
|
|
837
840
|
# source://rexml//lib/rexml/doctype.rb#80
|
838
841
|
def initialize(first, parent = T.unsafe(nil)); end
|
839
842
|
|
840
|
-
# source://rexml//lib/rexml/doctype.rb#
|
843
|
+
# source://rexml//lib/rexml/doctype.rb#181
|
841
844
|
def add(child); end
|
842
845
|
|
843
846
|
# source://rexml//lib/rexml/doctype.rb#125
|
@@ -858,7 +861,7 @@ class REXML::DocType < ::REXML::Parent
|
|
858
861
|
# source://rexml//lib/rexml/doctype.rb#66
|
859
862
|
def entities; end
|
860
863
|
|
861
|
-
# source://rexml//lib/rexml/doctype.rb#
|
864
|
+
# source://rexml//lib/rexml/doctype.rb#177
|
862
865
|
def entity(name); end
|
863
866
|
|
864
867
|
# name is the name of the doctype
|
@@ -887,7 +890,7 @@ class REXML::DocType < ::REXML::Parent
|
|
887
890
|
#
|
888
891
|
# Method contributed by Henrik Martensson
|
889
892
|
#
|
890
|
-
# source://rexml//lib/rexml/doctype.rb#
|
893
|
+
# source://rexml//lib/rexml/doctype.rb#225
|
891
894
|
def notation(name); end
|
892
895
|
|
893
896
|
# This method returns a list of notations that have been declared in the
|
@@ -896,7 +899,7 @@ class REXML::DocType < ::REXML::Parent
|
|
896
899
|
#
|
897
900
|
# Method contributed by Henrik Martensson
|
898
901
|
#
|
899
|
-
# source://rexml//lib/rexml/doctype.rb#
|
902
|
+
# source://rexml//lib/rexml/doctype.rb#217
|
900
903
|
def notations; end
|
901
904
|
|
902
905
|
# This method retrieves the public identifier identifying the document's
|
@@ -904,14 +907,14 @@ class REXML::DocType < ::REXML::Parent
|
|
904
907
|
#
|
905
908
|
# Method contributed by Henrik Martensson
|
906
909
|
#
|
907
|
-
# source://rexml//lib/rexml/doctype.rb#
|
910
|
+
# source://rexml//lib/rexml/doctype.rb#191
|
908
911
|
def public; end
|
909
912
|
|
910
913
|
# This method retrieves the system identifier identifying the document's DTD
|
911
914
|
#
|
912
915
|
# Method contributed by Henrik Martensson
|
913
916
|
#
|
914
|
-
# source://rexml//lib/rexml/doctype.rb#
|
917
|
+
# source://rexml//lib/rexml/doctype.rb#203
|
915
918
|
def system; end
|
916
919
|
|
917
920
|
# output::
|
@@ -1038,7 +1041,7 @@ class REXML::Document < ::REXML::Element
|
|
1038
1041
|
# d.add(REXML::Element.new('foo'))
|
1039
1042
|
# d.to_s # => "<foo/>"
|
1040
1043
|
#
|
1041
|
-
# source://rexml//lib/rexml/document.rb#
|
1044
|
+
# source://rexml//lib/rexml/document.rb#203
|
1042
1045
|
def <<(child); end
|
1043
1046
|
|
1044
1047
|
# :call-seq:
|
@@ -1165,7 +1168,7 @@ class REXML::Document < ::REXML::Element
|
|
1165
1168
|
# d = doc_type
|
1166
1169
|
# d ? d.name : "UNDEFINED"
|
1167
1170
|
#
|
1168
|
-
# source://rexml//lib/rexml/document.rb#
|
1171
|
+
# source://rexml//lib/rexml/document.rb#136
|
1169
1172
|
def name; end
|
1170
1173
|
|
1171
1174
|
# :call-seq:
|
@@ -1223,8 +1226,8 @@ class REXML::Document < ::REXML::Element
|
|
1223
1226
|
def version; end
|
1224
1227
|
|
1225
1228
|
# :call-seq:
|
1226
|
-
# doc.write(output=$stdout, indent=-1,
|
1227
|
-
# doc.write(options={:output => $stdout, :indent => -1, :
|
1229
|
+
# doc.write(output=$stdout, indent=-1, transitive=false, ie_hack=false, encoding=nil)
|
1230
|
+
# doc.write(options={:output => $stdout, :indent => -1, :transitive => false, :ie_hack => false, :encoding => nil})
|
1228
1231
|
#
|
1229
1232
|
# Write the XML tree out, optionally with indent. This writes out the
|
1230
1233
|
# entire XML document, including XML declarations, doctype declarations,
|
@@ -1299,9 +1302,27 @@ class REXML::Document < ::REXML::Element
|
|
1299
1302
|
|
1300
1303
|
private
|
1301
1304
|
|
1302
|
-
# source://rexml//lib/rexml/document.rb#
|
1305
|
+
# source://rexml//lib/rexml/document.rb#465
|
1303
1306
|
def build(source); end
|
1304
1307
|
|
1308
|
+
# New document level cache is created and available in this block.
|
1309
|
+
# This API is thread unsafe. Users can't change this document in this block.
|
1310
|
+
#
|
1311
|
+
# source://rexml//lib/rexml/document.rb#456
|
1312
|
+
def enable_cache; end
|
1313
|
+
|
1314
|
+
# Returns the value of attribute namespaces_cache.
|
1315
|
+
#
|
1316
|
+
# source://rexml//lib/rexml/document.rb#452
|
1317
|
+
def namespaces_cache; end
|
1318
|
+
|
1319
|
+
# Sets the attribute namespaces_cache
|
1320
|
+
#
|
1321
|
+
# @param value the value to set the attribute namespaces_cache to.
|
1322
|
+
#
|
1323
|
+
# source://rexml//lib/rexml/document.rb#452
|
1324
|
+
def namespaces_cache=(_arg0); end
|
1325
|
+
|
1305
1326
|
class << self
|
1306
1327
|
# Get the entity expansion limit. By default the limit is set to 10000.
|
1307
1328
|
#
|
@@ -1682,7 +1703,7 @@ class REXML::Element < ::REXML::Parent
|
|
1682
1703
|
# root[:attr] # => "value"
|
1683
1704
|
# root[:nosuch] # => nil
|
1684
1705
|
#
|
1685
|
-
# source://rexml//lib/rexml/element.rb#
|
1706
|
+
# source://rexml//lib/rexml/element.rb#1238
|
1686
1707
|
def [](name_or_index); end
|
1687
1708
|
|
1688
1709
|
# :call-seq:
|
@@ -1711,7 +1732,7 @@ class REXML::Element < ::REXML::Parent
|
|
1711
1732
|
# e.add_attribute(a) # => attr='VALUE'
|
1712
1733
|
# e['attr'] # => "VALUE"
|
1713
1734
|
#
|
1714
|
-
# source://rexml//lib/rexml/element.rb#
|
1735
|
+
# source://rexml//lib/rexml/element.rb#1336
|
1715
1736
|
def add_attribute(key, value = T.unsafe(nil)); end
|
1716
1737
|
|
1717
1738
|
# :call-seq:
|
@@ -1737,7 +1758,7 @@ class REXML::Element < ::REXML::Parent
|
|
1737
1758
|
# a = [['foo' => 'bar'], ['baz' => 'bat']]
|
1738
1759
|
# e.add_attributes(a)
|
1739
1760
|
#
|
1740
|
-
# source://rexml//lib/rexml/element.rb#
|
1761
|
+
# source://rexml//lib/rexml/element.rb#1367
|
1741
1762
|
def add_attributes(hash); end
|
1742
1763
|
|
1743
1764
|
# :call-seq:
|
@@ -1774,7 +1795,7 @@ class REXML::Element < ::REXML::Parent
|
|
1774
1795
|
# e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
|
1775
1796
|
# e0[1] # => <bar bat='0' bam='1'/>
|
1776
1797
|
#
|
1777
|
-
# source://rexml//lib/rexml/element.rb#
|
1798
|
+
# source://rexml//lib/rexml/element.rb#725
|
1778
1799
|
def add_element(element, attrs = T.unsafe(nil)); end
|
1779
1800
|
|
1780
1801
|
# :call-seq:
|
@@ -1795,7 +1816,7 @@ class REXML::Element < ::REXML::Parent
|
|
1795
1816
|
# e.add_namespace('baz', 'bat')
|
1796
1817
|
# e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
|
1797
1818
|
#
|
1798
|
-
# source://rexml//lib/rexml/element.rb#
|
1819
|
+
# source://rexml//lib/rexml/element.rb#648
|
1799
1820
|
def add_namespace(prefix, uri = T.unsafe(nil)); end
|
1800
1821
|
|
1801
1822
|
# :call-seq:
|
@@ -1837,7 +1858,7 @@ class REXML::Element < ::REXML::Parent
|
|
1837
1858
|
# a.add_text(REXML::Text.new('baz'))
|
1838
1859
|
# a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
|
1839
1860
|
#
|
1840
|
-
# source://rexml//lib/rexml/element.rb#
|
1861
|
+
# source://rexml//lib/rexml/element.rb#1139
|
1841
1862
|
def add_text(text); end
|
1842
1863
|
|
1843
1864
|
# :call-seq:
|
@@ -1869,7 +1890,7 @@ class REXML::Element < ::REXML::Parent
|
|
1869
1890
|
# document.root.attribute("x") # => x='x'
|
1870
1891
|
# document.root.attribute("x", "a") # => a:x='a:x'
|
1871
1892
|
#
|
1872
|
-
# source://rexml//lib/rexml/element.rb#
|
1893
|
+
# source://rexml//lib/rexml/element.rb#1279
|
1873
1894
|
def attribute(name, namespace = T.unsafe(nil)); end
|
1874
1895
|
|
1875
1896
|
# Mechanisms for accessing attributes and child elements of this
|
@@ -1894,7 +1915,7 @@ class REXML::Element < ::REXML::Parent
|
|
1894
1915
|
# cds.frozen? # => true
|
1895
1916
|
# cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
|
1896
1917
|
#
|
1897
|
-
# source://rexml//lib/rexml/element.rb#
|
1918
|
+
# source://rexml//lib/rexml/element.rb#1411
|
1898
1919
|
def cdatas; end
|
1899
1920
|
|
1900
1921
|
# :call-seq:
|
@@ -1927,7 +1948,7 @@ class REXML::Element < ::REXML::Parent
|
|
1927
1948
|
# cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
|
1928
1949
|
# cs.map {|c| c.to_s } # => ["foo", "bar"]
|
1929
1950
|
#
|
1930
|
-
# source://rexml//lib/rexml/element.rb#
|
1951
|
+
# source://rexml//lib/rexml/element.rb#1432
|
1931
1952
|
def comments; end
|
1932
1953
|
|
1933
1954
|
# The context holds information about the processing environment, such as
|
@@ -1953,7 +1974,7 @@ class REXML::Element < ::REXML::Parent
|
|
1953
1974
|
# e.delete_attribute('bar') # => <bar/>
|
1954
1975
|
# e.delete_attribute('bar') # => nil
|
1955
1976
|
#
|
1956
|
-
# source://rexml//lib/rexml/element.rb#
|
1977
|
+
# source://rexml//lib/rexml/element.rb#1386
|
1957
1978
|
def delete_attribute(key); end
|
1958
1979
|
|
1959
1980
|
# :call-seq:
|
@@ -1993,7 +2014,7 @@ class REXML::Element < ::REXML::Parent
|
|
1993
2014
|
# a.delete_element('//c') # => <c/>
|
1994
2015
|
# a.delete_element('//c') # => nil
|
1995
2016
|
#
|
1996
|
-
# source://rexml//lib/rexml/element.rb#
|
2017
|
+
# source://rexml//lib/rexml/element.rb#771
|
1997
2018
|
def delete_element(element); end
|
1998
2019
|
|
1999
2020
|
# :call-seq:
|
@@ -2018,7 +2039,7 @@ class REXML::Element < ::REXML::Parent
|
|
2018
2039
|
# d.root.delete_namespace('nosuch')
|
2019
2040
|
# d.to_s # => "<a/>"
|
2020
2041
|
#
|
2021
|
-
# source://rexml//lib/rexml/element.rb#
|
2042
|
+
# source://rexml//lib/rexml/element.rb#680
|
2022
2043
|
def delete_namespace(namespace = T.unsafe(nil)); end
|
2023
2044
|
|
2024
2045
|
# :call-seq:
|
@@ -2061,7 +2082,7 @@ class REXML::Element < ::REXML::Parent
|
|
2061
2082
|
# <d> ... </>
|
2062
2083
|
# <e/>
|
2063
2084
|
#
|
2064
|
-
# source://rexml//lib/rexml/element.rb#
|
2085
|
+
# source://rexml//lib/rexml/element.rb#923
|
2065
2086
|
def each_element(xpath = T.unsafe(nil), &block); end
|
2066
2087
|
|
2067
2088
|
# :call-seq:
|
@@ -2113,7 +2134,7 @@ class REXML::Element < ::REXML::Parent
|
|
2113
2134
|
#
|
2114
2135
|
# <d id='1'/>
|
2115
2136
|
#
|
2116
|
-
# source://rexml//lib/rexml/element.rb#
|
2137
|
+
# source://rexml//lib/rexml/element.rb#840
|
2117
2138
|
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2118
2139
|
|
2119
2140
|
# :call-seq:
|
@@ -2163,7 +2184,7 @@ class REXML::Element < ::REXML::Parent
|
|
2163
2184
|
#
|
2164
2185
|
# <c> ... </>
|
2165
2186
|
#
|
2166
|
-
# source://rexml//lib/rexml/element.rb#
|
2187
|
+
# source://rexml//lib/rexml/element.rb#897
|
2167
2188
|
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
2168
2189
|
|
2169
2190
|
# Mechanisms for accessing attributes and child elements of this
|
@@ -2187,7 +2208,7 @@ class REXML::Element < ::REXML::Parent
|
|
2187
2208
|
# d = REXML::Document.new(xml_string)
|
2188
2209
|
# d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
|
2189
2210
|
#
|
2190
|
-
# source://rexml//lib/rexml/element.rb#
|
2211
|
+
# source://rexml//lib/rexml/element.rb#942
|
2191
2212
|
def get_elements(xpath); end
|
2192
2213
|
|
2193
2214
|
# :call-seq:
|
@@ -2207,7 +2228,7 @@ class REXML::Element < ::REXML::Parent
|
|
2207
2228
|
#
|
2208
2229
|
# d.root.get_text(1) # => "this is bold!"
|
2209
2230
|
#
|
2210
|
-
# source://rexml//lib/rexml/element.rb#
|
2231
|
+
# source://rexml//lib/rexml/element.rb#1045
|
2211
2232
|
def get_text(path = T.unsafe(nil)); end
|
2212
2233
|
|
2213
2234
|
# :call-seq:
|
@@ -2222,7 +2243,7 @@ class REXML::Element < ::REXML::Parent
|
|
2222
2243
|
#
|
2223
2244
|
# @return [Boolean]
|
2224
2245
|
#
|
2225
|
-
# source://rexml//lib/rexml/element.rb#
|
2246
|
+
# source://rexml//lib/rexml/element.rb#1306
|
2226
2247
|
def has_attributes?; end
|
2227
2248
|
|
2228
2249
|
# :call-seq:
|
@@ -2239,7 +2260,7 @@ class REXML::Element < ::REXML::Parent
|
|
2239
2260
|
#
|
2240
2261
|
# @return [Boolean]
|
2241
2262
|
#
|
2242
|
-
# source://rexml//lib/rexml/element.rb#
|
2263
|
+
# source://rexml//lib/rexml/element.rb#787
|
2243
2264
|
def has_elements?; end
|
2244
2265
|
|
2245
2266
|
# :call-seq:
|
@@ -2256,7 +2277,7 @@ class REXML::Element < ::REXML::Parent
|
|
2256
2277
|
#
|
2257
2278
|
# @return [Boolean]
|
2258
2279
|
#
|
2259
|
-
# source://rexml//lib/rexml/element.rb#
|
2280
|
+
# source://rexml//lib/rexml/element.rb#995
|
2260
2281
|
def has_text?; end
|
2261
2282
|
|
2262
2283
|
# :call-seq:
|
@@ -2266,7 +2287,7 @@ class REXML::Element < ::REXML::Parent
|
|
2266
2287
|
#
|
2267
2288
|
# See {Element Context}[../doc/rexml/context_rdoc.html].
|
2268
2289
|
#
|
2269
|
-
# source://rexml//lib/rexml/element.rb#
|
2290
|
+
# source://rexml//lib/rexml/element.rb#512
|
2270
2291
|
def ignore_whitespace_nodes; end
|
2271
2292
|
|
2272
2293
|
# :call-seq:
|
@@ -2310,7 +2331,7 @@ class REXML::Element < ::REXML::Parent
|
|
2310
2331
|
# is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
|
2311
2332
|
# is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
|
2312
2333
|
#
|
2313
|
-
# source://rexml//lib/rexml/element.rb#
|
2334
|
+
# source://rexml//lib/rexml/element.rb#1453
|
2314
2335
|
def instructions; end
|
2315
2336
|
|
2316
2337
|
# :call-seq:
|
@@ -2333,7 +2354,7 @@ class REXML::Element < ::REXML::Parent
|
|
2333
2354
|
# b.namespace('y') # => "2"
|
2334
2355
|
# b.namespace('nosuch') # => nil
|
2335
2356
|
#
|
2336
|
-
# source://rexml//lib/rexml/element.rb#
|
2357
|
+
# source://rexml//lib/rexml/element.rb#619
|
2337
2358
|
def namespace(prefix = T.unsafe(nil)); end
|
2338
2359
|
|
2339
2360
|
# :call-seq:
|
@@ -2355,7 +2376,7 @@ class REXML::Element < ::REXML::Parent
|
|
2355
2376
|
# d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
|
2356
2377
|
# d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
|
2357
2378
|
#
|
2358
|
-
# source://rexml//lib/rexml/element.rb#
|
2379
|
+
# source://rexml//lib/rexml/element.rb#590
|
2359
2380
|
def namespaces; end
|
2360
2381
|
|
2361
2382
|
# :call-seq:
|
@@ -2368,7 +2389,7 @@ class REXML::Element < ::REXML::Parent
|
|
2368
2389
|
# d.root.elements['b'].next_element #-> <c/>
|
2369
2390
|
# d.root.elements['c'].next_element #-> nil
|
2370
2391
|
#
|
2371
|
-
# source://rexml//lib/rexml/element.rb#
|
2392
|
+
# source://rexml//lib/rexml/element.rb#956
|
2372
2393
|
def next_element; end
|
2373
2394
|
|
2374
2395
|
# :call-seq:
|
@@ -2380,7 +2401,7 @@ class REXML::Element < ::REXML::Parent
|
|
2380
2401
|
# a = d.root # => <a/>
|
2381
2402
|
# a.node_type # => :element
|
2382
2403
|
#
|
2383
|
-
# source://rexml//lib/rexml/element.rb#
|
2404
|
+
# source://rexml//lib/rexml/element.rb#1160
|
2384
2405
|
def node_type; end
|
2385
2406
|
|
2386
2407
|
# :call-seq:
|
@@ -2402,7 +2423,7 @@ class REXML::Element < ::REXML::Parent
|
|
2402
2423
|
# d.elements['//b'].prefixes # => ["x", "y"]
|
2403
2424
|
# d.elements['//c'].prefixes # => ["x", "y", "z"]
|
2404
2425
|
#
|
2405
|
-
# source://rexml//lib/rexml/element.rb#
|
2426
|
+
# source://rexml//lib/rexml/element.rb#564
|
2406
2427
|
def prefixes; end
|
2407
2428
|
|
2408
2429
|
# :call-seq:
|
@@ -2415,7 +2436,7 @@ class REXML::Element < ::REXML::Parent
|
|
2415
2436
|
# d.root.elements['c'].previous_element #-> <b/>
|
2416
2437
|
# d.root.elements['b'].previous_element #-> nil
|
2417
2438
|
#
|
2418
|
-
# source://rexml//lib/rexml/element.rb#
|
2439
|
+
# source://rexml//lib/rexml/element.rb#972
|
2419
2440
|
def previous_element; end
|
2420
2441
|
|
2421
2442
|
# :call-seq:
|
@@ -2428,7 +2449,7 @@ class REXML::Element < ::REXML::Parent
|
|
2428
2449
|
# The evaluation is tested against +expanded_name+, and so is namespace
|
2429
2450
|
# sensitive.
|
2430
2451
|
#
|
2431
|
-
# source://rexml//lib/rexml/element.rb#
|
2452
|
+
# source://rexml//lib/rexml/element.rb#532
|
2432
2453
|
def raw; end
|
2433
2454
|
|
2434
2455
|
# :call-seq:
|
@@ -2513,7 +2534,7 @@ class REXML::Element < ::REXML::Parent
|
|
2513
2534
|
# Note also that the text note is retrieved by method get_text,
|
2514
2535
|
# and so is always normalized text.
|
2515
2536
|
#
|
2516
|
-
# source://rexml//lib/rexml/element.rb#
|
2537
|
+
# source://rexml//lib/rexml/element.rb#1023
|
2517
2538
|
def text(path = T.unsafe(nil)); end
|
2518
2539
|
|
2519
2540
|
# :call-seq:
|
@@ -2541,7 +2562,7 @@ class REXML::Element < ::REXML::Parent
|
|
2541
2562
|
#
|
2542
2563
|
# d.root.text = nil #-> '<a><b/><c/></a>'
|
2543
2564
|
#
|
2544
|
-
# source://rexml//lib/rexml/element.rb#
|
2565
|
+
# source://rexml//lib/rexml/element.rb#1081
|
2545
2566
|
def text=(text); end
|
2546
2567
|
|
2547
2568
|
# :call-seq:
|
@@ -2556,7 +2577,7 @@ class REXML::Element < ::REXML::Parent
|
|
2556
2577
|
# ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
|
2557
2578
|
# ts.map {|t| t.to_s } # => ["text", "more"]
|
2558
2579
|
#
|
2559
|
-
# source://rexml//lib/rexml/element.rb#
|
2580
|
+
# source://rexml//lib/rexml/element.rb#1469
|
2560
2581
|
def texts; end
|
2561
2582
|
|
2562
2583
|
# :call-seq:
|
@@ -2570,7 +2591,7 @@ class REXML::Element < ::REXML::Parent
|
|
2570
2591
|
# The evaluation is tested against the element's +expanded_name+,
|
2571
2592
|
# and so is namespace-sensitive.
|
2572
2593
|
#
|
2573
|
-
# source://rexml//lib/rexml/element.rb#
|
2594
|
+
# source://rexml//lib/rexml/element.rb#489
|
2574
2595
|
def whitespace; end
|
2575
2596
|
|
2576
2597
|
# == DEPRECATED
|
@@ -2596,7 +2617,7 @@ class REXML::Element < ::REXML::Parent
|
|
2596
2617
|
# doc.write( out ) #-> doc is written to the string 'out'
|
2597
2618
|
# doc.write( $stdout ) #-> doc written to the console
|
2598
2619
|
#
|
2599
|
-
# source://rexml//lib/rexml/element.rb#
|
2620
|
+
# source://rexml//lib/rexml/element.rb#1495
|
2600
2621
|
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
2601
2622
|
|
2602
2623
|
# :call-seq:
|
@@ -2619,25 +2640,28 @@ class REXML::Element < ::REXML::Parent
|
|
2619
2640
|
# e = REXML::Element.new('foo')
|
2620
2641
|
# e.xpath # => "foo"
|
2621
2642
|
#
|
2622
|
-
# source://rexml//lib/rexml/element.rb#
|
2643
|
+
# source://rexml//lib/rexml/element.rb#1184
|
2623
2644
|
def xpath; end
|
2624
2645
|
|
2625
2646
|
private
|
2626
2647
|
|
2627
|
-
# source://rexml//lib/rexml/element.rb#
|
2648
|
+
# source://rexml//lib/rexml/element.rb#1519
|
2628
2649
|
def __to_xpath_helper(node); end
|
2629
2650
|
|
2651
|
+
# source://rexml//lib/rexml/element.rb#1511
|
2652
|
+
def calculate_namespaces; end
|
2653
|
+
|
2630
2654
|
# A private helper method
|
2631
2655
|
#
|
2632
|
-
# source://rexml//lib/rexml/element.rb#
|
2656
|
+
# source://rexml//lib/rexml/element.rb#1534
|
2633
2657
|
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
|
2634
2658
|
end
|
2635
2659
|
|
2636
|
-
# source://rexml//lib/rexml/doctype.rb#
|
2660
|
+
# source://rexml//lib/rexml/doctype.rb#257
|
2637
2661
|
class REXML::ElementDecl < ::REXML::Declaration
|
2638
2662
|
# @return [ElementDecl] a new instance of ElementDecl
|
2639
2663
|
#
|
2640
|
-
# source://rexml//lib/rexml/doctype.rb#
|
2664
|
+
# source://rexml//lib/rexml/doctype.rb#258
|
2641
2665
|
def initialize(src); end
|
2642
2666
|
end
|
2643
2667
|
|
@@ -2683,7 +2707,7 @@ end
|
|
2683
2707
|
# elements = d.root.elements
|
2684
2708
|
# elements # => #<REXML::Elements @element=<bookstore> ... </>>
|
2685
2709
|
#
|
2686
|
-
# source://rexml//lib/rexml/element.rb#
|
2710
|
+
# source://rexml//lib/rexml/element.rb#1589
|
2687
2711
|
class REXML::Elements
|
2688
2712
|
include ::Enumerable
|
2689
2713
|
|
@@ -2700,7 +2724,7 @@ class REXML::Elements
|
|
2700
2724
|
#
|
2701
2725
|
# @return [Elements] a new instance of Elements
|
2702
2726
|
#
|
2703
|
-
# source://rexml//lib/rexml/element.rb#
|
2727
|
+
# source://rexml//lib/rexml/element.rb#1602
|
2704
2728
|
def initialize(parent); end
|
2705
2729
|
|
2706
2730
|
# :call-seq:
|
@@ -2765,7 +2789,7 @@ class REXML::Elements
|
|
2765
2789
|
# element.parent # => <bookstore> ... </>
|
2766
2790
|
# element.context # => {:raw=>:all}
|
2767
2791
|
#
|
2768
|
-
# source://rexml//lib/rexml/element.rb#
|
2792
|
+
# source://rexml//lib/rexml/element.rb#1927
|
2769
2793
|
def <<(element = T.unsafe(nil)); end
|
2770
2794
|
|
2771
2795
|
# :call-seq:
|
@@ -2821,7 +2845,7 @@ class REXML::Elements
|
|
2821
2845
|
# eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
|
2822
2846
|
# eles[5, 'book'] # => nil
|
2823
2847
|
#
|
2824
|
-
# source://rexml//lib/rexml/element.rb#
|
2848
|
+
# source://rexml//lib/rexml/element.rb#1674
|
2825
2849
|
def [](index, name = T.unsafe(nil)); end
|
2826
2850
|
|
2827
2851
|
# :call-seq:
|
@@ -2860,7 +2884,7 @@ class REXML::Elements
|
|
2860
2884
|
# eles[50] = REXML::Text.new('bar') # => "bar"
|
2861
2885
|
# eles.size # => 5
|
2862
2886
|
#
|
2863
|
-
# source://rexml//lib/rexml/element.rb#
|
2887
|
+
# source://rexml//lib/rexml/element.rb#1725
|
2864
2888
|
def []=(index, element); end
|
2865
2889
|
|
2866
2890
|
# :call-seq:
|
@@ -2925,7 +2949,7 @@ class REXML::Elements
|
|
2925
2949
|
# element.parent # => <bookstore> ... </>
|
2926
2950
|
# element.context # => {:raw=>:all}
|
2927
2951
|
#
|
2928
|
-
# source://rexml//lib/rexml/element.rb#
|
2952
|
+
# source://rexml//lib/rexml/element.rb#1915
|
2929
2953
|
def add(element = T.unsafe(nil)); end
|
2930
2954
|
|
2931
2955
|
# :call-seq:
|
@@ -2945,7 +2969,7 @@ class REXML::Elements
|
|
2945
2969
|
# xpath = '//book [@category="web"]'
|
2946
2970
|
# elements.collect(xpath) {|element| element.size } # => [17, 9]
|
2947
2971
|
#
|
2948
|
-
# source://rexml//lib/rexml/element.rb#
|
2972
|
+
# source://rexml//lib/rexml/element.rb#1978
|
2949
2973
|
def collect(xpath = T.unsafe(nil)); end
|
2950
2974
|
|
2951
2975
|
# :call-seq:
|
@@ -2989,7 +3013,7 @@ class REXML::Elements
|
|
2989
3013
|
# elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
|
2990
3014
|
# elements.delete('//nosuch') # => nil
|
2991
3015
|
#
|
2992
|
-
# source://rexml//lib/rexml/element.rb#
|
3016
|
+
# source://rexml//lib/rexml/element.rb#1815
|
2993
3017
|
def delete(element); end
|
2994
3018
|
|
2995
3019
|
# :call-seq:
|
@@ -3009,7 +3033,7 @@ class REXML::Elements
|
|
3009
3033
|
# elements.size # => 0
|
3010
3034
|
# elements.delete_all('//book') # => []
|
3011
3035
|
#
|
3012
|
-
# source://rexml//lib/rexml/element.rb#
|
3036
|
+
# source://rexml//lib/rexml/element.rb#1841
|
3013
3037
|
def delete_all(xpath); end
|
3014
3038
|
|
3015
3039
|
# :call-seq:
|
@@ -3040,7 +3064,7 @@ class REXML::Elements
|
|
3040
3064
|
# <book category='web'> ... </>
|
3041
3065
|
# <book category='web' cover='paperback'> ... </>
|
3042
3066
|
#
|
3043
|
-
# source://rexml//lib/rexml/element.rb#
|
3067
|
+
# source://rexml//lib/rexml/element.rb#1957
|
3044
3068
|
def each(xpath = T.unsafe(nil)); end
|
3045
3069
|
|
3046
3070
|
# :call-seq:
|
@@ -3055,7 +3079,7 @@ class REXML::Elements
|
|
3055
3079
|
#
|
3056
3080
|
# @return [Boolean]
|
3057
3081
|
#
|
3058
|
-
# source://rexml//lib/rexml/element.rb#
|
3082
|
+
# source://rexml//lib/rexml/element.rb#1745
|
3059
3083
|
def empty?; end
|
3060
3084
|
|
3061
3085
|
# :call-seq:
|
@@ -3072,7 +3096,7 @@ class REXML::Elements
|
|
3072
3096
|
# elements.index(ele_4) # => 3
|
3073
3097
|
# elements.index(ele_3) # => -1
|
3074
3098
|
#
|
3075
|
-
# source://rexml//lib/rexml/element.rb#
|
3099
|
+
# source://rexml//lib/rexml/element.rb#1763
|
3076
3100
|
def index(element); end
|
3077
3101
|
|
3078
3102
|
# :call-seq:
|
@@ -3152,7 +3176,7 @@ class REXML::Elements
|
|
3152
3176
|
# total += element.size
|
3153
3177
|
# end # => 26
|
3154
3178
|
#
|
3155
|
-
# source://rexml//lib/rexml/element.rb#
|
3179
|
+
# source://rexml//lib/rexml/element.rb#2063
|
3156
3180
|
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
|
3157
3181
|
|
3158
3182
|
# :call-seq:
|
@@ -3166,7 +3190,7 @@ class REXML::Elements
|
|
3166
3190
|
# elements = REXML::Elements.new(d.root)
|
3167
3191
|
# elements.parent == d.root # => true
|
3168
3192
|
#
|
3169
|
-
# source://rexml//lib/rexml/element.rb#
|
3193
|
+
# source://rexml//lib/rexml/element.rb#1617
|
3170
3194
|
def parent; end
|
3171
3195
|
|
3172
3196
|
# :call-seq:
|
@@ -3178,7 +3202,7 @@ class REXML::Elements
|
|
3178
3202
|
# d.root.elements.size # => 3 # Three elements.
|
3179
3203
|
# d.root.size # => 6 # Three elements plus three text nodes..
|
3180
3204
|
#
|
3181
|
-
# source://rexml//lib/rexml/element.rb#
|
3205
|
+
# source://rexml//lib/rexml/element.rb#2087
|
3182
3206
|
def size; end
|
3183
3207
|
|
3184
3208
|
# :call-seq:
|
@@ -3199,23 +3223,23 @@ class REXML::Elements
|
|
3199
3223
|
#
|
3200
3224
|
# elements.to_a('//c') # => [<c/>]
|
3201
3225
|
#
|
3202
|
-
# source://rexml//lib/rexml/element.rb#
|
3226
|
+
# source://rexml//lib/rexml/element.rb#2111
|
3203
3227
|
def to_a(xpath = T.unsafe(nil)); end
|
3204
3228
|
|
3205
3229
|
private
|
3206
3230
|
|
3207
3231
|
# Private helper class. Removes quotes from quoted strings
|
3208
3232
|
#
|
3209
|
-
# source://rexml//lib/rexml/element.rb#
|
3233
|
+
# source://rexml//lib/rexml/element.rb#2119
|
3210
3234
|
def literalize(name); end
|
3211
3235
|
end
|
3212
3236
|
|
3213
3237
|
# source://rexml//lib/rexml/encoding.rb#4
|
3214
3238
|
module REXML::Encoding
|
3215
|
-
# source://rexml//lib/rexml/encoding.rb#
|
3239
|
+
# source://rexml//lib/rexml/encoding.rb#26
|
3216
3240
|
def decode(string); end
|
3217
3241
|
|
3218
|
-
# source://rexml//lib/rexml/encoding.rb#
|
3242
|
+
# source://rexml//lib/rexml/encoding.rb#22
|
3219
3243
|
def encode(string); end
|
3220
3244
|
|
3221
3245
|
# ID ---> Encoding name
|
@@ -3228,7 +3252,7 @@ module REXML::Encoding
|
|
3228
3252
|
|
3229
3253
|
private
|
3230
3254
|
|
3231
|
-
# source://rexml//lib/rexml/encoding.rb#
|
3255
|
+
# source://rexml//lib/rexml/encoding.rb#31
|
3232
3256
|
def find_encoding(name); end
|
3233
3257
|
end
|
3234
3258
|
|
@@ -3321,17 +3345,17 @@ class REXML::Entity < ::REXML::Child
|
|
3321
3345
|
end
|
3322
3346
|
end
|
3323
3347
|
|
3324
|
-
# source://rexml//lib/rexml/doctype.rb#
|
3348
|
+
# source://rexml//lib/rexml/doctype.rb#263
|
3325
3349
|
class REXML::ExternalEntity < ::REXML::Child
|
3326
3350
|
# @return [ExternalEntity] a new instance of ExternalEntity
|
3327
3351
|
#
|
3328
|
-
# source://rexml//lib/rexml/doctype.rb#
|
3352
|
+
# source://rexml//lib/rexml/doctype.rb#264
|
3329
3353
|
def initialize(src); end
|
3330
3354
|
|
3331
|
-
# source://rexml//lib/rexml/doctype.rb#
|
3355
|
+
# source://rexml//lib/rexml/doctype.rb#268
|
3332
3356
|
def to_s; end
|
3333
3357
|
|
3334
|
-
# source://rexml//lib/rexml/doctype.rb#
|
3358
|
+
# source://rexml//lib/rexml/doctype.rb#271
|
3335
3359
|
def write(output, indent); end
|
3336
3360
|
end
|
3337
3361
|
|
@@ -3675,48 +3699,48 @@ end
|
|
3675
3699
|
# A Source that wraps an IO. See the Source class for method
|
3676
3700
|
# documentation
|
3677
3701
|
#
|
3678
|
-
# source://rexml//lib/rexml/source.rb#
|
3702
|
+
# source://rexml//lib/rexml/source.rb#220
|
3679
3703
|
class REXML::IOSource < ::REXML::Source
|
3680
3704
|
# block_size has been deprecated
|
3681
3705
|
#
|
3682
3706
|
# @return [IOSource] a new instance of IOSource
|
3683
3707
|
#
|
3684
|
-
# source://rexml//lib/rexml/source.rb#
|
3708
|
+
# source://rexml//lib/rexml/source.rb#224
|
3685
3709
|
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
3686
3710
|
|
3687
3711
|
# @return the current line in the source
|
3688
3712
|
#
|
3689
|
-
# source://rexml//lib/rexml/source.rb#
|
3713
|
+
# source://rexml//lib/rexml/source.rb#329
|
3690
3714
|
def current_line; end
|
3691
3715
|
|
3692
3716
|
# @return [Boolean]
|
3693
3717
|
#
|
3694
|
-
# source://rexml//lib/rexml/source.rb#
|
3718
|
+
# source://rexml//lib/rexml/source.rb#324
|
3695
3719
|
def empty?; end
|
3696
3720
|
|
3697
|
-
# source://rexml//lib/rexml/source.rb#
|
3721
|
+
# source://rexml//lib/rexml/source.rb#284
|
3698
3722
|
def ensure_buffer; end
|
3699
3723
|
|
3700
|
-
# source://rexml//lib/rexml/source.rb#
|
3724
|
+
# source://rexml//lib/rexml/source.rb#288
|
3701
3725
|
def match(pattern, cons = T.unsafe(nil)); end
|
3702
3726
|
|
3703
3727
|
# @return [Boolean]
|
3704
3728
|
#
|
3705
|
-
# source://rexml//lib/rexml/source.rb#
|
3729
|
+
# source://rexml//lib/rexml/source.rb#307
|
3706
3730
|
def match?(pattern, cons = T.unsafe(nil)); end
|
3707
3731
|
|
3708
|
-
# source://rexml//lib/rexml/source.rb#
|
3732
|
+
# source://rexml//lib/rexml/source.rb#245
|
3709
3733
|
def read(term = T.unsafe(nil), min_bytes = T.unsafe(nil)); end
|
3710
3734
|
|
3711
|
-
# source://rexml//lib/rexml/source.rb#
|
3735
|
+
# source://rexml//lib/rexml/source.rb#266
|
3712
3736
|
def read_until(term); end
|
3713
3737
|
|
3714
3738
|
private
|
3715
3739
|
|
3716
|
-
# source://rexml//lib/rexml/source.rb#
|
3740
|
+
# source://rexml//lib/rexml/source.rb#376
|
3717
3741
|
def encoding_updated; end
|
3718
3742
|
|
3719
|
-
# source://rexml//lib/rexml/source.rb#
|
3743
|
+
# source://rexml//lib/rexml/source.rb#351
|
3720
3744
|
def readline(term = T.unsafe(nil)); end
|
3721
3745
|
end
|
3722
3746
|
|
@@ -3916,6 +3940,11 @@ module REXML::Namespace
|
|
3916
3940
|
# source://rexml//lib/rexml/namespace.rb#43
|
3917
3941
|
def has_name?(other, ns = T.unsafe(nil)); end
|
3918
3942
|
|
3943
|
+
# The name of the object, valid if set
|
3944
|
+
#
|
3945
|
+
# source://rexml//lib/rexml/namespace.rb#53
|
3946
|
+
def local_name; end
|
3947
|
+
|
3919
3948
|
# The name of the object, valid if set
|
3920
3949
|
#
|
3921
3950
|
# source://rexml//lib/rexml/namespace.rb#9
|
@@ -3988,48 +4017,48 @@ module REXML::Node
|
|
3988
4017
|
def to_s(indent = T.unsafe(nil)); end
|
3989
4018
|
end
|
3990
4019
|
|
3991
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4020
|
+
# source://rexml//lib/rexml/doctype.rb#276
|
3992
4021
|
class REXML::NotationDecl < ::REXML::Child
|
3993
4022
|
# @return [NotationDecl] a new instance of NotationDecl
|
3994
4023
|
#
|
3995
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4024
|
+
# source://rexml//lib/rexml/doctype.rb#278
|
3996
4025
|
def initialize(name, middle, pub, sys); end
|
3997
4026
|
|
3998
4027
|
# This method retrieves the name of the notation.
|
3999
4028
|
#
|
4000
4029
|
# Method contributed by Henrik Martensson
|
4001
4030
|
#
|
4002
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4031
|
+
# source://rexml//lib/rexml/doctype.rb#302
|
4003
4032
|
def name; end
|
4004
4033
|
|
4005
4034
|
# Returns the value of attribute public.
|
4006
4035
|
#
|
4007
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4036
|
+
# source://rexml//lib/rexml/doctype.rb#277
|
4008
4037
|
def public; end
|
4009
4038
|
|
4010
4039
|
# Sets the attribute public
|
4011
4040
|
#
|
4012
4041
|
# @param value the value to set the attribute public to.
|
4013
4042
|
#
|
4014
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4043
|
+
# source://rexml//lib/rexml/doctype.rb#277
|
4015
4044
|
def public=(_arg0); end
|
4016
4045
|
|
4017
4046
|
# Returns the value of attribute system.
|
4018
4047
|
#
|
4019
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4048
|
+
# source://rexml//lib/rexml/doctype.rb#277
|
4020
4049
|
def system; end
|
4021
4050
|
|
4022
4051
|
# Sets the attribute system
|
4023
4052
|
#
|
4024
4053
|
# @param value the value to set the attribute system to.
|
4025
4054
|
#
|
4026
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4055
|
+
# source://rexml//lib/rexml/doctype.rb#277
|
4027
4056
|
def system=(_arg0); end
|
4028
4057
|
|
4029
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4058
|
+
# source://rexml//lib/rexml/doctype.rb#286
|
4030
4059
|
def to_s; end
|
4031
4060
|
|
4032
|
-
# source://rexml//lib/rexml/doctype.rb#
|
4061
|
+
# source://rexml//lib/rexml/doctype.rb#295
|
4033
4062
|
def write(output, indent = T.unsafe(nil)); end
|
4034
4063
|
end
|
4035
4064
|
|
@@ -4070,7 +4099,7 @@ class REXML::Parent < ::REXML::Child
|
|
4070
4099
|
# source://rexml//lib/rexml/parent.rb#13
|
4071
4100
|
def initialize(parent = T.unsafe(nil)); end
|
4072
4101
|
|
4073
|
-
# source://rexml//lib/rexml/parent.rb#
|
4102
|
+
# source://rexml//lib/rexml/parent.rb#25
|
4074
4103
|
def <<(object); end
|
4075
4104
|
|
4076
4105
|
# Fetches a child at a given index
|
@@ -4093,7 +4122,7 @@ class REXML::Parent < ::REXML::Child
|
|
4093
4122
|
# source://rexml//lib/rexml/parent.rb#18
|
4094
4123
|
def add(object); end
|
4095
4124
|
|
4096
|
-
# source://rexml//lib/rexml/parent.rb#
|
4125
|
+
# source://rexml//lib/rexml/parent.rb#160
|
4097
4126
|
def children; end
|
4098
4127
|
|
4099
4128
|
# Deeply clones this object. This creates a complete duplicate of this
|
@@ -4114,7 +4143,7 @@ class REXML::Parent < ::REXML::Child
|
|
4114
4143
|
# source://rexml//lib/rexml/parent.rb#39
|
4115
4144
|
def each(&block); end
|
4116
4145
|
|
4117
|
-
# source://rexml//lib/rexml/parent.rb#
|
4146
|
+
# source://rexml//lib/rexml/parent.rb#61
|
4118
4147
|
def each_child(&block); end
|
4119
4148
|
|
4120
4149
|
# source://rexml//lib/rexml/parent.rb#51
|
@@ -4155,7 +4184,7 @@ class REXML::Parent < ::REXML::Child
|
|
4155
4184
|
|
4156
4185
|
# @return the number of children of this parent
|
4157
4186
|
#
|
4158
|
-
# source://rexml//lib/rexml/parent.rb#
|
4187
|
+
# source://rexml//lib/rexml/parent.rb#134
|
4159
4188
|
def length; end
|
4160
4189
|
|
4161
4190
|
# @return [Boolean]
|
@@ -4163,7 +4192,7 @@ class REXML::Parent < ::REXML::Child
|
|
4163
4192
|
# source://rexml//lib/rexml/parent.rb#162
|
4164
4193
|
def parent?; end
|
4165
4194
|
|
4166
|
-
# source://rexml//lib/rexml/parent.rb#
|
4195
|
+
# source://rexml//lib/rexml/parent.rb#24
|
4167
4196
|
def push(object); end
|
4168
4197
|
|
4169
4198
|
# Replaces one child with another, making sure the nodelist is correct
|
@@ -4267,51 +4296,51 @@ end
|
|
4267
4296
|
class REXML::Parsers::BaseParser
|
4268
4297
|
# @return [BaseParser] a new instance of BaseParser
|
4269
4298
|
#
|
4270
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4299
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#164
|
4271
4300
|
def initialize(source); end
|
4272
4301
|
|
4273
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4302
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#175
|
4274
4303
|
def add_listener(listener); end
|
4275
4304
|
|
4276
4305
|
# Returns true if there are no more events
|
4277
4306
|
#
|
4278
4307
|
# @return [Boolean]
|
4279
4308
|
#
|
4280
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4309
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#210
|
4281
4310
|
def empty?; end
|
4282
4311
|
|
4283
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4312
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#532
|
4284
4313
|
def entity(reference, entities); end
|
4285
4314
|
|
4286
4315
|
# Returns the value of attribute entity_expansion_count.
|
4287
4316
|
#
|
4288
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4317
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#180
|
4289
4318
|
def entity_expansion_count; end
|
4290
4319
|
|
4291
4320
|
# Sets the attribute entity_expansion_limit
|
4292
4321
|
#
|
4293
4322
|
# @param value the value to set the attribute entity_expansion_limit to.
|
4294
4323
|
#
|
4295
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4324
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#181
|
4296
4325
|
def entity_expansion_limit=(_arg0); end
|
4297
4326
|
|
4298
4327
|
# Sets the attribute entity_expansion_text_limit
|
4299
4328
|
#
|
4300
4329
|
# @param value the value to set the attribute entity_expansion_text_limit to.
|
4301
4330
|
#
|
4302
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4331
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#182
|
4303
4332
|
def entity_expansion_text_limit=(_arg0); end
|
4304
4333
|
|
4305
4334
|
# Returns true if there are more events. Synonymous with !empty?
|
4306
4335
|
#
|
4307
4336
|
# @return [Boolean]
|
4308
4337
|
#
|
4309
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4338
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#215
|
4310
4339
|
def has_next?; end
|
4311
4340
|
|
4312
4341
|
# Escapes all possible entities
|
4313
4342
|
#
|
4314
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4343
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#543
|
4315
4344
|
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
4316
4345
|
|
4317
4346
|
# Peek at the +depth+ event in the stack. The first element on the stack
|
@@ -4321,78 +4350,90 @@ class REXML::Parsers::BaseParser
|
|
4321
4350
|
# event, so you can effectively pre-parse the entire document (pull the
|
4322
4351
|
# entire thing into memory) using this method.
|
4323
4352
|
#
|
4324
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4353
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#231
|
4325
4354
|
def peek(depth = T.unsafe(nil)); end
|
4326
4355
|
|
4327
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4356
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#200
|
4328
4357
|
def position; end
|
4329
4358
|
|
4330
4359
|
# Returns the next event. This is a +PullEvent+ object.
|
4331
4360
|
#
|
4332
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4361
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#246
|
4333
4362
|
def pull; end
|
4334
4363
|
|
4335
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4364
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#189
|
4336
4365
|
def reset; end
|
4337
4366
|
|
4338
4367
|
# Returns the value of attribute source.
|
4339
4368
|
#
|
4340
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4369
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#179
|
4341
4370
|
def source; end
|
4342
4371
|
|
4343
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4372
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#184
|
4344
4373
|
def stream=(source); end
|
4345
4374
|
|
4346
4375
|
# Unescapes all possible entities
|
4347
4376
|
#
|
4348
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4377
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#559
|
4349
4378
|
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
4350
4379
|
|
4351
4380
|
# Push an event back on the head of the stream. This method
|
4352
4381
|
# has (theoretically) infinite depth.
|
4353
4382
|
#
|
4354
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4383
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#221
|
4355
4384
|
def unshift(token); end
|
4356
4385
|
|
4357
4386
|
private
|
4358
4387
|
|
4359
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4388
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#608
|
4360
4389
|
def add_namespace(prefix, uri); end
|
4361
4390
|
|
4362
4391
|
# @return [Boolean]
|
4363
4392
|
#
|
4364
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4393
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#641
|
4365
4394
|
def need_source_encoding_update?(xml_declaration_encoding); end
|
4366
4395
|
|
4367
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4396
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#647
|
4397
|
+
def normalize_xml_declaration_encoding(xml_declaration_encoding); end
|
4398
|
+
|
4399
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#844
|
4400
|
+
def parse_attribute_value_with_equal(name); end
|
4401
|
+
|
4402
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#863
|
4368
4403
|
def parse_attributes(prefixes); end
|
4369
4404
|
|
4370
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4405
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#664
|
4371
4406
|
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
4372
4407
|
|
4373
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4408
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#692
|
4374
4409
|
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
4375
4410
|
|
4376
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4411
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#651
|
4377
4412
|
def parse_name(base_error_message); end
|
4378
4413
|
|
4379
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4414
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#623
|
4380
4415
|
def pop_namespaces_restore; end
|
4381
4416
|
|
4382
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4417
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#730
|
4418
|
+
def process_comment; end
|
4419
|
+
|
4420
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#742
|
4383
4421
|
def process_instruction; end
|
4384
4422
|
|
4385
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4423
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#256
|
4386
4424
|
def pull_event; end
|
4387
4425
|
|
4388
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4426
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#617
|
4389
4427
|
def push_namespaces_restore; end
|
4390
4428
|
|
4391
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4429
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#634
|
4392
4430
|
def record_entity_expansion(delta = T.unsafe(nil)); end
|
4393
4431
|
|
4394
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4432
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#830
|
4395
4433
|
def scan_quote; end
|
4434
|
+
|
4435
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#764
|
4436
|
+
def xml_declaration; end
|
4396
4437
|
end
|
4397
4438
|
|
4398
4439
|
# source://rexml//lib/rexml/parsers/baseparser.rb#130
|
@@ -4407,31 +4448,34 @@ REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
|
|
4407
4448
|
# source://rexml//lib/rexml/parsers/baseparser.rb#143
|
4408
4449
|
module REXML::Parsers::BaseParser::Private; end
|
4409
4450
|
|
4410
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4451
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#148
|
4411
4452
|
REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
|
4412
4453
|
|
4413
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4454
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#153
|
4414
4455
|
REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4415
4456
|
|
4416
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4457
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#154
|
4417
4458
|
REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
|
4418
4459
|
|
4419
4460
|
# source://rexml//lib/rexml/parsers/baseparser.rb#146
|
4420
4461
|
REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4421
4462
|
|
4422
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4463
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#155
|
4423
4464
|
REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4424
4465
|
|
4425
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4466
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#152
|
4426
4467
|
REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4427
4468
|
|
4428
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4469
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#147
|
4470
|
+
REXML::Parsers::BaseParser::Private::EQUAL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4471
|
+
|
4472
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#150
|
4429
4473
|
REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4430
4474
|
|
4431
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4475
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#149
|
4432
4476
|
REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4433
4477
|
|
4434
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4478
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#151
|
4435
4479
|
REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4436
4480
|
|
4437
4481
|
# source://rexml//lib/rexml/parsers/baseparser.rb#144
|
@@ -4440,7 +4484,7 @@ REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil),
|
|
4440
4484
|
# source://rexml//lib/rexml/parsers/baseparser.rb#145
|
4441
4485
|
REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4442
4486
|
|
4443
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4487
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#160
|
4444
4488
|
REXML::Parsers::BaseParser::Private::XML_PREFIXED_NAMESPACE = T.let(T.unsafe(nil), String)
|
4445
4489
|
|
4446
4490
|
# source://rexml//lib/rexml/parsers/baseparser.rb#66
|
@@ -4509,7 +4553,7 @@ class REXML::Parsers::XPathParser
|
|
4509
4553
|
|
4510
4554
|
# For backward compatibility
|
4511
4555
|
#
|
4512
|
-
# source://rexml//lib/rexml/parsers/xpathparser.rb#
|
4556
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#221
|
4513
4557
|
def preciate_to_string(parsed, &block); end
|
4514
4558
|
|
4515
4559
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#36
|
@@ -4520,61 +4564,35 @@ class REXML::Parsers::XPathParser
|
|
4520
4564
|
|
4521
4565
|
private
|
4522
4566
|
|
4523
|
-
# | AdditiveExpr ('+' | '-') MultiplicativeExpr
|
4524
|
-
# | MultiplicativeExpr
|
4525
|
-
#
|
4526
4567
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#505
|
4527
4568
|
def AdditiveExpr(path, parsed); end
|
4528
4569
|
|
4529
|
-
# | AndExpr S 'and' S EqualityExpr
|
4530
|
-
# | EqualityExpr
|
4531
|
-
#
|
4532
4570
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#438
|
4533
4571
|
def AndExpr(path, parsed); end
|
4534
4572
|
|
4535
|
-
# | EqualityExpr ('=' | '!=') RelationalExpr
|
4536
|
-
# | RelationalExpr
|
4537
|
-
#
|
4538
4573
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#457
|
4539
4574
|
def EqualityExpr(path, parsed); end
|
4540
4575
|
|
4541
|
-
# | FilterExpr Predicate
|
4542
|
-
# | PrimaryExpr
|
4543
|
-
#
|
4544
4576
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#608
|
4545
4577
|
def FilterExpr(path, parsed); end
|
4546
4578
|
|
4547
|
-
# | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')'
|
4548
|
-
#
|
4549
4579
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#663
|
4550
4580
|
def FunctionCall(rest, parsed); end
|
4551
4581
|
|
4552
4582
|
# LocationPath
|
4553
|
-
# | RelativeLocationPath
|
4554
|
-
# | '/' RelativeLocationPath?
|
4555
|
-
# | '//' RelativeLocationPath
|
4556
4583
|
#
|
4557
4584
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#243
|
4558
4585
|
def LocationPath(path, parsed); end
|
4559
4586
|
|
4560
|
-
# | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr
|
4561
|
-
# | UnaryExpr
|
4562
|
-
#
|
4563
4587
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#528
|
4564
4588
|
def MultiplicativeExpr(path, parsed); end
|
4565
4589
|
|
4566
4590
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#343
|
4567
4591
|
def NodeTest(path, parsed); end
|
4568
4592
|
|
4569
|
-
# | OrExpr S 'or' S AndExpr
|
4570
|
-
# | AndExpr
|
4571
|
-
#
|
4572
4593
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#419
|
4573
4594
|
def OrExpr(path, parsed); end
|
4574
4595
|
|
4575
|
-
# | LocationPath
|
4576
|
-
# | FilterExpr ('/' | '//') RelativeLocationPath
|
4577
|
-
#
|
4578
4596
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#590
|
4579
4597
|
def PathExpr(path, parsed); end
|
4580
4598
|
|
@@ -4586,24 +4604,15 @@ class REXML::Parsers::XPathParser
|
|
4586
4604
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#626
|
4587
4605
|
def PrimaryExpr(path, parsed); end
|
4588
4606
|
|
4589
|
-
# | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr
|
4590
|
-
# | AdditiveExpr
|
4591
|
-
#
|
4592
4607
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#480
|
4593
4608
|
def RelationalExpr(path, parsed); end
|
4594
4609
|
|
4595
4610
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#267
|
4596
4611
|
def RelativeLocationPath(path, parsed); end
|
4597
4612
|
|
4598
|
-
# | '-' UnaryExpr
|
4599
|
-
# | UnionExpr
|
4600
|
-
#
|
4601
4613
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#553
|
4602
4614
|
def UnaryExpr(path, parsed); end
|
4603
4615
|
|
4604
|
-
# | UnionExpr '|' PathExpr
|
4605
|
-
# | PathExpr
|
4606
|
-
#
|
4607
4616
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#571
|
4608
4617
|
def UnionExpr(path, parsed); end
|
4609
4618
|
|
@@ -4627,11 +4636,6 @@ REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
|
4627
4636
|
# true/false, if a positive match
|
4628
4637
|
# String, if a name match
|
4629
4638
|
# NodeTest
|
4630
|
-
# | ('*' | NCNAME ':' '*' | QNAME) NameTest
|
4631
|
-
# | '*' ':' NCNAME NameTest since XPath 2.0
|
4632
|
-
# | NODE_TYPE '(' ')' NodeType
|
4633
|
-
# | PI '(' LITERAL ')' PI
|
4634
|
-
# | '[' expr ']' Predicate
|
4635
4639
|
#
|
4636
4640
|
# source://rexml//lib/rexml/parsers/xpathparser.rb#338
|
4637
4641
|
REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
@@ -4686,28 +4690,28 @@ class REXML::Source
|
|
4686
4690
|
# @param encoding if non-null, sets the encoding of the source to this
|
4687
4691
|
# @return [Source] a new instance of Source
|
4688
4692
|
#
|
4689
|
-
# source://rexml//lib/rexml/source.rb#
|
4693
|
+
# source://rexml//lib/rexml/source.rb#88
|
4690
4694
|
def initialize(arg, encoding = T.unsafe(nil)); end
|
4691
4695
|
|
4692
4696
|
# The current buffer (what we're going to read next)
|
4693
4697
|
#
|
4694
|
-
# source://rexml//lib/rexml/source.rb#
|
4698
|
+
# source://rexml//lib/rexml/source.rb#101
|
4695
4699
|
def buffer; end
|
4696
4700
|
|
4697
|
-
# source://rexml//lib/rexml/source.rb#
|
4701
|
+
# source://rexml//lib/rexml/source.rb#111
|
4698
4702
|
def buffer_encoding=(encoding); end
|
4699
4703
|
|
4700
4704
|
# @return the current line in the source
|
4701
4705
|
#
|
4702
|
-
# source://rexml//lib/rexml/source.rb#
|
4706
|
+
# source://rexml//lib/rexml/source.rb#180
|
4703
4707
|
def current_line; end
|
4704
4708
|
|
4705
|
-
# source://rexml//lib/rexml/source.rb#
|
4709
|
+
# source://rexml//lib/rexml/source.rb#105
|
4706
4710
|
def drop_parsed_content; end
|
4707
4711
|
|
4708
4712
|
# @return [Boolean] true if the Source is exhausted
|
4709
4713
|
#
|
4710
|
-
# source://rexml//lib/rexml/source.rb#
|
4714
|
+
# source://rexml//lib/rexml/source.rb#175
|
4711
4715
|
def empty?; end
|
4712
4716
|
|
4713
4717
|
# Returns the value of attribute encoding.
|
@@ -4718,10 +4722,10 @@ class REXML::Source
|
|
4718
4722
|
# Inherited from Encoding
|
4719
4723
|
# Overridden to support optimized en/decoding
|
4720
4724
|
#
|
4721
|
-
# source://rexml//lib/rexml/source.rb#
|
4725
|
+
# source://rexml//lib/rexml/source.rb#117
|
4722
4726
|
def encoding=(enc); end
|
4723
4727
|
|
4724
|
-
# source://rexml//lib/rexml/source.rb#
|
4728
|
+
# source://rexml//lib/rexml/source.rb#135
|
4725
4729
|
def ensure_buffer; end
|
4726
4730
|
|
4727
4731
|
# The line number of the last consumed text
|
@@ -4729,50 +4733,56 @@ class REXML::Source
|
|
4729
4733
|
# source://rexml//lib/rexml/source.rb#64
|
4730
4734
|
def line; end
|
4731
4735
|
|
4732
|
-
# source://rexml//lib/rexml/source.rb#
|
4736
|
+
# source://rexml//lib/rexml/source.rb#138
|
4733
4737
|
def match(pattern, cons = T.unsafe(nil)); end
|
4734
4738
|
|
4735
4739
|
# @return [Boolean]
|
4736
4740
|
#
|
4737
|
-
# source://rexml//lib/rexml/source.rb#
|
4741
|
+
# source://rexml//lib/rexml/source.rb#146
|
4738
4742
|
def match?(pattern, cons = T.unsafe(nil)); end
|
4739
4743
|
|
4740
|
-
# source://rexml//lib/rexml/source.rb#
|
4744
|
+
# source://rexml//lib/rexml/source.rb#166
|
4741
4745
|
def peek_byte; end
|
4742
4746
|
|
4743
|
-
# source://rexml//lib/rexml/source.rb#
|
4747
|
+
# source://rexml//lib/rexml/source.rb#158
|
4744
4748
|
def position; end
|
4745
4749
|
|
4746
|
-
# source://rexml//lib/rexml/source.rb#
|
4750
|
+
# source://rexml//lib/rexml/source.rb#162
|
4747
4751
|
def position=(pos); end
|
4748
4752
|
|
4749
|
-
# source://rexml//lib/rexml/source.rb#
|
4753
|
+
# source://rexml//lib/rexml/source.rb#122
|
4750
4754
|
def read(term = T.unsafe(nil)); end
|
4751
4755
|
|
4752
|
-
# source://rexml//lib/rexml/source.rb#
|
4756
|
+
# source://rexml//lib/rexml/source.rb#125
|
4753
4757
|
def read_until(term); end
|
4754
4758
|
|
4755
|
-
# source://rexml//lib/rexml/source.rb#
|
4759
|
+
# source://rexml//lib/rexml/source.rb#170
|
4756
4760
|
def scan_byte; end
|
4757
4761
|
|
4762
|
+
# source://rexml//lib/rexml/source.rb#154
|
4763
|
+
def skip_spaces; end
|
4764
|
+
|
4758
4765
|
private
|
4759
4766
|
|
4760
|
-
# source://rexml//lib/rexml/source.rb#
|
4767
|
+
# source://rexml//lib/rexml/source.rb#189
|
4761
4768
|
def detect_encoding; end
|
4762
4769
|
|
4763
|
-
# source://rexml//lib/rexml/source.rb#
|
4770
|
+
# source://rexml//lib/rexml/source.rb#207
|
4764
4771
|
def encoding_updated; end
|
4765
4772
|
end
|
4766
4773
|
|
4767
4774
|
# source://rexml//lib/rexml/source.rb#67
|
4768
4775
|
module REXML::Source::Private; end
|
4769
4776
|
|
4770
|
-
# source://rexml//lib/rexml/source.rb#
|
4777
|
+
# source://rexml//lib/rexml/source.rb#70
|
4771
4778
|
REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4772
4779
|
|
4773
|
-
# source://rexml//lib/rexml/source.rb#
|
4780
|
+
# source://rexml//lib/rexml/source.rb#69
|
4774
4781
|
REXML::Source::Private::SCANNER_RESET_SIZE = T.let(T.unsafe(nil), Integer)
|
4775
4782
|
|
4783
|
+
# source://rexml//lib/rexml/source.rb#68
|
4784
|
+
REXML::Source::Private::SPACES_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4785
|
+
|
4776
4786
|
# Generates Source-s. USE THIS CLASS.
|
4777
4787
|
#
|
4778
4788
|
# source://rexml//lib/rexml/source.rb#38
|
@@ -4862,10 +4872,10 @@ class REXML::Text < ::REXML::Child
|
|
4862
4872
|
# source://rexml//lib/rexml/text.rb#174
|
4863
4873
|
def empty?; end
|
4864
4874
|
|
4865
|
-
# source://rexml//lib/rexml/text.rb#
|
4875
|
+
# source://rexml//lib/rexml/text.rb#271
|
4866
4876
|
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
4867
4877
|
|
4868
|
-
# source://rexml//lib/rexml/text.rb#
|
4878
|
+
# source://rexml//lib/rexml/text.rb#225
|
4869
4879
|
def inspect; end
|
4870
4880
|
|
4871
4881
|
# source://rexml//lib/rexml/text.rb#170
|
@@ -4898,7 +4908,7 @@ class REXML::Text < ::REXML::Child
|
|
4898
4908
|
# u = Text.new( "sean russell", false, nil, true )
|
4899
4909
|
# u.to_s #-> "sean russell"
|
4900
4910
|
#
|
4901
|
-
# source://rexml//lib/rexml/text.rb#
|
4911
|
+
# source://rexml//lib/rexml/text.rb#220
|
4902
4912
|
def to_s; end
|
4903
4913
|
|
4904
4914
|
# Returns the string value of this text. This is the text without
|
@@ -4915,7 +4925,7 @@ class REXML::Text < ::REXML::Child
|
|
4915
4925
|
# u = Text.new( "sean russell", false, nil, true )
|
4916
4926
|
# u.value #-> "sean russell"
|
4917
4927
|
#
|
4918
|
-
# source://rexml//lib/rexml/text.rb#
|
4928
|
+
# source://rexml//lib/rexml/text.rb#242
|
4919
4929
|
def value; end
|
4920
4930
|
|
4921
4931
|
# Sets the contents of this text node. This expects the text to be
|
@@ -4926,16 +4936,16 @@ class REXML::Text < ::REXML::Child
|
|
4926
4936
|
# e[0].value = "bar" # <a>bar</a>
|
4927
4937
|
# e[0].value = "<a>" # <a><a></a>
|
4928
4938
|
#
|
4929
|
-
# source://rexml//lib/rexml/text.rb#
|
4939
|
+
# source://rexml//lib/rexml/text.rb#254
|
4930
4940
|
def value=(val); end
|
4931
4941
|
|
4932
|
-
# source://rexml//lib/rexml/text.rb#
|
4942
|
+
# source://rexml//lib/rexml/text.rb#260
|
4933
4943
|
def wrap(string, width, addnewline = T.unsafe(nil)); end
|
4934
4944
|
|
4935
4945
|
# == DEPRECATED
|
4936
4946
|
# See REXML::Formatters
|
4937
4947
|
#
|
4938
|
-
# source://rexml//lib/rexml/text.rb#
|
4948
|
+
# source://rexml//lib/rexml/text.rb#288
|
4939
4949
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
4940
4950
|
|
4941
4951
|
# Writes out text, substituting special characters beforehand.
|
@@ -4953,42 +4963,42 @@ class REXML::Text < ::REXML::Child
|
|
4953
4963
|
# }
|
4954
4964
|
# puts ascOut
|
4955
4965
|
#
|
4956
|
-
# source://rexml//lib/rexml/text.rb#
|
4966
|
+
# source://rexml//lib/rexml/text.rb#318
|
4957
4967
|
def write_with_substitution(out, input); end
|
4958
4968
|
|
4959
4969
|
# FIXME
|
4960
4970
|
# This probably won't work properly
|
4961
4971
|
#
|
4962
|
-
# source://rexml//lib/rexml/text.rb#
|
4972
|
+
# source://rexml//lib/rexml/text.rb#300
|
4963
4973
|
def xpath; end
|
4964
4974
|
|
4965
4975
|
private
|
4966
4976
|
|
4967
|
-
# source://rexml//lib/rexml/text.rb#
|
4977
|
+
# source://rexml//lib/rexml/text.rb#331
|
4968
4978
|
def clear_cache; end
|
4969
4979
|
|
4970
4980
|
class << self
|
4971
4981
|
# check for illegal characters
|
4972
4982
|
#
|
4973
4983
|
# source://rexml//lib/rexml/text.rb#116
|
4974
|
-
def check(string, pattern, doctype); end
|
4984
|
+
def check(string, pattern, doctype = T.unsafe(nil)); end
|
4975
4985
|
|
4976
|
-
# source://rexml//lib/rexml/text.rb#
|
4986
|
+
# source://rexml//lib/rexml/text.rb#401
|
4977
4987
|
def expand(ref, doctype, filter); end
|
4978
4988
|
|
4979
4989
|
# Escapes all possible entities
|
4980
4990
|
#
|
4981
|
-
# source://rexml//lib/rexml/text.rb#
|
4991
|
+
# source://rexml//lib/rexml/text.rb#363
|
4982
4992
|
def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
4983
4993
|
|
4984
4994
|
# Reads text, substituting entities
|
4985
4995
|
#
|
4986
|
-
# source://rexml//lib/rexml/text.rb#
|
4996
|
+
# source://rexml//lib/rexml/text.rb#337
|
4987
4997
|
def read_with_substitution(input, illegal = T.unsafe(nil)); end
|
4988
4998
|
|
4989
4999
|
# Unescapes all possible entities
|
4990
5000
|
#
|
4991
|
-
# source://rexml//lib/rexml/text.rb#
|
5001
|
+
# source://rexml//lib/rexml/text.rb#387
|
4992
5002
|
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil), entity_expansion_text_limit: T.unsafe(nil)); end
|
4993
5003
|
end
|
4994
5004
|
end
|
@@ -5041,12 +5051,12 @@ class REXML::XMLDecl < ::REXML::Child
|
|
5041
5051
|
# source://rexml//lib/rexml/xmldecl.rb#98
|
5042
5052
|
def nowrite; end
|
5043
5053
|
|
5044
|
-
# source://rexml//lib/rexml/
|
5054
|
+
# source://rexml//lib/rexml/xmldecl.rb#74
|
5045
5055
|
def old_enc=(encoding); end
|
5046
5056
|
|
5047
5057
|
# Returns the value of attribute standalone.
|
5048
5058
|
#
|
5049
|
-
# source://rexml//lib/rexml/xmldecl.rb#
|
5059
|
+
# source://rexml//lib/rexml/xmldecl.rb#73
|
5050
5060
|
def stand_alone?; end
|
5051
5061
|
|
5052
5062
|
# Returns the value of attribute standalone.
|
@@ -5139,7 +5149,7 @@ class REXML::XPath
|
|
5139
5149
|
# XPath.each( node, '/book/publisher/text()=$publisher', {}, {"publisher"=>"O'Reilly"}) \
|
5140
5150
|
# {|el| ... }
|
5141
5151
|
#
|
5142
|
-
# source://rexml//lib/rexml/xpath.rb#
|
5152
|
+
# source://rexml//lib/rexml/xpath.rb#55
|
5143
5153
|
def each(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
5144
5154
|
|
5145
5155
|
# Finds and returns the first node that matches the supplied xpath.
|
@@ -5165,31 +5175,31 @@ class REXML::XPath
|
|
5165
5175
|
|
5166
5176
|
# Returns an array of nodes matching a given XPath.
|
5167
5177
|
#
|
5168
|
-
# source://rexml//lib/rexml/xpath.rb#
|
5178
|
+
# source://rexml//lib/rexml/xpath.rb#62
|
5169
5179
|
def match(element, path = T.unsafe(nil), namespaces = T.unsafe(nil), variables = T.unsafe(nil), options = T.unsafe(nil)); end
|
5170
5180
|
end
|
5171
5181
|
end
|
5172
5182
|
|
5173
5183
|
# @private
|
5174
5184
|
#
|
5175
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5185
|
+
# source://rexml//lib/rexml/xpath_parser.rb#965
|
5176
5186
|
class REXML::XPathNode
|
5177
5187
|
# @return [XPathNode] a new instance of XPathNode
|
5178
5188
|
#
|
5179
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5189
|
+
# source://rexml//lib/rexml/xpath_parser.rb#967
|
5180
5190
|
def initialize(node, context = T.unsafe(nil)); end
|
5181
5191
|
|
5182
5192
|
# Returns the value of attribute context.
|
5183
5193
|
#
|
5184
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5194
|
+
# source://rexml//lib/rexml/xpath_parser.rb#966
|
5185
5195
|
def context; end
|
5186
5196
|
|
5187
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5197
|
+
# source://rexml//lib/rexml/xpath_parser.rb#976
|
5188
5198
|
def position; end
|
5189
5199
|
|
5190
5200
|
# Returns the value of attribute raw_node.
|
5191
5201
|
#
|
5192
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5202
|
+
# source://rexml//lib/rexml/xpath_parser.rb#966
|
5193
5203
|
def raw_node; end
|
5194
5204
|
end
|
5195
5205
|
|
@@ -5207,7 +5217,7 @@ class REXML::XPathParser
|
|
5207
5217
|
# source://rexml//lib/rexml/xpath_parser.rb#60
|
5208
5218
|
def initialize(strict: T.unsafe(nil)); end
|
5209
5219
|
|
5210
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5220
|
+
# source://rexml//lib/rexml/xpath_parser.rb#107
|
5211
5221
|
def []=(variable_name, value); end
|
5212
5222
|
|
5213
5223
|
# Performs a depth-first (document order) XPath search, and returns the
|
@@ -5215,66 +5225,66 @@ class REXML::XPathParser
|
|
5215
5225
|
#
|
5216
5226
|
# FIXME: This method is incomplete!
|
5217
5227
|
#
|
5218
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5228
|
+
# source://rexml//lib/rexml/xpath_parser.rb#116
|
5219
5229
|
def first(path_stack, node); end
|
5220
5230
|
|
5221
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5222
|
-
def get_first(path,
|
5231
|
+
# source://rexml//lib/rexml/xpath_parser.rb#97
|
5232
|
+
def get_first(path, node); end
|
5223
5233
|
|
5224
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5225
|
-
def match(path_stack,
|
5234
|
+
# source://rexml//lib/rexml/xpath_parser.rb#153
|
5235
|
+
def match(path_stack, node); end
|
5226
5236
|
|
5227
5237
|
# source://rexml//lib/rexml/xpath_parser.rb#69
|
5228
5238
|
def namespaces=(namespaces = T.unsafe(nil)); end
|
5229
5239
|
|
5230
5240
|
# source://rexml//lib/rexml/xpath_parser.rb#79
|
5231
|
-
def parse(path,
|
5241
|
+
def parse(path, node); end
|
5232
5242
|
|
5233
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5234
|
-
def predicate(path,
|
5243
|
+
# source://rexml//lib/rexml/xpath_parser.rb#102
|
5244
|
+
def predicate(path, node); end
|
5235
5245
|
|
5236
5246
|
# source://rexml//lib/rexml/xpath_parser.rb#74
|
5237
5247
|
def variables=(vars = T.unsafe(nil)); end
|
5238
5248
|
|
5239
5249
|
private
|
5240
5250
|
|
5241
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5251
|
+
# source://rexml//lib/rexml/xpath_parser.rb#781
|
5242
5252
|
def child(nodeset); end
|
5243
5253
|
|
5244
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5254
|
+
# source://rexml//lib/rexml/xpath_parser.rb#922
|
5245
5255
|
def compare(a, operator, b); end
|
5246
5256
|
|
5247
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5257
|
+
# source://rexml//lib/rexml/xpath_parser.rb#687
|
5248
5258
|
def descendant(nodeset, include_self); end
|
5249
5259
|
|
5250
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5260
|
+
# source://rexml//lib/rexml/xpath_parser.rb#698
|
5251
5261
|
def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
|
5252
5262
|
|
5253
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5263
|
+
# source://rexml//lib/rexml/xpath_parser.rb#944
|
5254
5264
|
def each_unnode(nodeset); end
|
5255
5265
|
|
5256
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5266
|
+
# source://rexml//lib/rexml/xpath_parser.rb#646
|
5257
5267
|
def enter(tag, *args); end
|
5258
5268
|
|
5259
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5269
|
+
# source://rexml//lib/rexml/xpath_parser.rb#821
|
5260
5270
|
def equality_relational_compare(set1, op, set2); end
|
5261
5271
|
|
5262
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5272
|
+
# source://rexml//lib/rexml/xpath_parser.rb#596
|
5263
5273
|
def evaluate_predicate(expression, nodesets); end
|
5264
5274
|
|
5265
5275
|
# Expr takes a stack of path elements and a set of nodes (either a Parent
|
5266
5276
|
# or an Array and returns an Array of matching nodes
|
5267
5277
|
#
|
5268
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5278
|
+
# source://rexml//lib/rexml/xpath_parser.rb#186
|
5269
5279
|
def expr(path_stack, nodeset, context = T.unsafe(nil)); end
|
5270
5280
|
|
5271
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5281
|
+
# source://rexml//lib/rexml/xpath_parser.rb#587
|
5272
5282
|
def filter_nodeset(nodeset); end
|
5273
5283
|
|
5274
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5284
|
+
# source://rexml//lib/rexml/xpath_parser.rb#754
|
5275
5285
|
def following(node); end
|
5276
5286
|
|
5277
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5287
|
+
# source://rexml//lib/rexml/xpath_parser.rb#765
|
5278
5288
|
def following_node_of(node); end
|
5279
5289
|
|
5280
5290
|
# Returns a String namespace for a node, given a prefix
|
@@ -5283,22 +5293,22 @@ class REXML::XPathParser
|
|
5283
5293
|
# 1. Use the supplied namespace mapping first.
|
5284
5294
|
# 2. If no mapping was supplied, use the context node to look up the namespace
|
5285
5295
|
#
|
5286
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5296
|
+
# source://rexml//lib/rexml/xpath_parser.rb#174
|
5287
5297
|
def get_namespace(node, prefix); end
|
5288
5298
|
|
5289
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5299
|
+
# source://rexml//lib/rexml/xpath_parser.rb#651
|
5290
5300
|
def leave(tag, *args); end
|
5291
5301
|
|
5292
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5302
|
+
# source://rexml//lib/rexml/xpath_parser.rb#771
|
5293
5303
|
def next_sibling_node(node); end
|
5294
5304
|
|
5295
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5305
|
+
# source://rexml//lib/rexml/xpath_parser.rb#488
|
5296
5306
|
def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
|
5297
5307
|
|
5298
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5308
|
+
# source://rexml//lib/rexml/xpath_parser.rb#808
|
5299
5309
|
def norm(b); end
|
5300
5310
|
|
5301
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5311
|
+
# source://rexml//lib/rexml/xpath_parser.rb#896
|
5302
5312
|
def normalize_compare_values(a, operator, b); end
|
5303
5313
|
|
5304
5314
|
# Builds a nodeset of all of the preceding nodes of the supplied node,
|
@@ -5306,10 +5316,10 @@ class REXML::XPathParser
|
|
5306
5316
|
# preceding:: includes every element in the document that precedes this node,
|
5307
5317
|
# except for ancestors
|
5308
5318
|
#
|
5309
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5319
|
+
# source://rexml//lib/rexml/xpath_parser.rb#717
|
5310
5320
|
def preceding(node); end
|
5311
5321
|
|
5312
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5322
|
+
# source://rexml//lib/rexml/xpath_parser.rb#739
|
5313
5323
|
def preceding_node_of(node); end
|
5314
5324
|
|
5315
5325
|
# Reorders an array of nodes so that they are in document order
|
@@ -5321,24 +5331,24 @@ class REXML::XPathParser
|
|
5321
5331
|
# I wouldn't have to do this. Maybe add a document IDX for each node?
|
5322
5332
|
# Problems with mutable documents. Or, rewrite everything.
|
5323
5333
|
#
|
5324
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5334
|
+
# source://rexml//lib/rexml/xpath_parser.rb#664
|
5325
5335
|
def sort(array_of_nodes, order); end
|
5326
5336
|
|
5327
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5337
|
+
# source://rexml//lib/rexml/xpath_parser.rb#452
|
5328
5338
|
def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end
|
5329
5339
|
|
5330
5340
|
# @return [Boolean]
|
5331
5341
|
#
|
5332
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5342
|
+
# source://rexml//lib/rexml/xpath_parser.rb#165
|
5333
5343
|
def strict?; end
|
5334
5344
|
|
5335
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5345
|
+
# source://rexml//lib/rexml/xpath_parser.rb#639
|
5336
5346
|
def trace(*args); end
|
5337
5347
|
|
5338
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5348
|
+
# source://rexml//lib/rexml/xpath_parser.rb#956
|
5339
5349
|
def unnode(nodeset); end
|
5340
5350
|
|
5341
|
-
# source://rexml//lib/rexml/xpath_parser.rb#
|
5351
|
+
# source://rexml//lib/rexml/xpath_parser.rb#883
|
5342
5352
|
def value_type(value); end
|
5343
5353
|
end
|
5344
5354
|
|