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