packwerk 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/packwerk/association_inspector.rb +17 -4
- data/lib/packwerk/checker.rb +3 -3
- data/lib/packwerk/configuration.rb +4 -0
- data/lib/packwerk/const_node_inspector.rb +2 -2
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/offenses_formatter.rb +3 -3
- data/lib/packwerk/package.rb +1 -1
- data/lib/packwerk/package_todo.rb +1 -4
- data/lib/packwerk/parsers/factory.rb +3 -3
- data/lib/packwerk/parsers/ruby.rb +7 -0
- data/lib/packwerk/reference_extractor.rb +29 -1
- data/lib/packwerk/reference_offense.rb +1 -1
- data/lib/packwerk/run_context.rb +15 -4
- data/lib/packwerk/validator.rb +3 -3
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +3280 -3450
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +2322 -1782
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +2654 -3268
- data/sorbet/rbi/gems/ast@2.4.2.rbi +535 -6
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +529 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +4 -4
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +32 -4
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +1750 -1840
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +15 -15
- data/sorbet/rbi/gems/crass@1.0.6.rbi +489 -5
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +24 -21
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +395 -395
- data/sorbet/rbi/gems/json@2.6.2.rbi +70 -77
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +1 -1
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +134 -134
- data/sorbet/rbi/gems/m@1.6.0.rbi +60 -60
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +303 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +22 -28
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +384 -396
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +589 -589
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +37 -32
- data/sorbet/rbi/gems/nokogiri@1.15.3.rbi +962 -946
- data/sorbet/rbi/gems/{parallel@1.22.1.rbi → parallel@1.24.0.rbi} +85 -82
- data/sorbet/rbi/gems/{parser@3.2.2.0.rbi → parser@3.3.1.0.rbi} +1679 -1609
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +1 -1
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.27.0.rbi} +13473 -6472
- data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.7.1.rbi} +42 -33
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +148 -338
- data/sorbet/rbi/gems/rack@2.2.4.rbi +1079 -1130
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +354 -22
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +113 -259
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +642 -638
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +109 -99
- data/sorbet/rbi/gems/rake@13.0.6.rbi +714 -599
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.12.rbi} +865 -801
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +853 -870
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +480 -477
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +1621 -1622
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +507 -526
- data/sorbet/rbi/gems/rubocop-shopify@2.9.0.rbi +1 -1
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +186 -203
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +8126 -8367
- data/sorbet/rbi/gems/{ruby-lsp@0.2.1.rbi → ruby-lsp@0.2.3.rbi} +2 -2
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1235 -4
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +90 -90
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +104 -104
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +1 -1
- data/sorbet/rbi/gems/{tapioca@0.9.2.rbi → tapioca@0.13.3.rbi} +1596 -1253
- data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.3.1.rbi} +1047 -652
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +531 -513
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +13 -13
- data/sorbet/rbi/gems/{yard-sorbet@0.6.1.rbi → yard-sorbet@0.8.1.rbi} +132 -92
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.36.rbi} +3158 -3067
- data/sorbet/rbi/gems/zeitwerk@2.6.4.rbi +149 -145
- metadata +22 -94
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -27
- data/.github/pull_request_template.md +0 -28
- data/.github/workflows/ci.yml +0 -93
- data/.github/workflows/cla.yml +0 -22
- data/.gitignore +0 -13
- data/.rubocop.yml +0 -75
- data/.ruby-version +0 -1
- data/CODEOWNERS +0 -1
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -17
- data/Gemfile +0 -27
- data/Gemfile.lock +0 -206
- data/RESOLVING_VIOLATIONS.md +0 -76
- data/Rakefile +0 -22
- data/TROUBLESHOOT.md +0 -44
- data/UPGRADING.md +0 -66
- data/USAGE.md +0 -364
- data/bin/console +0 -15
- data/bin/m +0 -29
- data/bin/rake +0 -29
- data/bin/rubocop +0 -29
- data/bin/setup +0 -8
- data/bin/srb +0 -29
- data/bin/tapioca +0 -29
- data/dev.yml +0 -32
- data/docs/cohesion.png +0 -0
- data/gemfiles/Gemfile-rails-6-0 +0 -22
- data/gemfiles/Gemfile-rails-6-1 +0 -22
- data/packwerk.gemspec +0 -59
- data/shipit.rubygems.yml +0 -5
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +0 -2754
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +0 -1496
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +0 -2362
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +0 -1569
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +0 -2553
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +0 -5999
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +0 -37832
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +0 -2321
- data/sorbet/rbi/gems/better_html@1.0.16.rbi +0 -317
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1079
- data/sorbet/rbi/gems/digest@3.1.0.rbi +0 -189
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +0 -572
- data/sorbet/rbi/gems/mail@2.7.1.rbi +0 -2490
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +0 -220
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -76
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +0 -170
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +0 -2147
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +0 -926
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +0 -11
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +0 -1108
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -292
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +0 -8
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -2181
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +0 -8
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +0 -142
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2582
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +0 -993
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -71
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# AttlistDecls onto an intuitive Ruby interface, let me know. I'm desperate
|
|
17
17
|
# for anything to make DTDs more palateable.
|
|
18
18
|
#
|
|
19
|
-
# source://rexml
|
|
19
|
+
# source://rexml//lib/rexml/attlistdecl.rb#18
|
|
20
20
|
class REXML::AttlistDecl < ::REXML::Child
|
|
21
21
|
include ::Enumerable
|
|
22
22
|
|
|
@@ -28,24 +28,24 @@ class REXML::AttlistDecl < ::REXML::Child
|
|
|
28
28
|
#
|
|
29
29
|
# @return [AttlistDecl] a new instance of AttlistDecl
|
|
30
30
|
#
|
|
31
|
-
# source://rexml
|
|
31
|
+
# source://rexml//lib/rexml/attlistdecl.rb#29
|
|
32
32
|
def initialize(source); end
|
|
33
33
|
|
|
34
34
|
# Access the attlist attribute/value pairs.
|
|
35
35
|
# value = attlist_decl[ attribute_name ]
|
|
36
36
|
#
|
|
37
|
-
# source://rexml
|
|
37
|
+
# source://rexml//lib/rexml/attlistdecl.rb#38
|
|
38
38
|
def [](key); end
|
|
39
39
|
|
|
40
40
|
# Iterate over the key/value pairs:
|
|
41
41
|
# attlist_decl.each { |attribute_name, attribute_value| ... }
|
|
42
42
|
#
|
|
43
|
-
# source://rexml
|
|
43
|
+
# source://rexml//lib/rexml/attlistdecl.rb#50
|
|
44
44
|
def each(&block); end
|
|
45
45
|
|
|
46
46
|
# What is this? Got me.
|
|
47
47
|
#
|
|
48
|
-
# source://rexml
|
|
48
|
+
# source://rexml//lib/rexml/attlistdecl.rb#22
|
|
49
49
|
def element_name; end
|
|
50
50
|
|
|
51
51
|
# Whether an attlist declaration includes the given attribute definition
|
|
@@ -53,15 +53,15 @@ class REXML::AttlistDecl < ::REXML::Child
|
|
|
53
53
|
#
|
|
54
54
|
# @return [Boolean]
|
|
55
55
|
#
|
|
56
|
-
# source://rexml
|
|
56
|
+
# source://rexml//lib/rexml/attlistdecl.rb#44
|
|
57
57
|
def include?(key); end
|
|
58
58
|
|
|
59
|
-
# source://rexml
|
|
59
|
+
# source://rexml//lib/rexml/attlistdecl.rb#59
|
|
60
60
|
def node_type; end
|
|
61
61
|
|
|
62
62
|
# Write out exactly what we got in.
|
|
63
63
|
#
|
|
64
|
-
# source://rexml
|
|
64
|
+
# source://rexml//lib/rexml/attlistdecl.rb#55
|
|
65
65
|
def write(out, indent = T.unsafe(nil)); end
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -70,7 +70,7 @@ end
|
|
|
70
70
|
# namespaces. General users of REXML will not interact with the
|
|
71
71
|
# Attribute class much.
|
|
72
72
|
#
|
|
73
|
-
# source://rexml
|
|
73
|
+
# source://rexml//lib/rexml/attribute.rb#10
|
|
74
74
|
class REXML::Attribute
|
|
75
75
|
include ::REXML::Node
|
|
76
76
|
include ::REXML::XMLTokens
|
|
@@ -101,26 +101,26 @@ class REXML::Attribute
|
|
|
101
101
|
#
|
|
102
102
|
# @return [Attribute] a new instance of Attribute
|
|
103
103
|
#
|
|
104
|
-
# source://rexml
|
|
104
|
+
# source://rexml//lib/rexml/attribute.rb#45
|
|
105
105
|
def initialize(first, second = T.unsafe(nil), parent = T.unsafe(nil)); end
|
|
106
106
|
|
|
107
107
|
# Returns true if other is an Attribute and has the same name and value,
|
|
108
108
|
# false otherwise.
|
|
109
109
|
#
|
|
110
|
-
# source://rexml
|
|
110
|
+
# source://rexml//lib/rexml/attribute.rb#109
|
|
111
111
|
def ==(other); end
|
|
112
112
|
|
|
113
113
|
# Returns a copy of this attribute
|
|
114
114
|
#
|
|
115
|
-
# source://rexml
|
|
115
|
+
# source://rexml//lib/rexml/attribute.rb#158
|
|
116
116
|
def clone; end
|
|
117
117
|
|
|
118
|
-
# source://rexml
|
|
118
|
+
# source://rexml//lib/rexml/attribute.rb#132
|
|
119
119
|
def doctype; end
|
|
120
120
|
|
|
121
121
|
# The element to which this attribute belongs
|
|
122
122
|
#
|
|
123
|
-
# source://rexml
|
|
123
|
+
# source://rexml//lib/rexml/attribute.rb#15
|
|
124
124
|
def element; end
|
|
125
125
|
|
|
126
126
|
# Sets the element of which this object is an attribute. Normally, this
|
|
@@ -128,15 +128,15 @@ class REXML::Attribute
|
|
|
128
128
|
#
|
|
129
129
|
# Returns this attribute
|
|
130
130
|
#
|
|
131
|
-
# source://rexml
|
|
131
|
+
# source://rexml//lib/rexml/attribute.rb#166
|
|
132
132
|
def element=(element); end
|
|
133
133
|
|
|
134
134
|
# Creates (and returns) a hash from both the name and value
|
|
135
135
|
#
|
|
136
|
-
# source://rexml
|
|
136
|
+
# source://rexml//lib/rexml/attribute.rb#114
|
|
137
137
|
def hash; end
|
|
138
138
|
|
|
139
|
-
# source://rexml
|
|
139
|
+
# source://rexml//lib/rexml/attribute.rb#192
|
|
140
140
|
def inspect; end
|
|
141
141
|
|
|
142
142
|
# Returns the namespace URL, if defined, or nil otherwise
|
|
@@ -161,16 +161,16 @@ class REXML::Attribute
|
|
|
161
161
|
# e.add_attribute("a", "b")
|
|
162
162
|
# e.attribute("a").namespace # => ""
|
|
163
163
|
#
|
|
164
|
-
# source://rexml
|
|
164
|
+
# source://rexml//lib/rexml/attribute.rb#98
|
|
165
165
|
def namespace(arg = T.unsafe(nil)); end
|
|
166
166
|
|
|
167
|
-
# source://rexml
|
|
167
|
+
# source://rexml//lib/rexml/attribute.rb#188
|
|
168
168
|
def node_type; end
|
|
169
169
|
|
|
170
170
|
# The normalized value of this attribute. That is, the attribute with
|
|
171
171
|
# entities intact.
|
|
172
172
|
#
|
|
173
|
-
# source://rexml
|
|
173
|
+
# source://rexml//lib/rexml/attribute.rb#18
|
|
174
174
|
def normalized=(_arg0); end
|
|
175
175
|
|
|
176
176
|
# Returns the namespace of the attribute.
|
|
@@ -183,19 +183,19 @@ class REXML::Attribute
|
|
|
183
183
|
# a = Attribute.new( "x", "y" )
|
|
184
184
|
# a.prefix # -> ""
|
|
185
185
|
#
|
|
186
|
-
# source://rexml
|
|
186
|
+
# source://rexml//lib/rexml/attribute.rb#73
|
|
187
187
|
def prefix; end
|
|
188
188
|
|
|
189
189
|
# Removes this Attribute from the tree, and returns true if successful
|
|
190
190
|
#
|
|
191
191
|
# This method is usually not called directly.
|
|
192
192
|
#
|
|
193
|
-
# source://rexml
|
|
193
|
+
# source://rexml//lib/rexml/attribute.rb#179
|
|
194
194
|
def remove; end
|
|
195
195
|
|
|
196
196
|
# Returns the attribute value, with entities replaced
|
|
197
197
|
#
|
|
198
|
-
# source://rexml
|
|
198
|
+
# source://rexml//lib/rexml/attribute.rb#140
|
|
199
199
|
def to_s; end
|
|
200
200
|
|
|
201
201
|
# Returns this attribute out as XML source, expanding the name
|
|
@@ -205,28 +205,28 @@ class REXML::Attribute
|
|
|
205
205
|
# b = Attribute.new( "ns:x", "y" )
|
|
206
206
|
# b.to_string # -> "ns:x='y'"
|
|
207
207
|
#
|
|
208
|
-
# source://rexml
|
|
208
|
+
# source://rexml//lib/rexml/attribute.rb#124
|
|
209
209
|
def to_string; end
|
|
210
210
|
|
|
211
211
|
# Returns the UNNORMALIZED value of this attribute. That is, entities
|
|
212
212
|
# have been expanded to their values
|
|
213
213
|
#
|
|
214
|
-
# source://rexml
|
|
214
|
+
# source://rexml//lib/rexml/attribute.rb#150
|
|
215
215
|
def value; end
|
|
216
216
|
|
|
217
217
|
# Writes this attribute (EG, puts 'key="value"' to the output)
|
|
218
218
|
#
|
|
219
|
-
# source://rexml
|
|
219
|
+
# source://rexml//lib/rexml/attribute.rb#184
|
|
220
220
|
def write(output, indent = T.unsafe(nil)); end
|
|
221
221
|
|
|
222
|
-
# source://rexml
|
|
222
|
+
# source://rexml//lib/rexml/attribute.rb#198
|
|
223
223
|
def xpath; end
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
# A class that defines the set of Attributes of an Element and provides
|
|
227
227
|
# operations for accessing elements in that set.
|
|
228
228
|
#
|
|
229
|
-
# source://rexml
|
|
229
|
+
# source://rexml//lib/rexml/element.rb#2141
|
|
230
230
|
class REXML::Attributes < ::Hash
|
|
231
231
|
# :call-seq:
|
|
232
232
|
# new(element)
|
|
@@ -247,7 +247,7 @@ class REXML::Attributes < ::Hash
|
|
|
247
247
|
#
|
|
248
248
|
# @return [Attributes] a new instance of Attributes
|
|
249
249
|
#
|
|
250
|
-
# source://rexml
|
|
250
|
+
# source://rexml//lib/rexml/element.rb#2160
|
|
251
251
|
def initialize(element); end
|
|
252
252
|
|
|
253
253
|
# :call-seq:
|
|
@@ -270,7 +270,7 @@ class REXML::Attributes < ::Hash
|
|
|
270
270
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
|
271
271
|
# attrs.include?('baz') # => true
|
|
272
272
|
#
|
|
273
|
-
# source://rexml
|
|
273
|
+
# source://rexml//lib/rexml/element.rb#2537
|
|
274
274
|
def <<(attribute); end
|
|
275
275
|
|
|
276
276
|
# :call-seq:
|
|
@@ -294,7 +294,7 @@ class REXML::Attributes < ::Hash
|
|
|
294
294
|
#
|
|
295
295
|
# Related: get_attribute (returns an \Attribute object).
|
|
296
296
|
#
|
|
297
|
-
# source://rexml
|
|
297
|
+
# source://rexml//lib/rexml/element.rb#2185
|
|
298
298
|
def [](name); end
|
|
299
299
|
|
|
300
300
|
# :call-seq:
|
|
@@ -320,7 +320,7 @@ class REXML::Attributes < ::Hash
|
|
|
320
320
|
# attrs['baz:att'] = nil
|
|
321
321
|
# attrs.include?('baz:att') # => false
|
|
322
322
|
#
|
|
323
|
-
# source://rexml
|
|
323
|
+
# source://rexml//lib/rexml/element.rb#2369
|
|
324
324
|
def []=(name, value); end
|
|
325
325
|
|
|
326
326
|
# :call-seq:
|
|
@@ -343,7 +343,7 @@ class REXML::Attributes < ::Hash
|
|
|
343
343
|
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
|
|
344
344
|
# attrs.include?('baz') # => true
|
|
345
345
|
#
|
|
346
|
-
# source://rexml
|
|
346
|
+
# source://rexml//lib/rexml/element.rb#2537
|
|
347
347
|
def add(attribute); end
|
|
348
348
|
|
|
349
349
|
# :call-seq:
|
|
@@ -374,7 +374,7 @@ class REXML::Attributes < ::Hash
|
|
|
374
374
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele att='<'/>
|
|
375
375
|
# attrs.delete(attr) # => <ele att='<'/> # => <ele/>
|
|
376
376
|
#
|
|
377
|
-
# source://rexml
|
|
377
|
+
# source://rexml//lib/rexml/element.rb#2490
|
|
378
378
|
def delete(attribute); end
|
|
379
379
|
|
|
380
380
|
# :call-seq:
|
|
@@ -393,7 +393,7 @@ class REXML::Attributes < ::Hash
|
|
|
393
393
|
# attrs = ele.attributes
|
|
394
394
|
# attrs.delete_all('att') # => [att='<']
|
|
395
395
|
#
|
|
396
|
-
# source://rexml
|
|
396
|
+
# source://rexml//lib/rexml/element.rb#2559
|
|
397
397
|
def delete_all(name); end
|
|
398
398
|
|
|
399
399
|
# :call-seq:
|
|
@@ -418,7 +418,7 @@ class REXML::Attributes < ::Hash
|
|
|
418
418
|
# ["bar:att", "2"]
|
|
419
419
|
# ["att", "<"]
|
|
420
420
|
#
|
|
421
|
-
# source://rexml
|
|
421
|
+
# source://rexml//lib/rexml/element.rb#2287
|
|
422
422
|
def each; end
|
|
423
423
|
|
|
424
424
|
# :call-seq:
|
|
@@ -443,7 +443,7 @@ class REXML::Attributes < ::Hash
|
|
|
443
443
|
# [REXML::Attribute, bar:att='2']
|
|
444
444
|
# [REXML::Attribute, att='<']
|
|
445
445
|
#
|
|
446
|
-
# source://rexml
|
|
446
|
+
# source://rexml//lib/rexml/element.rb#2254
|
|
447
447
|
def each_attribute; end
|
|
448
448
|
|
|
449
449
|
# :call-seq:
|
|
@@ -465,7 +465,7 @@ class REXML::Attributes < ::Hash
|
|
|
465
465
|
# attrs.get_attribute('att') # => att='<'
|
|
466
466
|
# attrs.get_attribute('nosuch') # => nil
|
|
467
467
|
#
|
|
468
|
-
# source://rexml
|
|
468
|
+
# source://rexml//lib/rexml/element.rb#2313
|
|
469
469
|
def get_attribute(name); end
|
|
470
470
|
|
|
471
471
|
# :call-seq:
|
|
@@ -485,7 +485,7 @@ class REXML::Attributes < ::Hash
|
|
|
485
485
|
# attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
|
|
486
486
|
# attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
|
|
487
487
|
#
|
|
488
|
-
# source://rexml
|
|
488
|
+
# source://rexml//lib/rexml/element.rb#2585
|
|
489
489
|
def get_attribute_ns(namespace, name); end
|
|
490
490
|
|
|
491
491
|
# :call-seq:
|
|
@@ -502,7 +502,7 @@ class REXML::Attributes < ::Hash
|
|
|
502
502
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
|
503
503
|
# ele.attributes.length # => 3
|
|
504
504
|
#
|
|
505
|
-
# source://rexml
|
|
505
|
+
# source://rexml//lib/rexml/element.rb#2225
|
|
506
506
|
def length; end
|
|
507
507
|
|
|
508
508
|
# :call-seq:
|
|
@@ -514,7 +514,7 @@ class REXML::Attributes < ::Hash
|
|
|
514
514
|
# d = REXML::Document.new(xml_string)
|
|
515
515
|
# d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
|
|
516
516
|
#
|
|
517
|
-
# source://rexml
|
|
517
|
+
# source://rexml//lib/rexml/element.rb#2446
|
|
518
518
|
def namespaces; end
|
|
519
519
|
|
|
520
520
|
# :call-seq:
|
|
@@ -528,7 +528,7 @@ class REXML::Attributes < ::Hash
|
|
|
528
528
|
# d = REXML::Document.new(xml_string)
|
|
529
529
|
# d.root.attributes.prefixes # => ["x", "y"]
|
|
530
530
|
#
|
|
531
|
-
# source://rexml
|
|
531
|
+
# source://rexml//lib/rexml/element.rb#2421
|
|
532
532
|
def prefixes; end
|
|
533
533
|
|
|
534
534
|
# :call-seq:
|
|
@@ -545,7 +545,7 @@ class REXML::Attributes < ::Hash
|
|
|
545
545
|
# ele = d.root.elements['//ele'] # => <a foo:att='1' bar:att='2' att='<'/>
|
|
546
546
|
# ele.attributes.length # => 3
|
|
547
547
|
#
|
|
548
|
-
# source://rexml
|
|
548
|
+
# source://rexml//lib/rexml/element.rb#2225
|
|
549
549
|
def size; end
|
|
550
550
|
|
|
551
551
|
# :call-seq:
|
|
@@ -564,11 +564,11 @@ class REXML::Attributes < ::Hash
|
|
|
564
564
|
# attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
|
|
565
565
|
# attrs.first.class # => REXML::Attribute
|
|
566
566
|
#
|
|
567
|
-
# source://rexml
|
|
567
|
+
# source://rexml//lib/rexml/element.rb#2207
|
|
568
568
|
def to_a; end
|
|
569
569
|
end
|
|
570
570
|
|
|
571
|
-
# source://rexml
|
|
571
|
+
# source://rexml//lib/rexml/cdata.rb#5
|
|
572
572
|
class REXML::CData < ::REXML::Text
|
|
573
573
|
# Constructor. CData is data between <![CDATA[ ... ]]>
|
|
574
574
|
#
|
|
@@ -579,7 +579,7 @@ class REXML::CData < ::REXML::Text
|
|
|
579
579
|
#
|
|
580
580
|
# @return [CData] a new instance of CData
|
|
581
581
|
#
|
|
582
|
-
# source://rexml
|
|
582
|
+
# source://rexml//lib/rexml/cdata.rb#16
|
|
583
583
|
def initialize(first, whitespace = T.unsafe(nil), parent = T.unsafe(nil)); end
|
|
584
584
|
|
|
585
585
|
# Make a copy of this object
|
|
@@ -589,7 +589,7 @@ class REXML::CData < ::REXML::Text
|
|
|
589
589
|
# d = c.clone
|
|
590
590
|
# d.to_s # -> "Some text"
|
|
591
591
|
#
|
|
592
|
-
# source://rexml
|
|
592
|
+
# source://rexml//lib/rexml/cdata.rb#26
|
|
593
593
|
def clone; end
|
|
594
594
|
|
|
595
595
|
# Returns the content of this CData object
|
|
@@ -598,10 +598,10 @@ class REXML::CData < ::REXML::Text
|
|
|
598
598
|
# c = CData.new( "Some text" )
|
|
599
599
|
# c.to_s # -> "Some text"
|
|
600
600
|
#
|
|
601
|
-
# source://rexml
|
|
601
|
+
# source://rexml//lib/rexml/cdata.rb#35
|
|
602
602
|
def to_s; end
|
|
603
603
|
|
|
604
|
-
# source://rexml
|
|
604
|
+
# source://rexml//lib/rexml/cdata.rb#39
|
|
605
605
|
def value; end
|
|
606
606
|
|
|
607
607
|
# == DEPRECATED
|
|
@@ -622,7 +622,7 @@ class REXML::CData < ::REXML::Text
|
|
|
622
622
|
# c = CData.new( " Some text " )
|
|
623
623
|
# c.write( $stdout ) #-> <![CDATA[ Some text ]]>
|
|
624
624
|
#
|
|
625
|
-
# source://rexml
|
|
625
|
+
# source://rexml//lib/rexml/cdata.rb#60
|
|
626
626
|
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
627
627
|
end
|
|
628
628
|
|
|
@@ -630,7 +630,7 @@ end
|
|
|
630
630
|
# contains methods to support that. Most user code will not use this
|
|
631
631
|
# class directly.
|
|
632
632
|
#
|
|
633
|
-
# source://rexml
|
|
633
|
+
# source://rexml//lib/rexml/child.rb#9
|
|
634
634
|
class REXML::Child
|
|
635
635
|
include ::REXML::Node
|
|
636
636
|
|
|
@@ -642,21 +642,21 @@ class REXML::Child
|
|
|
642
642
|
#
|
|
643
643
|
# @return [Child] a new instance of Child
|
|
644
644
|
#
|
|
645
|
-
# source://rexml
|
|
645
|
+
# source://rexml//lib/rexml/child.rb#18
|
|
646
646
|
def initialize(parent = T.unsafe(nil)); end
|
|
647
647
|
|
|
648
648
|
# This doesn't yet handle encodings
|
|
649
649
|
#
|
|
650
|
-
# source://rexml
|
|
650
|
+
# source://rexml//lib/rexml/child.rb#91
|
|
651
651
|
def bytes; end
|
|
652
652
|
|
|
653
653
|
# Returns:: the document this child belongs to, or nil if this child
|
|
654
654
|
# belongs to no document
|
|
655
655
|
#
|
|
656
|
-
# source://rexml
|
|
656
|
+
# source://rexml//lib/rexml/child.rb#85
|
|
657
657
|
def document; end
|
|
658
658
|
|
|
659
|
-
# source://rexml
|
|
659
|
+
# source://rexml//lib/rexml/node.rb#11
|
|
660
660
|
def next_sibling; end
|
|
661
661
|
|
|
662
662
|
# Sets the next sibling of this child. This can be used to insert a child
|
|
@@ -667,12 +667,12 @@ class REXML::Child
|
|
|
667
667
|
# b.next_sibling = c
|
|
668
668
|
# # => <a><b/><c/></a>
|
|
669
669
|
#
|
|
670
|
-
# source://rexml
|
|
670
|
+
# source://rexml//lib/rexml/child.rb#68
|
|
671
671
|
def next_sibling=(other); end
|
|
672
672
|
|
|
673
673
|
# The Parent of this object
|
|
674
674
|
#
|
|
675
|
-
# source://rexml
|
|
675
|
+
# source://rexml//lib/rexml/child.rb#11
|
|
676
676
|
def parent; end
|
|
677
677
|
|
|
678
678
|
# Sets the parent of this child to the supplied argument.
|
|
@@ -684,10 +684,10 @@ class REXML::Child
|
|
|
684
684
|
# to the new parent.
|
|
685
685
|
# Returns:: The parent added
|
|
686
686
|
#
|
|
687
|
-
# source://rexml
|
|
687
|
+
# source://rexml//lib/rexml/child.rb#52
|
|
688
688
|
def parent=(other); end
|
|
689
689
|
|
|
690
|
-
# source://rexml
|
|
690
|
+
# source://rexml//lib/rexml/node.rb#17
|
|
691
691
|
def previous_sibling; end
|
|
692
692
|
|
|
693
693
|
# Sets the previous sibling of this child. This can be used to insert a
|
|
@@ -698,14 +698,14 @@ class REXML::Child
|
|
|
698
698
|
# b.previous_sibling = c
|
|
699
699
|
# # => <a><b/><c/></a>
|
|
700
700
|
#
|
|
701
|
-
# source://rexml
|
|
701
|
+
# source://rexml//lib/rexml/child.rb#79
|
|
702
702
|
def previous_sibling=(other); end
|
|
703
703
|
|
|
704
704
|
# Removes this child from the parent.
|
|
705
705
|
#
|
|
706
706
|
# Returns:: self
|
|
707
707
|
#
|
|
708
|
-
# source://rexml
|
|
708
|
+
# source://rexml//lib/rexml/child.rb#37
|
|
709
709
|
def remove; end
|
|
710
710
|
|
|
711
711
|
# Replaces this object with another object. Basically, calls
|
|
@@ -713,13 +713,13 @@ class REXML::Child
|
|
|
713
713
|
#
|
|
714
714
|
# Returns:: self
|
|
715
715
|
#
|
|
716
|
-
# source://rexml
|
|
716
|
+
# source://rexml//lib/rexml/child.rb#29
|
|
717
717
|
def replace_with(child); end
|
|
718
718
|
end
|
|
719
719
|
|
|
720
720
|
# Represents an XML comment; that is, text between \<!-- ... -->
|
|
721
721
|
#
|
|
722
|
-
# source://rexml
|
|
722
|
+
# source://rexml//lib/rexml/comment.rb#7
|
|
723
723
|
class REXML::Comment < ::REXML::Child
|
|
724
724
|
include ::Comparable
|
|
725
725
|
|
|
@@ -733,40 +733,40 @@ class REXML::Comment < ::REXML::Child
|
|
|
733
733
|
# @param second If the first argument is a Source, this argument
|
|
734
734
|
# @return [Comment] a new instance of Comment
|
|
735
735
|
#
|
|
736
|
-
# source://rexml
|
|
736
|
+
# source://rexml//lib/rexml/comment.rb#24
|
|
737
737
|
def initialize(first, second = T.unsafe(nil)); end
|
|
738
738
|
|
|
739
739
|
# Compares this Comment to another; the contents of the comment are used
|
|
740
740
|
# in the comparison.
|
|
741
741
|
#
|
|
742
|
-
# source://rexml
|
|
742
|
+
# source://rexml//lib/rexml/comment.rb#63
|
|
743
743
|
def <=>(other); end
|
|
744
744
|
|
|
745
745
|
# Compares this Comment to another; the contents of the comment are used
|
|
746
746
|
# in the comparison.
|
|
747
747
|
#
|
|
748
|
-
# source://rexml
|
|
748
|
+
# source://rexml//lib/rexml/comment.rb#70
|
|
749
749
|
def ==(other); end
|
|
750
750
|
|
|
751
|
-
# source://rexml
|
|
751
|
+
# source://rexml//lib/rexml/comment.rb#33
|
|
752
752
|
def clone; end
|
|
753
753
|
|
|
754
|
-
# source://rexml
|
|
754
|
+
# source://rexml//lib/rexml/comment.rb#75
|
|
755
755
|
def node_type; end
|
|
756
756
|
|
|
757
757
|
# The content text
|
|
758
758
|
#
|
|
759
|
-
# source://rexml
|
|
759
|
+
# source://rexml//lib/rexml/comment.rb#14
|
|
760
760
|
def string; end
|
|
761
761
|
|
|
762
762
|
# The content text
|
|
763
763
|
#
|
|
764
|
-
# source://rexml
|
|
764
|
+
# source://rexml//lib/rexml/comment.rb#14
|
|
765
765
|
def string=(_arg0); end
|
|
766
766
|
|
|
767
767
|
# The content text
|
|
768
768
|
#
|
|
769
|
-
# source://rexml
|
|
769
|
+
# source://rexml//lib/rexml/comment.rb#14
|
|
770
770
|
def to_s; end
|
|
771
771
|
|
|
772
772
|
# == DEPRECATED
|
|
@@ -783,30 +783,30 @@ class REXML::Comment < ::REXML::Child
|
|
|
783
783
|
# ie_hack::
|
|
784
784
|
# Needed for conformity to the child API, but not used by this class.
|
|
785
785
|
#
|
|
786
|
-
# source://rexml
|
|
786
|
+
# source://rexml//lib/rexml/comment.rb#50
|
|
787
787
|
def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
788
788
|
end
|
|
789
789
|
|
|
790
|
-
# source://rexml
|
|
790
|
+
# source://rexml//lib/rexml/xpath_parser.rb#11
|
|
791
791
|
module REXML::DClonable; end
|
|
792
792
|
|
|
793
793
|
# This is an abstract class. You never use this directly; it serves as a
|
|
794
794
|
# parent class for the specific declarations.
|
|
795
795
|
#
|
|
796
|
-
# source://rexml
|
|
796
|
+
# source://rexml//lib/rexml/doctype.rb#242
|
|
797
797
|
class REXML::Declaration < ::REXML::Child
|
|
798
798
|
# @return [Declaration] a new instance of Declaration
|
|
799
799
|
#
|
|
800
|
-
# source://rexml
|
|
800
|
+
# source://rexml//lib/rexml/doctype.rb#243
|
|
801
801
|
def initialize(src); end
|
|
802
802
|
|
|
803
|
-
# source://rexml
|
|
803
|
+
# source://rexml//lib/rexml/doctype.rb#248
|
|
804
804
|
def to_s; end
|
|
805
805
|
|
|
806
806
|
# == DEPRECATED
|
|
807
807
|
# See REXML::Formatters
|
|
808
808
|
#
|
|
809
|
-
# source://rexml
|
|
809
|
+
# source://rexml//lib/rexml/doctype.rb#255
|
|
810
810
|
def write(output, indent); end
|
|
811
811
|
end
|
|
812
812
|
|
|
@@ -814,7 +814,7 @@ end
|
|
|
814
814
|
# ... >. DOCTYPES can be used to declare the DTD of a document, as well as
|
|
815
815
|
# being used to declare entities used in the document.
|
|
816
816
|
#
|
|
817
|
-
# source://rexml
|
|
817
|
+
# source://rexml//lib/rexml/doctype.rb#51
|
|
818
818
|
class REXML::DocType < ::REXML::Parent
|
|
819
819
|
include ::REXML::XMLTokens
|
|
820
820
|
|
|
@@ -833,52 +833,52 @@ class REXML::DocType < ::REXML::Parent
|
|
|
833
833
|
#
|
|
834
834
|
# @return [DocType] a new instance of DocType
|
|
835
835
|
#
|
|
836
|
-
# source://rexml
|
|
836
|
+
# source://rexml//lib/rexml/doctype.rb#80
|
|
837
837
|
def initialize(first, parent = T.unsafe(nil)); end
|
|
838
838
|
|
|
839
|
-
# source://rexml
|
|
839
|
+
# source://rexml//lib/rexml/doctype.rb#185
|
|
840
840
|
def add(child); end
|
|
841
841
|
|
|
842
|
-
# source://rexml
|
|
842
|
+
# source://rexml//lib/rexml/doctype.rb#125
|
|
843
843
|
def attribute_of(element, attribute); end
|
|
844
844
|
|
|
845
|
-
# source://rexml
|
|
845
|
+
# source://rexml//lib/rexml/doctype.rb#115
|
|
846
846
|
def attributes_of(element); end
|
|
847
847
|
|
|
848
|
-
# source://rexml
|
|
848
|
+
# source://rexml//lib/rexml/doctype.rb#135
|
|
849
849
|
def clone; end
|
|
850
850
|
|
|
851
|
-
# source://rexml
|
|
851
|
+
# source://rexml//lib/rexml/doctype.rb#173
|
|
852
852
|
def context; end
|
|
853
853
|
|
|
854
854
|
# name is the name of the doctype
|
|
855
855
|
# external_id is the referenced DTD, if given
|
|
856
856
|
#
|
|
857
|
-
# source://rexml
|
|
857
|
+
# source://rexml//lib/rexml/doctype.rb#66
|
|
858
858
|
def entities; end
|
|
859
859
|
|
|
860
|
-
# source://rexml
|
|
860
|
+
# source://rexml//lib/rexml/doctype.rb#181
|
|
861
861
|
def entity(name); end
|
|
862
862
|
|
|
863
863
|
# name is the name of the doctype
|
|
864
864
|
# external_id is the referenced DTD, if given
|
|
865
865
|
#
|
|
866
|
-
# source://rexml
|
|
866
|
+
# source://rexml//lib/rexml/doctype.rb#66
|
|
867
867
|
def external_id; end
|
|
868
868
|
|
|
869
869
|
# name is the name of the doctype
|
|
870
870
|
# external_id is the referenced DTD, if given
|
|
871
871
|
#
|
|
872
|
-
# source://rexml
|
|
872
|
+
# source://rexml//lib/rexml/doctype.rb#66
|
|
873
873
|
def name; end
|
|
874
874
|
|
|
875
875
|
# name is the name of the doctype
|
|
876
876
|
# external_id is the referenced DTD, if given
|
|
877
877
|
#
|
|
878
|
-
# source://rexml
|
|
878
|
+
# source://rexml//lib/rexml/doctype.rb#66
|
|
879
879
|
def namespaces; end
|
|
880
880
|
|
|
881
|
-
# source://rexml
|
|
881
|
+
# source://rexml//lib/rexml/doctype.rb#111
|
|
882
882
|
def node_type; end
|
|
883
883
|
|
|
884
884
|
# Retrieves a named notation. Only notations declared in the internal
|
|
@@ -886,7 +886,7 @@ class REXML::DocType < ::REXML::Parent
|
|
|
886
886
|
#
|
|
887
887
|
# Method contributed by Henrik Martensson
|
|
888
888
|
#
|
|
889
|
-
# source://rexml
|
|
889
|
+
# source://rexml//lib/rexml/doctype.rb#229
|
|
890
890
|
def notation(name); end
|
|
891
891
|
|
|
892
892
|
# This method returns a list of notations that have been declared in the
|
|
@@ -895,7 +895,7 @@ class REXML::DocType < ::REXML::Parent
|
|
|
895
895
|
#
|
|
896
896
|
# Method contributed by Henrik Martensson
|
|
897
897
|
#
|
|
898
|
-
# source://rexml
|
|
898
|
+
# source://rexml//lib/rexml/doctype.rb#221
|
|
899
899
|
def notations; end
|
|
900
900
|
|
|
901
901
|
# This method retrieves the public identifier identifying the document's
|
|
@@ -903,14 +903,14 @@ class REXML::DocType < ::REXML::Parent
|
|
|
903
903
|
#
|
|
904
904
|
# Method contributed by Henrik Martensson
|
|
905
905
|
#
|
|
906
|
-
# source://rexml
|
|
906
|
+
# source://rexml//lib/rexml/doctype.rb#195
|
|
907
907
|
def public; end
|
|
908
908
|
|
|
909
909
|
# This method retrieves the system identifier identifying the document's DTD
|
|
910
910
|
#
|
|
911
911
|
# Method contributed by Henrik Martensson
|
|
912
912
|
#
|
|
913
|
-
# source://rexml
|
|
913
|
+
# source://rexml//lib/rexml/doctype.rb#207
|
|
914
914
|
def system; end
|
|
915
915
|
|
|
916
916
|
# output::
|
|
@@ -924,7 +924,7 @@ class REXML::DocType < ::REXML::Parent
|
|
|
924
924
|
# ie_hack::
|
|
925
925
|
# Ignored
|
|
926
926
|
#
|
|
927
|
-
# source://rexml
|
|
927
|
+
# source://rexml//lib/rexml/doctype.rb#149
|
|
928
928
|
def write(output, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
929
929
|
end
|
|
930
930
|
|
|
@@ -946,7 +946,7 @@ end
|
|
|
946
946
|
# and in particular, the
|
|
947
947
|
# {tasks page for documents}[../doc/rexml/tasks/tocs/document_toc_rdoc.html].
|
|
948
948
|
#
|
|
949
|
-
# source://rexml
|
|
949
|
+
# source://rexml//lib/rexml/document.rb#35
|
|
950
950
|
class REXML::Document < ::REXML::Element
|
|
951
951
|
# :call-seq:
|
|
952
952
|
# new(string = nil, context = {}) -> new_document
|
|
@@ -1000,7 +1000,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1000
1000
|
#
|
|
1001
1001
|
# @return [Document] a new instance of Document
|
|
1002
1002
|
#
|
|
1003
|
-
# source://rexml
|
|
1003
|
+
# source://rexml//lib/rexml/document.rb#92
|
|
1004
1004
|
def initialize(source = T.unsafe(nil), context = T.unsafe(nil)); end
|
|
1005
1005
|
|
|
1006
1006
|
# :call-seq:
|
|
@@ -1037,7 +1037,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1037
1037
|
# d.add(REXML::Element.new('foo'))
|
|
1038
1038
|
# d.to_s # => "<foo/>"
|
|
1039
1039
|
#
|
|
1040
|
-
# source://rexml
|
|
1040
|
+
# source://rexml//lib/rexml/document.rb#170
|
|
1041
1041
|
def <<(child); end
|
|
1042
1042
|
|
|
1043
1043
|
# :call-seq:
|
|
@@ -1074,7 +1074,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1074
1074
|
# d.add(REXML::Element.new('foo'))
|
|
1075
1075
|
# d.to_s # => "<foo/>"
|
|
1076
1076
|
#
|
|
1077
|
-
# source://rexml
|
|
1077
|
+
# source://rexml//lib/rexml/document.rb#170
|
|
1078
1078
|
def add(child); end
|
|
1079
1079
|
|
|
1080
1080
|
# :call-seq:
|
|
@@ -1084,7 +1084,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1084
1084
|
#
|
|
1085
1085
|
# REXML::Element.add_element(name_or_element, attributes)
|
|
1086
1086
|
#
|
|
1087
|
-
# source://rexml
|
|
1087
|
+
# source://rexml//lib/rexml/document.rb#209
|
|
1088
1088
|
def add_element(arg = T.unsafe(nil), arg2 = T.unsafe(nil)); end
|
|
1089
1089
|
|
|
1090
1090
|
# :call-seq:
|
|
@@ -1093,7 +1093,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1093
1093
|
# Returns the new document resulting from executing
|
|
1094
1094
|
# <tt>Document.new(self)</tt>. See Document.new.
|
|
1095
1095
|
#
|
|
1096
|
-
# source://rexml
|
|
1096
|
+
# source://rexml//lib/rexml/document.rb#120
|
|
1097
1097
|
def clone; end
|
|
1098
1098
|
|
|
1099
1099
|
# :call-seq:
|
|
@@ -1106,10 +1106,10 @@ class REXML::Document < ::REXML::Element
|
|
|
1106
1106
|
# d = REXML::Document.new('')
|
|
1107
1107
|
# d.doctype.class # => nil
|
|
1108
1108
|
#
|
|
1109
|
-
# source://rexml
|
|
1109
|
+
# source://rexml//lib/rexml/document.rb#241
|
|
1110
1110
|
def doctype; end
|
|
1111
1111
|
|
|
1112
|
-
# source://rexml
|
|
1112
|
+
# source://rexml//lib/rexml/document.rb#442
|
|
1113
1113
|
def document; end
|
|
1114
1114
|
|
|
1115
1115
|
# :call-seq:
|
|
@@ -1122,12 +1122,12 @@ class REXML::Document < ::REXML::Element
|
|
|
1122
1122
|
# d = REXML::Document.new('')
|
|
1123
1123
|
# d.encoding # => "UTF-8"
|
|
1124
1124
|
#
|
|
1125
|
-
# source://rexml
|
|
1125
|
+
# source://rexml//lib/rexml/document.rb#290
|
|
1126
1126
|
def encoding; end
|
|
1127
1127
|
|
|
1128
1128
|
# Returns the value of attribute entity_expansion_count.
|
|
1129
1129
|
#
|
|
1130
|
-
# source://rexml
|
|
1130
|
+
# source://rexml//lib/rexml/document.rb#433
|
|
1131
1131
|
def entity_expansion_count; end
|
|
1132
1132
|
|
|
1133
1133
|
# :call-seq:
|
|
@@ -1135,7 +1135,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1135
1135
|
#
|
|
1136
1136
|
# Returns an empty string.
|
|
1137
1137
|
#
|
|
1138
|
-
# source://rexml
|
|
1138
|
+
# source://rexml//lib/rexml/document.rb#129
|
|
1139
1139
|
def expanded_name; end
|
|
1140
1140
|
|
|
1141
1141
|
# :call-seq:
|
|
@@ -1145,7 +1145,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1145
1145
|
# d = doc_type
|
|
1146
1146
|
# d ? d.name : "UNDEFINED"
|
|
1147
1147
|
#
|
|
1148
|
-
# source://rexml
|
|
1148
|
+
# source://rexml//lib/rexml/document.rb#129
|
|
1149
1149
|
def name; end
|
|
1150
1150
|
|
|
1151
1151
|
# :call-seq:
|
|
@@ -1153,10 +1153,10 @@ class REXML::Document < ::REXML::Element
|
|
|
1153
1153
|
#
|
|
1154
1154
|
# Returns the symbol +:document+.
|
|
1155
1155
|
#
|
|
1156
|
-
# source://rexml
|
|
1156
|
+
# source://rexml//lib/rexml/document.rb#110
|
|
1157
1157
|
def node_type; end
|
|
1158
1158
|
|
|
1159
|
-
# source://rexml
|
|
1159
|
+
# source://rexml//lib/rexml/document.rb#435
|
|
1160
1160
|
def record_entity_expansion; end
|
|
1161
1161
|
|
|
1162
1162
|
# :call-seq:
|
|
@@ -1169,7 +1169,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1169
1169
|
# d = REXML::Document.new('')
|
|
1170
1170
|
# d.root # => nil
|
|
1171
1171
|
#
|
|
1172
|
-
# source://rexml
|
|
1172
|
+
# source://rexml//lib/rexml/document.rb#225
|
|
1173
1173
|
def root; end
|
|
1174
1174
|
|
|
1175
1175
|
# :call-seq:
|
|
@@ -1185,7 +1185,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1185
1185
|
#
|
|
1186
1186
|
# @return [Boolean]
|
|
1187
1187
|
#
|
|
1188
|
-
# source://rexml
|
|
1188
|
+
# source://rexml//lib/rexml/document.rb#305
|
|
1189
1189
|
def stand_alone?; end
|
|
1190
1190
|
|
|
1191
1191
|
# :call-seq:
|
|
@@ -1199,7 +1199,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1199
1199
|
# d = REXML::Document.new('')
|
|
1200
1200
|
# d.version # => "1.0"
|
|
1201
1201
|
#
|
|
1202
|
-
# source://rexml
|
|
1202
|
+
# source://rexml//lib/rexml/document.rb#275
|
|
1203
1203
|
def version; end
|
|
1204
1204
|
|
|
1205
1205
|
# :call-seq:
|
|
@@ -1258,7 +1258,7 @@ class REXML::Document < ::REXML::Element
|
|
|
1258
1258
|
# instead of encoding in XML declaration.
|
|
1259
1259
|
# Defaults to nil. It means encoding in XML declaration is used.
|
|
1260
1260
|
#
|
|
1261
|
-
# source://rexml
|
|
1261
|
+
# source://rexml//lib/rexml/document.rb#365
|
|
1262
1262
|
def write(*arguments); end
|
|
1263
1263
|
|
|
1264
1264
|
# :call-seq:
|
|
@@ -1274,12 +1274,12 @@ class REXML::Document < ::REXML::Element
|
|
|
1274
1274
|
# d.xml_decl.class # => REXML::XMLDecl
|
|
1275
1275
|
# d.xml_decl.to_s # => ""
|
|
1276
1276
|
#
|
|
1277
|
-
# source://rexml
|
|
1277
|
+
# source://rexml//lib/rexml/document.rb#258
|
|
1278
1278
|
def xml_decl; end
|
|
1279
1279
|
|
|
1280
1280
|
private
|
|
1281
1281
|
|
|
1282
|
-
# source://rexml
|
|
1282
|
+
# source://rexml//lib/rexml/document.rb#447
|
|
1283
1283
|
def build(source); end
|
|
1284
1284
|
|
|
1285
1285
|
class << self
|
|
@@ -1287,31 +1287,31 @@ class REXML::Document < ::REXML::Element
|
|
|
1287
1287
|
#
|
|
1288
1288
|
# Deprecated. Use REXML::Security.entity_expansion_limit= instead.
|
|
1289
1289
|
#
|
|
1290
|
-
# source://rexml
|
|
1290
|
+
# source://rexml//lib/rexml/document.rb#415
|
|
1291
1291
|
def entity_expansion_limit; end
|
|
1292
1292
|
|
|
1293
1293
|
# Set the entity expansion limit. By default the limit is set to 10000.
|
|
1294
1294
|
#
|
|
1295
1295
|
# Deprecated. Use REXML::Security.entity_expansion_limit= instead.
|
|
1296
1296
|
#
|
|
1297
|
-
# source://rexml
|
|
1297
|
+
# source://rexml//lib/rexml/document.rb#408
|
|
1298
1298
|
def entity_expansion_limit=(val); end
|
|
1299
1299
|
|
|
1300
1300
|
# Get the entity expansion limit. By default the limit is set to 10240.
|
|
1301
1301
|
#
|
|
1302
1302
|
# Deprecated. Use REXML::Security.entity_expansion_text_limit instead.
|
|
1303
1303
|
#
|
|
1304
|
-
# source://rexml
|
|
1304
|
+
# source://rexml//lib/rexml/document.rb#429
|
|
1305
1305
|
def entity_expansion_text_limit; end
|
|
1306
1306
|
|
|
1307
1307
|
# Set the entity expansion limit. By default the limit is set to 10240.
|
|
1308
1308
|
#
|
|
1309
1309
|
# Deprecated. Use REXML::Security.entity_expansion_text_limit= instead.
|
|
1310
1310
|
#
|
|
1311
|
-
# source://rexml
|
|
1311
|
+
# source://rexml//lib/rexml/document.rb#422
|
|
1312
1312
|
def entity_expansion_text_limit=(val); end
|
|
1313
1313
|
|
|
1314
|
-
# source://rexml
|
|
1314
|
+
# source://rexml//lib/rexml/document.rb#401
|
|
1315
1315
|
def parse_stream(source, listener); end
|
|
1316
1316
|
end
|
|
1317
1317
|
end
|
|
@@ -1577,7 +1577,7 @@ end
|
|
|
1577
1577
|
# #attributes:: Returns the REXML::Attributes object for the element.
|
|
1578
1578
|
# #context:: Returns or sets the context hash for the element.
|
|
1579
1579
|
#
|
|
1580
|
-
# source://rexml
|
|
1580
|
+
# source://rexml//lib/rexml/element.rb#279
|
|
1581
1581
|
class REXML::Element < ::REXML::Parent
|
|
1582
1582
|
include ::REXML::XMLTokens
|
|
1583
1583
|
include ::REXML::Namespace
|
|
@@ -1620,7 +1620,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1620
1620
|
#
|
|
1621
1621
|
# @return [Element] a new instance of Element
|
|
1622
1622
|
#
|
|
1623
|
-
# source://rexml
|
|
1623
|
+
# source://rexml//lib/rexml/element.rb#327
|
|
1624
1624
|
def initialize(arg = T.unsafe(nil), parent = T.unsafe(nil), context = T.unsafe(nil)); end
|
|
1625
1625
|
|
|
1626
1626
|
# :call-seq:
|
|
@@ -1662,7 +1662,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1662
1662
|
# root[:attr] # => "value"
|
|
1663
1663
|
# root[:nosuch] # => nil
|
|
1664
1664
|
#
|
|
1665
|
-
# source://rexml
|
|
1665
|
+
# source://rexml//lib/rexml/element.rb#1245
|
|
1666
1666
|
def [](name_or_index); end
|
|
1667
1667
|
|
|
1668
1668
|
# :call-seq:
|
|
@@ -1691,7 +1691,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1691
1691
|
# e.add_attribute(a) # => attr='VALUE'
|
|
1692
1692
|
# e['attr'] # => "VALUE"
|
|
1693
1693
|
#
|
|
1694
|
-
# source://rexml
|
|
1694
|
+
# source://rexml//lib/rexml/element.rb#1349
|
|
1695
1695
|
def add_attribute(key, value = T.unsafe(nil)); end
|
|
1696
1696
|
|
|
1697
1697
|
# :call-seq:
|
|
@@ -1717,7 +1717,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1717
1717
|
# a = [['foo' => 'bar'], ['baz' => 'bat']]
|
|
1718
1718
|
# e.add_attributes(a)
|
|
1719
1719
|
#
|
|
1720
|
-
# source://rexml
|
|
1720
|
+
# source://rexml//lib/rexml/element.rb#1380
|
|
1721
1721
|
def add_attributes(hash); end
|
|
1722
1722
|
|
|
1723
1723
|
# :call-seq:
|
|
@@ -1754,7 +1754,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1754
1754
|
# e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
|
|
1755
1755
|
# e0[1] # => <bar bat='0' bam='1'/>
|
|
1756
1756
|
#
|
|
1757
|
-
# source://rexml
|
|
1757
|
+
# source://rexml//lib/rexml/element.rb#731
|
|
1758
1758
|
def add_element(element, attrs = T.unsafe(nil)); end
|
|
1759
1759
|
|
|
1760
1760
|
# :call-seq:
|
|
@@ -1775,7 +1775,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1775
1775
|
# e.add_namespace('baz', 'bat')
|
|
1776
1776
|
# e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
|
|
1777
1777
|
#
|
|
1778
|
-
# source://rexml
|
|
1778
|
+
# source://rexml//lib/rexml/element.rb#654
|
|
1779
1779
|
def add_namespace(prefix, uri = T.unsafe(nil)); end
|
|
1780
1780
|
|
|
1781
1781
|
# :call-seq:
|
|
@@ -1817,7 +1817,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1817
1817
|
# a.add_text(REXML::Text.new('baz'))
|
|
1818
1818
|
# a.to_a # => ["foo", <b/>, "bar", "baz", "baz"]
|
|
1819
1819
|
#
|
|
1820
|
-
# source://rexml
|
|
1820
|
+
# source://rexml//lib/rexml/element.rb#1146
|
|
1821
1821
|
def add_text(text); end
|
|
1822
1822
|
|
|
1823
1823
|
# :call-seq:
|
|
@@ -1849,13 +1849,13 @@ class REXML::Element < ::REXML::Parent
|
|
|
1849
1849
|
# document.root.attribute("x") # => x='x'
|
|
1850
1850
|
# document.root.attribute("x", "a") # => a:x='a:x'
|
|
1851
1851
|
#
|
|
1852
|
-
# source://rexml
|
|
1852
|
+
# source://rexml//lib/rexml/element.rb#1286
|
|
1853
1853
|
def attribute(name, namespace = T.unsafe(nil)); end
|
|
1854
1854
|
|
|
1855
1855
|
# Mechanisms for accessing attributes and child elements of this
|
|
1856
1856
|
# element.
|
|
1857
1857
|
#
|
|
1858
|
-
# source://rexml
|
|
1858
|
+
# source://rexml//lib/rexml/element.rb#286
|
|
1859
1859
|
def attributes; end
|
|
1860
1860
|
|
|
1861
1861
|
# :call-seq:
|
|
@@ -1874,7 +1874,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1874
1874
|
# cds.frozen? # => true
|
|
1875
1875
|
# cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
|
|
1876
1876
|
#
|
|
1877
|
-
# source://rexml
|
|
1877
|
+
# source://rexml//lib/rexml/element.rb#1424
|
|
1878
1878
|
def cdatas; end
|
|
1879
1879
|
|
|
1880
1880
|
# :call-seq:
|
|
@@ -1887,7 +1887,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1887
1887
|
# e.add_attributes({'bar' => 0, 'baz' => 1})
|
|
1888
1888
|
# e.clone # => <foo bar='0' baz='1'/>
|
|
1889
1889
|
#
|
|
1890
|
-
# source://rexml
|
|
1890
|
+
# source://rexml//lib/rexml/element.rb#391
|
|
1891
1891
|
def clone; end
|
|
1892
1892
|
|
|
1893
1893
|
# :call-seq:
|
|
@@ -1907,19 +1907,19 @@ class REXML::Element < ::REXML::Parent
|
|
|
1907
1907
|
# cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
|
|
1908
1908
|
# cs.map {|c| c.to_s } # => ["foo", "bar"]
|
|
1909
1909
|
#
|
|
1910
|
-
# source://rexml
|
|
1910
|
+
# source://rexml//lib/rexml/element.rb#1445
|
|
1911
1911
|
def comments; end
|
|
1912
1912
|
|
|
1913
1913
|
# The context holds information about the processing environment, such as
|
|
1914
1914
|
# whitespace handling.
|
|
1915
1915
|
#
|
|
1916
|
-
# source://rexml
|
|
1916
|
+
# source://rexml//lib/rexml/element.rb#289
|
|
1917
1917
|
def context; end
|
|
1918
1918
|
|
|
1919
1919
|
# The context holds information about the processing environment, such as
|
|
1920
1920
|
# whitespace handling.
|
|
1921
1921
|
#
|
|
1922
|
-
# source://rexml
|
|
1922
|
+
# source://rexml//lib/rexml/element.rb#289
|
|
1923
1923
|
def context=(_arg0); end
|
|
1924
1924
|
|
|
1925
1925
|
# :call-seq:
|
|
@@ -1933,7 +1933,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1933
1933
|
# e.delete_attribute('bar') # => <bar/>
|
|
1934
1934
|
# e.delete_attribute('bar') # => nil
|
|
1935
1935
|
#
|
|
1936
|
-
# source://rexml
|
|
1936
|
+
# source://rexml//lib/rexml/element.rb#1399
|
|
1937
1937
|
def delete_attribute(key); end
|
|
1938
1938
|
|
|
1939
1939
|
# :call-seq:
|
|
@@ -1973,7 +1973,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1973
1973
|
# a.delete_element('//c') # => <c/>
|
|
1974
1974
|
# a.delete_element('//c') # => nil
|
|
1975
1975
|
#
|
|
1976
|
-
# source://rexml
|
|
1976
|
+
# source://rexml//lib/rexml/element.rb#777
|
|
1977
1977
|
def delete_element(element); end
|
|
1978
1978
|
|
|
1979
1979
|
# :call-seq:
|
|
@@ -1998,7 +1998,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
1998
1998
|
# d.root.delete_namespace('nosuch')
|
|
1999
1999
|
# d.to_s # => "<a/>"
|
|
2000
2000
|
#
|
|
2001
|
-
# source://rexml
|
|
2001
|
+
# source://rexml//lib/rexml/element.rb#686
|
|
2002
2002
|
def delete_namespace(namespace = T.unsafe(nil)); end
|
|
2003
2003
|
|
|
2004
2004
|
# :call-seq:
|
|
@@ -2022,7 +2022,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2022
2022
|
#
|
|
2023
2023
|
# Related: #root, #root_node.
|
|
2024
2024
|
#
|
|
2025
|
-
# source://rexml
|
|
2025
|
+
# source://rexml//lib/rexml/element.rb#478
|
|
2026
2026
|
def document; end
|
|
2027
2027
|
|
|
2028
2028
|
# :call-seq:
|
|
@@ -2041,7 +2041,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2041
2041
|
# <d> ... </>
|
|
2042
2042
|
# <e/>
|
|
2043
2043
|
#
|
|
2044
|
-
# source://rexml
|
|
2044
|
+
# source://rexml//lib/rexml/element.rb#929
|
|
2045
2045
|
def each_element(xpath = T.unsafe(nil), &block); end
|
|
2046
2046
|
|
|
2047
2047
|
# :call-seq:
|
|
@@ -2093,7 +2093,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2093
2093
|
#
|
|
2094
2094
|
# <d id='1'/>
|
|
2095
2095
|
#
|
|
2096
|
-
# source://rexml
|
|
2096
|
+
# source://rexml//lib/rexml/element.rb#846
|
|
2097
2097
|
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
|
2098
2098
|
|
|
2099
2099
|
# :call-seq:
|
|
@@ -2143,13 +2143,13 @@ class REXML::Element < ::REXML::Parent
|
|
|
2143
2143
|
#
|
|
2144
2144
|
# <c> ... </>
|
|
2145
2145
|
#
|
|
2146
|
-
# source://rexml
|
|
2146
|
+
# source://rexml//lib/rexml/element.rb#903
|
|
2147
2147
|
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
|
|
2148
2148
|
|
|
2149
2149
|
# Mechanisms for accessing attributes and child elements of this
|
|
2150
2150
|
# element.
|
|
2151
2151
|
#
|
|
2152
|
-
# source://rexml
|
|
2152
|
+
# source://rexml//lib/rexml/element.rb#286
|
|
2153
2153
|
def elements; end
|
|
2154
2154
|
|
|
2155
2155
|
# :call-seq:
|
|
@@ -2167,7 +2167,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2167
2167
|
# d = REXML::Document.new(xml_string)
|
|
2168
2168
|
# d.root.get_elements('//a') # => [<a level='1'> ... </>, <a level='2'/>]
|
|
2169
2169
|
#
|
|
2170
|
-
# source://rexml
|
|
2170
|
+
# source://rexml//lib/rexml/element.rb#948
|
|
2171
2171
|
def get_elements(xpath); end
|
|
2172
2172
|
|
|
2173
2173
|
# :call-seq:
|
|
@@ -2187,7 +2187,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2187
2187
|
#
|
|
2188
2188
|
# d.root.get_text(1) # => "this is bold!"
|
|
2189
2189
|
#
|
|
2190
|
-
# source://rexml
|
|
2190
|
+
# source://rexml//lib/rexml/element.rb#1052
|
|
2191
2191
|
def get_text(path = T.unsafe(nil)); end
|
|
2192
2192
|
|
|
2193
2193
|
# :call-seq:
|
|
@@ -2202,7 +2202,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2202
2202
|
#
|
|
2203
2203
|
# @return [Boolean]
|
|
2204
2204
|
#
|
|
2205
|
-
# source://rexml
|
|
2205
|
+
# source://rexml//lib/rexml/element.rb#1319
|
|
2206
2206
|
def has_attributes?; end
|
|
2207
2207
|
|
|
2208
2208
|
# :call-seq:
|
|
@@ -2219,7 +2219,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2219
2219
|
#
|
|
2220
2220
|
# @return [Boolean]
|
|
2221
2221
|
#
|
|
2222
|
-
# source://rexml
|
|
2222
|
+
# source://rexml//lib/rexml/element.rb#793
|
|
2223
2223
|
def has_elements?; end
|
|
2224
2224
|
|
|
2225
2225
|
# :call-seq:
|
|
@@ -2236,7 +2236,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2236
2236
|
#
|
|
2237
2237
|
# @return [Boolean]
|
|
2238
2238
|
#
|
|
2239
|
-
# source://rexml
|
|
2239
|
+
# source://rexml//lib/rexml/element.rb#1001
|
|
2240
2240
|
def has_text?; end
|
|
2241
2241
|
|
|
2242
2242
|
# :call-seq:
|
|
@@ -2246,7 +2246,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2246
2246
|
#
|
|
2247
2247
|
# See {Element Context}[../doc/rexml/context_rdoc.html].
|
|
2248
2248
|
#
|
|
2249
|
-
# source://rexml
|
|
2249
|
+
# source://rexml//lib/rexml/element.rb#516
|
|
2250
2250
|
def ignore_whitespace_nodes; end
|
|
2251
2251
|
|
|
2252
2252
|
# :call-seq:
|
|
@@ -2270,7 +2270,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2270
2270
|
# e.add_element(REXML::Element.new('baz'))
|
|
2271
2271
|
# e.inspect # => "<foo bar='0' baz='1'> ... </>"
|
|
2272
2272
|
#
|
|
2273
|
-
# source://rexml
|
|
2273
|
+
# source://rexml//lib/rexml/element.rb#366
|
|
2274
2274
|
def inspect; end
|
|
2275
2275
|
|
|
2276
2276
|
# :call-seq:
|
|
@@ -2290,7 +2290,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2290
2290
|
# is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
|
|
2291
2291
|
# is.map {|i| i.to_s } # => ["<?target0 foo?>", "<?target1 bar?>"]
|
|
2292
2292
|
#
|
|
2293
|
-
# source://rexml
|
|
2293
|
+
# source://rexml//lib/rexml/element.rb#1466
|
|
2294
2294
|
def instructions; end
|
|
2295
2295
|
|
|
2296
2296
|
# :call-seq:
|
|
@@ -2313,7 +2313,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2313
2313
|
# b.namespace('y') # => "2"
|
|
2314
2314
|
# b.namespace('nosuch') # => nil
|
|
2315
2315
|
#
|
|
2316
|
-
# source://rexml
|
|
2316
|
+
# source://rexml//lib/rexml/element.rb#621
|
|
2317
2317
|
def namespace(prefix = T.unsafe(nil)); end
|
|
2318
2318
|
|
|
2319
2319
|
# :call-seq:
|
|
@@ -2335,7 +2335,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2335
2335
|
# d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
|
|
2336
2336
|
# d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
|
|
2337
2337
|
#
|
|
2338
|
-
# source://rexml
|
|
2338
|
+
# source://rexml//lib/rexml/element.rb#594
|
|
2339
2339
|
def namespaces; end
|
|
2340
2340
|
|
|
2341
2341
|
# :call-seq:
|
|
@@ -2348,7 +2348,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2348
2348
|
# d.root.elements['b'].next_element #-> <c/>
|
|
2349
2349
|
# d.root.elements['c'].next_element #-> nil
|
|
2350
2350
|
#
|
|
2351
|
-
# source://rexml
|
|
2351
|
+
# source://rexml//lib/rexml/element.rb#962
|
|
2352
2352
|
def next_element; end
|
|
2353
2353
|
|
|
2354
2354
|
# :call-seq:
|
|
@@ -2360,7 +2360,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2360
2360
|
# a = d.root # => <a/>
|
|
2361
2361
|
# a.node_type # => :element
|
|
2362
2362
|
#
|
|
2363
|
-
# source://rexml
|
|
2363
|
+
# source://rexml//lib/rexml/element.rb#1167
|
|
2364
2364
|
def node_type; end
|
|
2365
2365
|
|
|
2366
2366
|
# :call-seq:
|
|
@@ -2382,7 +2382,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2382
2382
|
# d.elements['//b'].prefixes # => ["x", "y"]
|
|
2383
2383
|
# d.elements['//c'].prefixes # => ["x", "y", "z"]
|
|
2384
2384
|
#
|
|
2385
|
-
# source://rexml
|
|
2385
|
+
# source://rexml//lib/rexml/element.rb#568
|
|
2386
2386
|
def prefixes; end
|
|
2387
2387
|
|
|
2388
2388
|
# :call-seq:
|
|
@@ -2395,7 +2395,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2395
2395
|
# d.root.elements['c'].previous_element #-> <b/>
|
|
2396
2396
|
# d.root.elements['b'].previous_element #-> nil
|
|
2397
2397
|
#
|
|
2398
|
-
# source://rexml
|
|
2398
|
+
# source://rexml//lib/rexml/element.rb#978
|
|
2399
2399
|
def previous_element; end
|
|
2400
2400
|
|
|
2401
2401
|
# :call-seq:
|
|
@@ -2408,7 +2408,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2408
2408
|
# The evaluation is tested against +expanded_name+, and so is namespace
|
|
2409
2409
|
# sensitive.
|
|
2410
2410
|
#
|
|
2411
|
-
# source://rexml
|
|
2411
|
+
# source://rexml//lib/rexml/element.rb#536
|
|
2412
2412
|
def raw; end
|
|
2413
2413
|
|
|
2414
2414
|
# :call-seq:
|
|
@@ -2428,7 +2428,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2428
2428
|
#
|
|
2429
2429
|
# Related: #root_node, #document.
|
|
2430
2430
|
#
|
|
2431
|
-
# source://rexml
|
|
2431
|
+
# source://rexml//lib/rexml/element.rb#451
|
|
2432
2432
|
def root; end
|
|
2433
2433
|
|
|
2434
2434
|
# :call-seq:
|
|
@@ -2466,7 +2466,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2466
2466
|
#
|
|
2467
2467
|
# Related: #root, #document.
|
|
2468
2468
|
#
|
|
2469
|
-
# source://rexml
|
|
2469
|
+
# source://rexml//lib/rexml/element.rb#430
|
|
2470
2470
|
def root_node; end
|
|
2471
2471
|
|
|
2472
2472
|
# :call-seq:
|
|
@@ -2493,7 +2493,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2493
2493
|
# Note also that the text note is retrieved by method get_text,
|
|
2494
2494
|
# and so is always normalized text.
|
|
2495
2495
|
#
|
|
2496
|
-
# source://rexml
|
|
2496
|
+
# source://rexml//lib/rexml/element.rb#1029
|
|
2497
2497
|
def text(path = T.unsafe(nil)); end
|
|
2498
2498
|
|
|
2499
2499
|
# :call-seq:
|
|
@@ -2521,7 +2521,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2521
2521
|
#
|
|
2522
2522
|
# d.root.text = nil #-> '<a><b/><c/></a>'
|
|
2523
2523
|
#
|
|
2524
|
-
# source://rexml
|
|
2524
|
+
# source://rexml//lib/rexml/element.rb#1088
|
|
2525
2525
|
def text=(text); end
|
|
2526
2526
|
|
|
2527
2527
|
# :call-seq:
|
|
@@ -2536,7 +2536,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2536
2536
|
# ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
|
|
2537
2537
|
# ts.map {|t| t.to_s } # => ["text", "more"]
|
|
2538
2538
|
#
|
|
2539
|
-
# source://rexml
|
|
2539
|
+
# source://rexml//lib/rexml/element.rb#1482
|
|
2540
2540
|
def texts; end
|
|
2541
2541
|
|
|
2542
2542
|
# :call-seq:
|
|
@@ -2550,7 +2550,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2550
2550
|
# The evaluation is tested against the element's +expanded_name+,
|
|
2551
2551
|
# and so is namespace-sensitive.
|
|
2552
2552
|
#
|
|
2553
|
-
# source://rexml
|
|
2553
|
+
# source://rexml//lib/rexml/element.rb#493
|
|
2554
2554
|
def whitespace; end
|
|
2555
2555
|
|
|
2556
2556
|
# == DEPRECATED
|
|
@@ -2576,7 +2576,7 @@ class REXML::Element < ::REXML::Parent
|
|
|
2576
2576
|
# doc.write( out ) #-> doc is written to the string 'out'
|
|
2577
2577
|
# doc.write( $stdout ) #-> doc written to the console
|
|
2578
2578
|
#
|
|
2579
|
-
# source://rexml
|
|
2579
|
+
# source://rexml//lib/rexml/element.rb#1508
|
|
2580
2580
|
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
2581
2581
|
|
|
2582
2582
|
# :call-seq:
|
|
@@ -2599,25 +2599,25 @@ class REXML::Element < ::REXML::Parent
|
|
|
2599
2599
|
# e = REXML::Element.new('foo')
|
|
2600
2600
|
# e.xpath # => "foo"
|
|
2601
2601
|
#
|
|
2602
|
-
# source://rexml
|
|
2602
|
+
# source://rexml//lib/rexml/element.rb#1191
|
|
2603
2603
|
def xpath; end
|
|
2604
2604
|
|
|
2605
2605
|
private
|
|
2606
2606
|
|
|
2607
|
-
# source://rexml
|
|
2607
|
+
# source://rexml//lib/rexml/element.rb#1525
|
|
2608
2608
|
def __to_xpath_helper(node); end
|
|
2609
2609
|
|
|
2610
2610
|
# A private helper method
|
|
2611
2611
|
#
|
|
2612
|
-
# source://rexml
|
|
2612
|
+
# source://rexml//lib/rexml/element.rb#1540
|
|
2613
2613
|
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
|
|
2614
2614
|
end
|
|
2615
2615
|
|
|
2616
|
-
# source://rexml
|
|
2616
|
+
# source://rexml//lib/rexml/doctype.rb#261
|
|
2617
2617
|
class REXML::ElementDecl < ::REXML::Declaration
|
|
2618
2618
|
# @return [ElementDecl] a new instance of ElementDecl
|
|
2619
2619
|
#
|
|
2620
|
-
# source://rexml
|
|
2620
|
+
# source://rexml//lib/rexml/doctype.rb#262
|
|
2621
2621
|
def initialize(src); end
|
|
2622
2622
|
end
|
|
2623
2623
|
|
|
@@ -2663,7 +2663,7 @@ end
|
|
|
2663
2663
|
# elements = d.root.elements
|
|
2664
2664
|
# elements # => #<REXML::Elements @element=<bookstore> ... </>>
|
|
2665
2665
|
#
|
|
2666
|
-
# source://rexml
|
|
2666
|
+
# source://rexml//lib/rexml/element.rb#1595
|
|
2667
2667
|
class REXML::Elements
|
|
2668
2668
|
include ::Enumerable
|
|
2669
2669
|
|
|
@@ -2680,7 +2680,7 @@ class REXML::Elements
|
|
|
2680
2680
|
#
|
|
2681
2681
|
# @return [Elements] a new instance of Elements
|
|
2682
2682
|
#
|
|
2683
|
-
# source://rexml
|
|
2683
|
+
# source://rexml//lib/rexml/element.rb#1608
|
|
2684
2684
|
def initialize(parent); end
|
|
2685
2685
|
|
|
2686
2686
|
# :call-seq:
|
|
@@ -2745,7 +2745,7 @@ class REXML::Elements
|
|
|
2745
2745
|
# element.parent # => <bookstore> ... </>
|
|
2746
2746
|
# element.context # => {:raw=>:all}
|
|
2747
2747
|
#
|
|
2748
|
-
# source://rexml
|
|
2748
|
+
# source://rexml//lib/rexml/element.rb#1925
|
|
2749
2749
|
def <<(element = T.unsafe(nil)); end
|
|
2750
2750
|
|
|
2751
2751
|
# :call-seq:
|
|
@@ -2801,7 +2801,7 @@ class REXML::Elements
|
|
|
2801
2801
|
# eles[4, 'book'] # => <book category='web' cover='paperback'> ... </>
|
|
2802
2802
|
# eles[5, 'book'] # => nil
|
|
2803
2803
|
#
|
|
2804
|
-
# source://rexml
|
|
2804
|
+
# source://rexml//lib/rexml/element.rb#1680
|
|
2805
2805
|
def [](index, name = T.unsafe(nil)); end
|
|
2806
2806
|
|
|
2807
2807
|
# :call-seq:
|
|
@@ -2840,7 +2840,7 @@ class REXML::Elements
|
|
|
2840
2840
|
# eles[50] = REXML::Text.new('bar') # => "bar"
|
|
2841
2841
|
# eles.size # => 5
|
|
2842
2842
|
#
|
|
2843
|
-
# source://rexml
|
|
2843
|
+
# source://rexml//lib/rexml/element.rb#1735
|
|
2844
2844
|
def []=(index, element); end
|
|
2845
2845
|
|
|
2846
2846
|
# :call-seq:
|
|
@@ -2905,7 +2905,7 @@ class REXML::Elements
|
|
|
2905
2905
|
# element.parent # => <bookstore> ... </>
|
|
2906
2906
|
# element.context # => {:raw=>:all}
|
|
2907
2907
|
#
|
|
2908
|
-
# source://rexml
|
|
2908
|
+
# source://rexml//lib/rexml/element.rb#1925
|
|
2909
2909
|
def add(element = T.unsafe(nil)); end
|
|
2910
2910
|
|
|
2911
2911
|
# :call-seq:
|
|
@@ -2925,7 +2925,7 @@ class REXML::Elements
|
|
|
2925
2925
|
# xpath = '//book [@category="web"]'
|
|
2926
2926
|
# elements.collect(xpath) {|element| element.size } # => [17, 9]
|
|
2927
2927
|
#
|
|
2928
|
-
# source://rexml
|
|
2928
|
+
# source://rexml//lib/rexml/element.rb#1988
|
|
2929
2929
|
def collect(xpath = T.unsafe(nil)); end
|
|
2930
2930
|
|
|
2931
2931
|
# :call-seq:
|
|
@@ -2969,7 +2969,7 @@ class REXML::Elements
|
|
|
2969
2969
|
# elements.delete('//book [@category="children"]') # => <book category='children'> ... </>
|
|
2970
2970
|
# elements.delete('//nosuch') # => nil
|
|
2971
2971
|
#
|
|
2972
|
-
# source://rexml
|
|
2972
|
+
# source://rexml//lib/rexml/element.rb#1825
|
|
2973
2973
|
def delete(element); end
|
|
2974
2974
|
|
|
2975
2975
|
# :call-seq:
|
|
@@ -2989,7 +2989,7 @@ class REXML::Elements
|
|
|
2989
2989
|
# elements.size # => 0
|
|
2990
2990
|
# elements.delete_all('//book') # => []
|
|
2991
2991
|
#
|
|
2992
|
-
# source://rexml
|
|
2992
|
+
# source://rexml//lib/rexml/element.rb#1851
|
|
2993
2993
|
def delete_all(xpath); end
|
|
2994
2994
|
|
|
2995
2995
|
# :call-seq:
|
|
@@ -3020,7 +3020,7 @@ class REXML::Elements
|
|
|
3020
3020
|
# <book category='web'> ... </>
|
|
3021
3021
|
# <book category='web' cover='paperback'> ... </>
|
|
3022
3022
|
#
|
|
3023
|
-
# source://rexml
|
|
3023
|
+
# source://rexml//lib/rexml/element.rb#1967
|
|
3024
3024
|
def each(xpath = T.unsafe(nil)); end
|
|
3025
3025
|
|
|
3026
3026
|
# :call-seq:
|
|
@@ -3035,7 +3035,7 @@ class REXML::Elements
|
|
|
3035
3035
|
#
|
|
3036
3036
|
# @return [Boolean]
|
|
3037
3037
|
#
|
|
3038
|
-
# source://rexml
|
|
3038
|
+
# source://rexml//lib/rexml/element.rb#1755
|
|
3039
3039
|
def empty?; end
|
|
3040
3040
|
|
|
3041
3041
|
# :call-seq:
|
|
@@ -3052,7 +3052,7 @@ class REXML::Elements
|
|
|
3052
3052
|
# elements.index(ele_4) # => 3
|
|
3053
3053
|
# elements.index(ele_3) # => -1
|
|
3054
3054
|
#
|
|
3055
|
-
# source://rexml
|
|
3055
|
+
# source://rexml//lib/rexml/element.rb#1773
|
|
3056
3056
|
def index(element); end
|
|
3057
3057
|
|
|
3058
3058
|
# :call-seq:
|
|
@@ -3132,7 +3132,7 @@ class REXML::Elements
|
|
|
3132
3132
|
# total += element.size
|
|
3133
3133
|
# end # => 26
|
|
3134
3134
|
#
|
|
3135
|
-
# source://rexml
|
|
3135
|
+
# source://rexml//lib/rexml/element.rb#2073
|
|
3136
3136
|
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
|
|
3137
3137
|
|
|
3138
3138
|
# :call-seq:
|
|
@@ -3146,7 +3146,7 @@ class REXML::Elements
|
|
|
3146
3146
|
# elements = REXML::Elements.new(d.root)
|
|
3147
3147
|
# elements.parent == d.root # => true
|
|
3148
3148
|
#
|
|
3149
|
-
# source://rexml
|
|
3149
|
+
# source://rexml//lib/rexml/element.rb#1623
|
|
3150
3150
|
def parent; end
|
|
3151
3151
|
|
|
3152
3152
|
# :call-seq:
|
|
@@ -3158,7 +3158,7 @@ class REXML::Elements
|
|
|
3158
3158
|
# d.root.elements.size # => 3 # Three elements.
|
|
3159
3159
|
# d.root.size # => 6 # Three elements plus three text nodes..
|
|
3160
3160
|
#
|
|
3161
|
-
# source://rexml
|
|
3161
|
+
# source://rexml//lib/rexml/element.rb#2097
|
|
3162
3162
|
def size; end
|
|
3163
3163
|
|
|
3164
3164
|
# :call-seq:
|
|
@@ -3179,40 +3179,40 @@ class REXML::Elements
|
|
|
3179
3179
|
#
|
|
3180
3180
|
# elements.to_a('//c') # => [<c/>]
|
|
3181
3181
|
#
|
|
3182
|
-
# source://rexml
|
|
3182
|
+
# source://rexml//lib/rexml/element.rb#2121
|
|
3183
3183
|
def to_a(xpath = T.unsafe(nil)); end
|
|
3184
3184
|
|
|
3185
3185
|
private
|
|
3186
3186
|
|
|
3187
3187
|
# Private helper class. Removes quotes from quoted strings
|
|
3188
3188
|
#
|
|
3189
|
-
# source://rexml
|
|
3189
|
+
# source://rexml//lib/rexml/element.rb#2129
|
|
3190
3190
|
def literalize(name); end
|
|
3191
3191
|
end
|
|
3192
3192
|
|
|
3193
|
-
# source://rexml
|
|
3193
|
+
# source://rexml//lib/rexml/encoding.rb#4
|
|
3194
3194
|
module REXML::Encoding
|
|
3195
|
-
# source://rexml
|
|
3195
|
+
# source://rexml//lib/rexml/encoding.rb#29
|
|
3196
3196
|
def decode(string); end
|
|
3197
3197
|
|
|
3198
|
-
# source://rexml
|
|
3198
|
+
# source://rexml//lib/rexml/encoding.rb#25
|
|
3199
3199
|
def encode(string); end
|
|
3200
3200
|
|
|
3201
3201
|
# ID ---> Encoding name
|
|
3202
3202
|
#
|
|
3203
|
-
# source://rexml
|
|
3203
|
+
# source://rexml//lib/rexml/encoding.rb#6
|
|
3204
3204
|
def encoding; end
|
|
3205
3205
|
|
|
3206
|
-
# source://rexml
|
|
3206
|
+
# source://rexml//lib/rexml/encoding.rb#7
|
|
3207
3207
|
def encoding=(encoding); end
|
|
3208
3208
|
|
|
3209
3209
|
private
|
|
3210
3210
|
|
|
3211
|
-
# source://rexml
|
|
3211
|
+
# source://rexml//lib/rexml/encoding.rb#34
|
|
3212
3212
|
def find_encoding(name); end
|
|
3213
3213
|
end
|
|
3214
3214
|
|
|
3215
|
-
# source://rexml
|
|
3215
|
+
# source://rexml//lib/rexml/entity.rb#7
|
|
3216
3216
|
class REXML::Entity < ::REXML::Child
|
|
3217
3217
|
include ::REXML::XMLTokens
|
|
3218
3218
|
|
|
@@ -3228,50 +3228,50 @@ class REXML::Entity < ::REXML::Child
|
|
|
3228
3228
|
#
|
|
3229
3229
|
# @return [Entity] a new instance of Entity
|
|
3230
3230
|
#
|
|
3231
|
-
# source://rexml
|
|
3231
|
+
# source://rexml//lib/rexml/entity.rb#33
|
|
3232
3232
|
def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
|
|
3233
3233
|
|
|
3234
3234
|
# Returns the value of attribute external.
|
|
3235
3235
|
#
|
|
3236
|
-
# source://rexml
|
|
3236
|
+
# source://rexml//lib/rexml/entity.rb#22
|
|
3237
3237
|
def external; end
|
|
3238
3238
|
|
|
3239
3239
|
# Returns the value of attribute name.
|
|
3240
3240
|
#
|
|
3241
|
-
# source://rexml
|
|
3241
|
+
# source://rexml//lib/rexml/entity.rb#22
|
|
3242
3242
|
def name; end
|
|
3243
3243
|
|
|
3244
3244
|
# Returns the value of attribute ndata.
|
|
3245
3245
|
#
|
|
3246
|
-
# source://rexml
|
|
3246
|
+
# source://rexml//lib/rexml/entity.rb#22
|
|
3247
3247
|
def ndata; end
|
|
3248
3248
|
|
|
3249
3249
|
# Returns the value of this entity unprocessed -- raw. This is the
|
|
3250
3250
|
# normalized value; that is, with all %ent; and &ent; entities intact
|
|
3251
3251
|
#
|
|
3252
|
-
# source://rexml
|
|
3252
|
+
# source://rexml//lib/rexml/entity.rb#85
|
|
3253
3253
|
def normalized; end
|
|
3254
3254
|
|
|
3255
3255
|
# Returns the value of attribute pubid.
|
|
3256
3256
|
#
|
|
3257
|
-
# source://rexml
|
|
3257
|
+
# source://rexml//lib/rexml/entity.rb#22
|
|
3258
3258
|
def pubid; end
|
|
3259
3259
|
|
|
3260
3260
|
# Returns the value of attribute ref.
|
|
3261
3261
|
#
|
|
3262
|
-
# source://rexml
|
|
3262
|
+
# source://rexml//lib/rexml/entity.rb#22
|
|
3263
3263
|
def ref; end
|
|
3264
3264
|
|
|
3265
3265
|
# Returns this entity as a string. See write().
|
|
3266
3266
|
#
|
|
3267
|
-
# source://rexml
|
|
3267
|
+
# source://rexml//lib/rexml/entity.rb#119
|
|
3268
3268
|
def to_s; end
|
|
3269
3269
|
|
|
3270
3270
|
# Evaluates to the unnormalized value of this entity; that is, replacing
|
|
3271
3271
|
# all entities -- both %ent; and &ent; entities. This differs from
|
|
3272
3272
|
# +value()+ in that +value+ only replaces %ent; entities.
|
|
3273
3273
|
#
|
|
3274
|
-
# source://rexml
|
|
3274
|
+
# source://rexml//lib/rexml/entity.rb#73
|
|
3275
3275
|
def unnormalized; end
|
|
3276
3276
|
|
|
3277
3277
|
# Returns the value of this entity. At the moment, only internal entities
|
|
@@ -3283,7 +3283,7 @@ class REXML::Entity < ::REXML::Child
|
|
|
3283
3283
|
# then:
|
|
3284
3284
|
# doctype.entity('yada').value #-> "nanoo bar nanoo"
|
|
3285
3285
|
#
|
|
3286
|
-
# source://rexml
|
|
3286
|
+
# source://rexml//lib/rexml/entity.rb#134
|
|
3287
3287
|
def value; end
|
|
3288
3288
|
|
|
3289
3289
|
# Write out a fully formed, correct entity definition (assuming the Entity
|
|
@@ -3295,7 +3295,7 @@ class REXML::Entity < ::REXML::Child
|
|
|
3295
3295
|
# indent::
|
|
3296
3296
|
# *DEPRECATED* and ignored
|
|
3297
3297
|
#
|
|
3298
|
-
# source://rexml
|
|
3298
|
+
# source://rexml//lib/rexml/entity.rb#97
|
|
3299
3299
|
def write(out, indent = T.unsafe(nil)); end
|
|
3300
3300
|
|
|
3301
3301
|
class << self
|
|
@@ -3304,26 +3304,26 @@ class REXML::Entity < ::REXML::Child
|
|
|
3304
3304
|
#
|
|
3305
3305
|
# @return [Boolean]
|
|
3306
3306
|
#
|
|
3307
|
-
# source://rexml
|
|
3307
|
+
# source://rexml//lib/rexml/entity.rb#66
|
|
3308
3308
|
def matches?(string); end
|
|
3309
3309
|
end
|
|
3310
3310
|
end
|
|
3311
3311
|
|
|
3312
|
-
# source://rexml
|
|
3312
|
+
# source://rexml//lib/rexml/doctype.rb#267
|
|
3313
3313
|
class REXML::ExternalEntity < ::REXML::Child
|
|
3314
3314
|
# @return [ExternalEntity] a new instance of ExternalEntity
|
|
3315
3315
|
#
|
|
3316
|
-
# source://rexml
|
|
3316
|
+
# source://rexml//lib/rexml/doctype.rb#268
|
|
3317
3317
|
def initialize(src); end
|
|
3318
3318
|
|
|
3319
|
-
# source://rexml
|
|
3319
|
+
# source://rexml//lib/rexml/doctype.rb#272
|
|
3320
3320
|
def to_s; end
|
|
3321
3321
|
|
|
3322
|
-
# source://rexml
|
|
3322
|
+
# source://rexml//lib/rexml/doctype.rb#275
|
|
3323
3323
|
def write(output, indent); end
|
|
3324
3324
|
end
|
|
3325
3325
|
|
|
3326
|
-
# source://rexml
|
|
3326
|
+
# source://rexml//lib/rexml/formatters/default.rb#5
|
|
3327
3327
|
class REXML::Formatters::Default
|
|
3328
3328
|
# Prints out the XML document with no formatting -- except if ie_hack is
|
|
3329
3329
|
# set.
|
|
@@ -3334,7 +3334,7 @@ class REXML::Formatters::Default
|
|
|
3334
3334
|
#
|
|
3335
3335
|
# @return [Default] a new instance of Default
|
|
3336
3336
|
#
|
|
3337
|
-
# source://rexml
|
|
3337
|
+
# source://rexml//lib/rexml/formatters/default.rb#12
|
|
3338
3338
|
def initialize(ie_hack = T.unsafe(nil)); end
|
|
3339
3339
|
|
|
3340
3340
|
# Writes the node to some output.
|
|
@@ -3345,27 +3345,27 @@ class REXML::Formatters::Default
|
|
|
3345
3345
|
# A class implementing <TT><<</TT>. Pass in an Output object to
|
|
3346
3346
|
# change the output encoding.
|
|
3347
3347
|
#
|
|
3348
|
-
# source://rexml
|
|
3348
|
+
# source://rexml//lib/rexml/formatters/default.rb#23
|
|
3349
3349
|
def write(node, output); end
|
|
3350
3350
|
|
|
3351
3351
|
protected
|
|
3352
3352
|
|
|
3353
|
-
# source://rexml
|
|
3353
|
+
# source://rexml//lib/rexml/formatters/default.rb#98
|
|
3354
3354
|
def write_cdata(node, output); end
|
|
3355
3355
|
|
|
3356
|
-
# source://rexml
|
|
3356
|
+
# source://rexml//lib/rexml/formatters/default.rb#92
|
|
3357
3357
|
def write_comment(node, output); end
|
|
3358
3358
|
|
|
3359
|
-
# source://rexml
|
|
3359
|
+
# source://rexml//lib/rexml/formatters/default.rb#61
|
|
3360
3360
|
def write_document(node, output); end
|
|
3361
3361
|
|
|
3362
|
-
# source://rexml
|
|
3362
|
+
# source://rexml//lib/rexml/formatters/default.rb#65
|
|
3363
3363
|
def write_element(node, output); end
|
|
3364
3364
|
|
|
3365
|
-
# source://rexml
|
|
3365
|
+
# source://rexml//lib/rexml/formatters/default.rb#104
|
|
3366
3366
|
def write_instruction(node, output); end
|
|
3367
3367
|
|
|
3368
|
-
# source://rexml
|
|
3368
|
+
# source://rexml//lib/rexml/formatters/default.rb#88
|
|
3369
3369
|
def write_text(node, output); end
|
|
3370
3370
|
end
|
|
3371
3371
|
|
|
@@ -3374,7 +3374,7 @@ end
|
|
|
3374
3374
|
#
|
|
3375
3375
|
# TODO: Add an option to print attributes on new lines
|
|
3376
3376
|
#
|
|
3377
|
-
# source://rexml
|
|
3377
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#10
|
|
3378
3378
|
class REXML::Formatters::Pretty < ::REXML::Formatters::Default
|
|
3379
3379
|
# Create a new pretty printer.
|
|
3380
3380
|
#
|
|
@@ -3391,107 +3391,107 @@ class REXML::Formatters::Pretty < ::REXML::Formatters::Default
|
|
|
3391
3391
|
#
|
|
3392
3392
|
# @return [Pretty] a new instance of Pretty
|
|
3393
3393
|
#
|
|
3394
|
-
# source://rexml
|
|
3394
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#30
|
|
3395
3395
|
def initialize(indentation = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
3396
3396
|
|
|
3397
3397
|
# If compact is set to true, then the formatter will attempt to use as
|
|
3398
3398
|
# little space as possible
|
|
3399
3399
|
#
|
|
3400
|
-
# source://rexml
|
|
3400
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#14
|
|
3401
3401
|
def compact; end
|
|
3402
3402
|
|
|
3403
3403
|
# If compact is set to true, then the formatter will attempt to use as
|
|
3404
3404
|
# little space as possible
|
|
3405
3405
|
#
|
|
3406
|
-
# source://rexml
|
|
3406
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#14
|
|
3407
3407
|
def compact=(_arg0); end
|
|
3408
3408
|
|
|
3409
3409
|
# The width of a page. Used for formatting text
|
|
3410
3410
|
#
|
|
3411
|
-
# source://rexml
|
|
3411
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#16
|
|
3412
3412
|
def width; end
|
|
3413
3413
|
|
|
3414
3414
|
# The width of a page. Used for formatting text
|
|
3415
3415
|
#
|
|
3416
|
-
# source://rexml
|
|
3416
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#16
|
|
3417
3417
|
def width=(_arg0); end
|
|
3418
3418
|
|
|
3419
3419
|
protected
|
|
3420
3420
|
|
|
3421
|
-
# source://rexml
|
|
3421
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#102
|
|
3422
3422
|
def write_cdata(node, output); end
|
|
3423
3423
|
|
|
3424
|
-
# source://rexml
|
|
3424
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#97
|
|
3425
3425
|
def write_comment(node, output); end
|
|
3426
3426
|
|
|
3427
|
-
# source://rexml
|
|
3427
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#107
|
|
3428
3428
|
def write_document(node, output); end
|
|
3429
3429
|
|
|
3430
|
-
# source://rexml
|
|
3430
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#39
|
|
3431
3431
|
def write_element(node, output); end
|
|
3432
3432
|
|
|
3433
|
-
# source://rexml
|
|
3433
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#88
|
|
3434
3434
|
def write_text(node, output); end
|
|
3435
3435
|
|
|
3436
3436
|
private
|
|
3437
3437
|
|
|
3438
|
-
# source://rexml
|
|
3438
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#124
|
|
3439
3439
|
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
|
3440
3440
|
|
|
3441
|
-
# source://rexml
|
|
3441
|
+
# source://rexml//lib/rexml/formatters/pretty.rb#129
|
|
3442
3442
|
def wrap(string, width); end
|
|
3443
3443
|
end
|
|
3444
3444
|
|
|
3445
3445
|
# A Source that wraps an IO. See the Source class for method
|
|
3446
3446
|
# documentation
|
|
3447
3447
|
#
|
|
3448
|
-
# source://rexml
|
|
3448
|
+
# source://rexml//lib/rexml/source.rb#159
|
|
3449
3449
|
class REXML::IOSource < ::REXML::Source
|
|
3450
3450
|
# block_size has been deprecated
|
|
3451
3451
|
#
|
|
3452
3452
|
# @return [IOSource] a new instance of IOSource
|
|
3453
3453
|
#
|
|
3454
|
-
# source://rexml
|
|
3454
|
+
# source://rexml//lib/rexml/source.rb#163
|
|
3455
3455
|
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
|
3456
3456
|
|
|
3457
|
-
# source://rexml
|
|
3457
|
+
# source://rexml//lib/rexml/source.rb#215
|
|
3458
3458
|
def consume(pattern); end
|
|
3459
3459
|
|
|
3460
3460
|
# @return the current line in the source
|
|
3461
3461
|
#
|
|
3462
|
-
# source://rexml
|
|
3462
|
+
# source://rexml//lib/rexml/source.rb#244
|
|
3463
3463
|
def current_line; end
|
|
3464
3464
|
|
|
3465
3465
|
# @return [Boolean]
|
|
3466
3466
|
#
|
|
3467
|
-
# source://rexml
|
|
3467
|
+
# source://rexml//lib/rexml/source.rb#235
|
|
3468
3468
|
def empty?; end
|
|
3469
3469
|
|
|
3470
|
-
# source://rexml
|
|
3470
|
+
# source://rexml//lib/rexml/source.rb#219
|
|
3471
3471
|
def match(pattern, cons = T.unsafe(nil)); end
|
|
3472
3472
|
|
|
3473
|
-
# source://rexml
|
|
3473
|
+
# source://rexml//lib/rexml/source.rb#239
|
|
3474
3474
|
def position; end
|
|
3475
3475
|
|
|
3476
|
-
# source://rexml
|
|
3476
|
+
# source://rexml//lib/rexml/source.rb#207
|
|
3477
3477
|
def read; end
|
|
3478
3478
|
|
|
3479
|
-
# source://rexml
|
|
3479
|
+
# source://rexml//lib/rexml/source.rb#184
|
|
3480
3480
|
def scan(pattern, cons = T.unsafe(nil)); end
|
|
3481
3481
|
|
|
3482
3482
|
private
|
|
3483
3483
|
|
|
3484
|
-
# source://rexml
|
|
3484
|
+
# source://rexml//lib/rexml/source.rb#286
|
|
3485
3485
|
def encoding_updated; end
|
|
3486
3486
|
|
|
3487
|
-
# source://rexml
|
|
3487
|
+
# source://rexml//lib/rexml/source.rb#266
|
|
3488
3488
|
def readline; end
|
|
3489
3489
|
end
|
|
3490
3490
|
|
|
3491
3491
|
# Represents an XML Instruction; IE, <? ... ?>
|
|
3492
3492
|
# TODO: Add parent arg (3rd arg) to constructor
|
|
3493
3493
|
#
|
|
3494
|
-
# source://rexml
|
|
3494
|
+
# source://rexml//lib/rexml/instruction.rb#9
|
|
3495
3495
|
class REXML::Instruction < ::REXML::Child
|
|
3496
3496
|
# Constructs a new Instruction
|
|
3497
3497
|
# the target of this instruction is set to this. If an Instruction,
|
|
@@ -3504,119 +3504,119 @@ class REXML::Instruction < ::REXML::Child
|
|
|
3504
3504
|
# @param content Must be either a String, or a Parent. Can only
|
|
3505
3505
|
# @return [Instruction] a new instance of Instruction
|
|
3506
3506
|
#
|
|
3507
|
-
# source://rexml
|
|
3507
|
+
# source://rexml//lib/rexml/instruction.rb#25
|
|
3508
3508
|
def initialize(target, content = T.unsafe(nil)); end
|
|
3509
3509
|
|
|
3510
3510
|
# of the other matches the target and content of this object.
|
|
3511
3511
|
#
|
|
3512
3512
|
# @return true if other is an Instruction, and the content and target
|
|
3513
3513
|
#
|
|
3514
|
-
# source://rexml
|
|
3514
|
+
# source://rexml//lib/rexml/instruction.rb#65
|
|
3515
3515
|
def ==(other); end
|
|
3516
3516
|
|
|
3517
|
-
# source://rexml
|
|
3517
|
+
# source://rexml//lib/rexml/instruction.rb#44
|
|
3518
3518
|
def clone; end
|
|
3519
3519
|
|
|
3520
3520
|
# target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
|
|
3521
3521
|
# content is everything else.
|
|
3522
3522
|
#
|
|
3523
|
-
# source://rexml
|
|
3523
|
+
# source://rexml//lib/rexml/instruction.rb#15
|
|
3524
3524
|
def content; end
|
|
3525
3525
|
|
|
3526
3526
|
# target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
|
|
3527
3527
|
# content is everything else.
|
|
3528
3528
|
#
|
|
3529
|
-
# source://rexml
|
|
3529
|
+
# source://rexml//lib/rexml/instruction.rb#15
|
|
3530
3530
|
def content=(_arg0); end
|
|
3531
3531
|
|
|
3532
|
-
# source://rexml
|
|
3532
|
+
# source://rexml//lib/rexml/instruction.rb#75
|
|
3533
3533
|
def inspect; end
|
|
3534
3534
|
|
|
3535
|
-
# source://rexml
|
|
3535
|
+
# source://rexml//lib/rexml/instruction.rb#71
|
|
3536
3536
|
def node_type; end
|
|
3537
3537
|
|
|
3538
3538
|
# target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
|
|
3539
3539
|
# content is everything else.
|
|
3540
3540
|
#
|
|
3541
|
-
# source://rexml
|
|
3541
|
+
# source://rexml//lib/rexml/instruction.rb#15
|
|
3542
3542
|
def target; end
|
|
3543
3543
|
|
|
3544
3544
|
# target is the "name" of the Instruction; IE, the "tag" in <?tag ...?>
|
|
3545
3545
|
# content is everything else.
|
|
3546
3546
|
#
|
|
3547
|
-
# source://rexml
|
|
3547
|
+
# source://rexml//lib/rexml/instruction.rb#15
|
|
3548
3548
|
def target=(_arg0); end
|
|
3549
3549
|
|
|
3550
3550
|
# == DEPRECATED
|
|
3551
3551
|
# See the rexml/formatters package
|
|
3552
3552
|
#
|
|
3553
|
-
# source://rexml
|
|
3553
|
+
# source://rexml//lib/rexml/instruction.rb#51
|
|
3554
3554
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
3555
3555
|
end
|
|
3556
3556
|
|
|
3557
|
-
# source://rexml
|
|
3557
|
+
# source://rexml//lib/rexml/doctype.rb#280
|
|
3558
3558
|
class REXML::NotationDecl < ::REXML::Child
|
|
3559
3559
|
# @return [NotationDecl] a new instance of NotationDecl
|
|
3560
3560
|
#
|
|
3561
|
-
# source://rexml
|
|
3561
|
+
# source://rexml//lib/rexml/doctype.rb#282
|
|
3562
3562
|
def initialize(name, middle, pub, sys); end
|
|
3563
3563
|
|
|
3564
3564
|
# This method retrieves the name of the notation.
|
|
3565
3565
|
#
|
|
3566
3566
|
# Method contributed by Henrik Martensson
|
|
3567
3567
|
#
|
|
3568
|
-
# source://rexml
|
|
3568
|
+
# source://rexml//lib/rexml/doctype.rb#307
|
|
3569
3569
|
def name; end
|
|
3570
3570
|
|
|
3571
3571
|
# Returns the value of attribute public.
|
|
3572
3572
|
#
|
|
3573
|
-
# source://rexml
|
|
3573
|
+
# source://rexml//lib/rexml/doctype.rb#281
|
|
3574
3574
|
def public; end
|
|
3575
3575
|
|
|
3576
3576
|
# Sets the attribute public
|
|
3577
3577
|
#
|
|
3578
3578
|
# @param value the value to set the attribute public to.
|
|
3579
3579
|
#
|
|
3580
|
-
# source://rexml
|
|
3580
|
+
# source://rexml//lib/rexml/doctype.rb#281
|
|
3581
3581
|
def public=(_arg0); end
|
|
3582
3582
|
|
|
3583
3583
|
# Returns the value of attribute system.
|
|
3584
3584
|
#
|
|
3585
|
-
# source://rexml
|
|
3585
|
+
# source://rexml//lib/rexml/doctype.rb#281
|
|
3586
3586
|
def system; end
|
|
3587
3587
|
|
|
3588
3588
|
# Sets the attribute system
|
|
3589
3589
|
#
|
|
3590
3590
|
# @param value the value to set the attribute system to.
|
|
3591
3591
|
#
|
|
3592
|
-
# source://rexml
|
|
3592
|
+
# source://rexml//lib/rexml/doctype.rb#281
|
|
3593
3593
|
def system=(_arg0); end
|
|
3594
3594
|
|
|
3595
|
-
# source://rexml
|
|
3595
|
+
# source://rexml//lib/rexml/doctype.rb#290
|
|
3596
3596
|
def to_s; end
|
|
3597
3597
|
|
|
3598
|
-
# source://rexml
|
|
3598
|
+
# source://rexml//lib/rexml/doctype.rb#300
|
|
3599
3599
|
def write(output, indent = T.unsafe(nil)); end
|
|
3600
3600
|
end
|
|
3601
3601
|
|
|
3602
|
-
# source://rexml
|
|
3602
|
+
# source://rexml//lib/rexml/output.rb#5
|
|
3603
3603
|
class REXML::Output
|
|
3604
3604
|
include ::REXML::Encoding
|
|
3605
3605
|
|
|
3606
3606
|
# @return [Output] a new instance of Output
|
|
3607
3607
|
#
|
|
3608
|
-
# source://rexml
|
|
3608
|
+
# source://rexml//lib/rexml/output.rb#10
|
|
3609
3609
|
def initialize(real_IO, encd = T.unsafe(nil)); end
|
|
3610
3610
|
|
|
3611
|
-
# source://rexml
|
|
3611
|
+
# source://rexml//lib/rexml/output.rb#22
|
|
3612
3612
|
def <<(content); end
|
|
3613
3613
|
|
|
3614
3614
|
# Returns the value of attribute encoding.
|
|
3615
3615
|
#
|
|
3616
|
-
# source://rexml
|
|
3616
|
+
# source://rexml//lib/rexml/output.rb#8
|
|
3617
3617
|
def encoding; end
|
|
3618
3618
|
|
|
3619
|
-
# source://rexml
|
|
3619
|
+
# source://rexml//lib/rexml/output.rb#26
|
|
3620
3620
|
def to_s; end
|
|
3621
3621
|
end
|
|
3622
3622
|
|
|
@@ -3624,7 +3624,7 @@ end
|
|
|
3624
3624
|
# class is never encountered except as the superclass for some other
|
|
3625
3625
|
# object.
|
|
3626
3626
|
#
|
|
3627
|
-
# source://rexml
|
|
3627
|
+
# source://rexml//lib/rexml/parent.rb#8
|
|
3628
3628
|
class REXML::Parent < ::REXML::Child
|
|
3629
3629
|
include ::Enumerable
|
|
3630
3630
|
|
|
@@ -3633,17 +3633,17 @@ class REXML::Parent < ::REXML::Child
|
|
|
3633
3633
|
# @param parent if supplied, will be set as the parent of this object
|
|
3634
3634
|
# @return [Parent] a new instance of Parent
|
|
3635
3635
|
#
|
|
3636
|
-
# source://rexml
|
|
3636
|
+
# source://rexml//lib/rexml/parent.rb#13
|
|
3637
3637
|
def initialize(parent = T.unsafe(nil)); end
|
|
3638
3638
|
|
|
3639
|
-
# source://rexml
|
|
3639
|
+
# source://rexml//lib/rexml/parent.rb#18
|
|
3640
3640
|
def <<(object); end
|
|
3641
3641
|
|
|
3642
3642
|
# Fetches a child at a given index
|
|
3643
3643
|
#
|
|
3644
3644
|
# @param index the Integer index of the child to fetch
|
|
3645
3645
|
#
|
|
3646
|
-
# source://rexml
|
|
3646
|
+
# source://rexml//lib/rexml/parent.rb#57
|
|
3647
3647
|
def [](index); end
|
|
3648
3648
|
|
|
3649
3649
|
# Set an index entry. See Array.[]=
|
|
@@ -3653,37 +3653,37 @@ class REXML::Parent < ::REXML::Child
|
|
|
3653
3653
|
# @param child if opt is an Integer, this is the child to set
|
|
3654
3654
|
# @return the parent (self)
|
|
3655
3655
|
#
|
|
3656
|
-
# source://rexml
|
|
3656
|
+
# source://rexml//lib/rexml/parent.rb#70
|
|
3657
3657
|
def []=(*args); end
|
|
3658
3658
|
|
|
3659
|
-
# source://rexml
|
|
3659
|
+
# source://rexml//lib/rexml/parent.rb#18
|
|
3660
3660
|
def add(object); end
|
|
3661
3661
|
|
|
3662
|
-
# source://rexml
|
|
3662
|
+
# source://rexml//lib/rexml/parent.rb#115
|
|
3663
3663
|
def children; end
|
|
3664
3664
|
|
|
3665
3665
|
# Deeply clones this object. This creates a complete duplicate of this
|
|
3666
3666
|
# Parent, including all descendants.
|
|
3667
3667
|
#
|
|
3668
|
-
# source://rexml
|
|
3668
|
+
# source://rexml//lib/rexml/parent.rb#148
|
|
3669
3669
|
def deep_clone; end
|
|
3670
3670
|
|
|
3671
|
-
# source://rexml
|
|
3671
|
+
# source://rexml//lib/rexml/parent.rb#32
|
|
3672
3672
|
def delete(object); end
|
|
3673
3673
|
|
|
3674
|
-
# source://rexml
|
|
3674
|
+
# source://rexml//lib/rexml/parent.rb#47
|
|
3675
3675
|
def delete_at(index); end
|
|
3676
3676
|
|
|
3677
|
-
# source://rexml
|
|
3677
|
+
# source://rexml//lib/rexml/parent.rb#43
|
|
3678
3678
|
def delete_if(&block); end
|
|
3679
3679
|
|
|
3680
|
-
# source://rexml
|
|
3680
|
+
# source://rexml//lib/rexml/parent.rb#39
|
|
3681
3681
|
def each(&block); end
|
|
3682
3682
|
|
|
3683
|
-
# source://rexml
|
|
3683
|
+
# source://rexml//lib/rexml/parent.rb#39
|
|
3684
3684
|
def each_child(&block); end
|
|
3685
3685
|
|
|
3686
|
-
# source://rexml
|
|
3686
|
+
# source://rexml//lib/rexml/parent.rb#51
|
|
3687
3687
|
def each_index(&block); end
|
|
3688
3688
|
|
|
3689
3689
|
# Fetches the index of a given child
|
|
@@ -3692,7 +3692,7 @@ class REXML::Parent < ::REXML::Child
|
|
|
3692
3692
|
# @param child the child to get the index of
|
|
3693
3693
|
# @return the index of the child, or nil if the object is not a child
|
|
3694
3694
|
#
|
|
3695
|
-
# source://rexml
|
|
3695
|
+
# source://rexml//lib/rexml/parent.rb#123
|
|
3696
3696
|
def index(child); end
|
|
3697
3697
|
|
|
3698
3698
|
# Inserts an child after another child
|
|
@@ -3704,7 +3704,7 @@ class REXML::Parent < ::REXML::Child
|
|
|
3704
3704
|
# @param child2 the child to insert
|
|
3705
3705
|
# @return the parent (self)
|
|
3706
3706
|
#
|
|
3707
|
-
# source://rexml
|
|
3707
|
+
# source://rexml//lib/rexml/parent.rb#102
|
|
3708
3708
|
def insert_after(child1, child2); end
|
|
3709
3709
|
|
|
3710
3710
|
# Inserts an child before another child
|
|
@@ -3716,20 +3716,20 @@ class REXML::Parent < ::REXML::Child
|
|
|
3716
3716
|
# @param child2 the child to insert
|
|
3717
3717
|
# @return the parent (self)
|
|
3718
3718
|
#
|
|
3719
|
-
# source://rexml
|
|
3719
|
+
# source://rexml//lib/rexml/parent.rb#82
|
|
3720
3720
|
def insert_before(child1, child2); end
|
|
3721
3721
|
|
|
3722
3722
|
# @return the number of children of this parent
|
|
3723
3723
|
#
|
|
3724
|
-
# source://rexml
|
|
3724
|
+
# source://rexml//lib/rexml/parent.rb#130
|
|
3725
3725
|
def length; end
|
|
3726
3726
|
|
|
3727
3727
|
# @return [Boolean]
|
|
3728
3728
|
#
|
|
3729
|
-
# source://rexml
|
|
3729
|
+
# source://rexml//lib/rexml/parent.rb#162
|
|
3730
3730
|
def parent?; end
|
|
3731
3731
|
|
|
3732
|
-
# source://rexml
|
|
3732
|
+
# source://rexml//lib/rexml/parent.rb#18
|
|
3733
3733
|
def push(object); end
|
|
3734
3734
|
|
|
3735
3735
|
# Replaces one child with another, making sure the nodelist is correct
|
|
@@ -3738,74 +3738,74 @@ class REXML::Parent < ::REXML::Child
|
|
|
3738
3738
|
# @param to_replace the child to replace (must be a Child)
|
|
3739
3739
|
# @param replacement the child to insert into the nodelist (must be a
|
|
3740
3740
|
#
|
|
3741
|
-
# source://rexml
|
|
3741
|
+
# source://rexml//lib/rexml/parent.rb#140
|
|
3742
3742
|
def replace_child(to_replace, replacement); end
|
|
3743
3743
|
|
|
3744
3744
|
# @return the number of children of this parent
|
|
3745
3745
|
#
|
|
3746
|
-
# source://rexml
|
|
3746
|
+
# source://rexml//lib/rexml/parent.rb#130
|
|
3747
3747
|
def size; end
|
|
3748
3748
|
|
|
3749
|
-
# source://rexml
|
|
3749
|
+
# source://rexml//lib/rexml/parent.rb#115
|
|
3750
3750
|
def to_a; end
|
|
3751
3751
|
|
|
3752
|
-
# source://rexml
|
|
3752
|
+
# source://rexml//lib/rexml/parent.rb#27
|
|
3753
3753
|
def unshift(object); end
|
|
3754
3754
|
end
|
|
3755
3755
|
|
|
3756
|
-
# source://rexml
|
|
3756
|
+
# source://rexml//lib/rexml/parseexception.rb#3
|
|
3757
3757
|
class REXML::ParseException < ::RuntimeError
|
|
3758
3758
|
# @return [ParseException] a new instance of ParseException
|
|
3759
3759
|
#
|
|
3760
|
-
# source://rexml
|
|
3760
|
+
# source://rexml//lib/rexml/parseexception.rb#6
|
|
3761
3761
|
def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end
|
|
3762
3762
|
|
|
3763
|
-
# source://rexml
|
|
3763
|
+
# source://rexml//lib/rexml/parseexception.rb#48
|
|
3764
3764
|
def context; end
|
|
3765
3765
|
|
|
3766
3766
|
# Returns the value of attribute continued_exception.
|
|
3767
3767
|
#
|
|
3768
|
-
# source://rexml
|
|
3768
|
+
# source://rexml//lib/rexml/parseexception.rb#4
|
|
3769
3769
|
def continued_exception; end
|
|
3770
3770
|
|
|
3771
3771
|
# Sets the attribute continued_exception
|
|
3772
3772
|
#
|
|
3773
3773
|
# @param value the value to set the attribute continued_exception to.
|
|
3774
3774
|
#
|
|
3775
|
-
# source://rexml
|
|
3775
|
+
# source://rexml//lib/rexml/parseexception.rb#4
|
|
3776
3776
|
def continued_exception=(_arg0); end
|
|
3777
3777
|
|
|
3778
|
-
# source://rexml
|
|
3778
|
+
# source://rexml//lib/rexml/parseexception.rb#43
|
|
3779
3779
|
def line; end
|
|
3780
3780
|
|
|
3781
3781
|
# Returns the value of attribute parser.
|
|
3782
3782
|
#
|
|
3783
|
-
# source://rexml
|
|
3783
|
+
# source://rexml//lib/rexml/parseexception.rb#4
|
|
3784
3784
|
def parser; end
|
|
3785
3785
|
|
|
3786
3786
|
# Sets the attribute parser
|
|
3787
3787
|
#
|
|
3788
3788
|
# @param value the value to set the attribute parser to.
|
|
3789
3789
|
#
|
|
3790
|
-
# source://rexml
|
|
3790
|
+
# source://rexml//lib/rexml/parseexception.rb#4
|
|
3791
3791
|
def parser=(_arg0); end
|
|
3792
3792
|
|
|
3793
|
-
# source://rexml
|
|
3793
|
+
# source://rexml//lib/rexml/parseexception.rb#38
|
|
3794
3794
|
def position; end
|
|
3795
3795
|
|
|
3796
3796
|
# Returns the value of attribute source.
|
|
3797
3797
|
#
|
|
3798
|
-
# source://rexml
|
|
3798
|
+
# source://rexml//lib/rexml/parseexception.rb#4
|
|
3799
3799
|
def source; end
|
|
3800
3800
|
|
|
3801
3801
|
# Sets the attribute source
|
|
3802
3802
|
#
|
|
3803
3803
|
# @param value the value to set the attribute source to.
|
|
3804
3804
|
#
|
|
3805
|
-
# source://rexml
|
|
3805
|
+
# source://rexml//lib/rexml/parseexception.rb#4
|
|
3806
3806
|
def source=(_arg0); end
|
|
3807
3807
|
|
|
3808
|
-
# source://rexml
|
|
3808
|
+
# source://rexml//lib/rexml/parseexception.rb#13
|
|
3809
3809
|
def to_s; end
|
|
3810
3810
|
end
|
|
3811
3811
|
|
|
@@ -3829,36 +3829,36 @@ end
|
|
|
3829
3829
|
#
|
|
3830
3830
|
# Nat Price gave me some good ideas for the API.
|
|
3831
3831
|
#
|
|
3832
|
-
# source://rexml
|
|
3832
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#29
|
|
3833
3833
|
class REXML::Parsers::BaseParser
|
|
3834
3834
|
# @return [BaseParser] a new instance of BaseParser
|
|
3835
3835
|
#
|
|
3836
|
-
# source://rexml
|
|
3836
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#115
|
|
3837
3837
|
def initialize(source); end
|
|
3838
3838
|
|
|
3839
|
-
# source://rexml
|
|
3839
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#120
|
|
3840
3840
|
def add_listener(listener); end
|
|
3841
3841
|
|
|
3842
3842
|
# Returns true if there are no more events
|
|
3843
3843
|
#
|
|
3844
3844
|
# @return [Boolean]
|
|
3845
3845
|
#
|
|
3846
|
-
# source://rexml
|
|
3846
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#146
|
|
3847
3847
|
def empty?; end
|
|
3848
3848
|
|
|
3849
|
-
# source://rexml
|
|
3849
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#438
|
|
3850
3850
|
def entity(reference, entities); end
|
|
3851
3851
|
|
|
3852
3852
|
# Returns true if there are more events. Synonymous with !empty?
|
|
3853
3853
|
#
|
|
3854
3854
|
# @return [Boolean]
|
|
3855
3855
|
#
|
|
3856
|
-
# source://rexml
|
|
3856
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#151
|
|
3857
3857
|
def has_next?; end
|
|
3858
3858
|
|
|
3859
3859
|
# Escapes all possible entities
|
|
3860
3860
|
#
|
|
3861
|
-
# source://rexml
|
|
3861
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#449
|
|
3862
3862
|
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
|
3863
3863
|
|
|
3864
3864
|
# Peek at the +depth+ event in the stack. The first element on the stack
|
|
@@ -3868,102 +3868,102 @@ class REXML::Parsers::BaseParser
|
|
|
3868
3868
|
# event, so you can effectively pre-parse the entire document (pull the
|
|
3869
3869
|
# entire thing into memory) using this method.
|
|
3870
3870
|
#
|
|
3871
|
-
# source://rexml
|
|
3871
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#167
|
|
3872
3872
|
def peek(depth = T.unsafe(nil)); end
|
|
3873
3873
|
|
|
3874
|
-
# source://rexml
|
|
3874
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#136
|
|
3875
3875
|
def position; end
|
|
3876
3876
|
|
|
3877
3877
|
# Returns the next event. This is a +PullEvent+ object.
|
|
3878
3878
|
#
|
|
3879
|
-
# source://rexml
|
|
3879
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#182
|
|
3880
3880
|
def pull; end
|
|
3881
3881
|
|
|
3882
3882
|
# Returns the value of attribute source.
|
|
3883
3883
|
#
|
|
3884
|
-
# source://rexml
|
|
3884
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#124
|
|
3885
3885
|
def source; end
|
|
3886
3886
|
|
|
3887
|
-
# source://rexml
|
|
3887
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#126
|
|
3888
3888
|
def stream=(source); end
|
|
3889
3889
|
|
|
3890
3890
|
# Unescapes all possible entities
|
|
3891
3891
|
#
|
|
3892
|
-
# source://rexml
|
|
3892
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#465
|
|
3893
3893
|
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
|
3894
3894
|
|
|
3895
3895
|
# Push an event back on the head of the stream. This method
|
|
3896
3896
|
# has (theoretically) infinite depth.
|
|
3897
3897
|
#
|
|
3898
|
-
# source://rexml
|
|
3898
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#157
|
|
3899
3899
|
def unshift(token); end
|
|
3900
3900
|
|
|
3901
3901
|
private
|
|
3902
3902
|
|
|
3903
3903
|
# @return [Boolean]
|
|
3904
3904
|
#
|
|
3905
|
-
# source://rexml
|
|
3905
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#495
|
|
3906
3906
|
def need_source_encoding_update?(xml_declaration_encoding); end
|
|
3907
3907
|
|
|
3908
|
-
# source://rexml
|
|
3908
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#589
|
|
3909
3909
|
def parse_attributes(prefixes, curr_ns); end
|
|
3910
3910
|
|
|
3911
|
-
# source://rexml
|
|
3911
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#514
|
|
3912
3912
|
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
|
3913
3913
|
|
|
3914
|
-
# source://rexml
|
|
3914
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#542
|
|
3915
3915
|
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
|
3916
3916
|
|
|
3917
|
-
# source://rexml
|
|
3917
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#501
|
|
3918
3918
|
def parse_name(base_error_message); end
|
|
3919
3919
|
|
|
3920
|
-
# source://rexml
|
|
3920
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#580
|
|
3921
3921
|
def process_instruction; end
|
|
3922
3922
|
|
|
3923
|
-
# source://rexml
|
|
3923
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#190
|
|
3924
3924
|
def pull_event; end
|
|
3925
3925
|
end
|
|
3926
3926
|
|
|
3927
|
-
# source://rexml
|
|
3927
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#102
|
|
3928
3928
|
REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
|
|
3929
3929
|
|
|
3930
|
-
# source://rexml
|
|
3930
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#103
|
|
3931
3931
|
REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
|
|
3932
3932
|
|
|
3933
|
-
# source://rexml
|
|
3933
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#104
|
|
3934
3934
|
REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
|
|
3935
3935
|
|
|
3936
|
-
# source://rexml
|
|
3936
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#38
|
|
3937
3937
|
REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
|
|
3938
3938
|
|
|
3939
|
-
# source://rexml
|
|
3939
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#37
|
|
3940
3940
|
REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
|
|
3941
3941
|
|
|
3942
|
-
# source://rexml
|
|
3942
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#6
|
|
3943
3943
|
class REXML::Parsers::StreamParser
|
|
3944
3944
|
# @return [StreamParser] a new instance of StreamParser
|
|
3945
3945
|
#
|
|
3946
|
-
# source://rexml
|
|
3946
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#7
|
|
3947
3947
|
def initialize(source, listener); end
|
|
3948
3948
|
|
|
3949
|
-
# source://rexml
|
|
3949
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#13
|
|
3950
3950
|
def add_listener(listener); end
|
|
3951
3951
|
|
|
3952
|
-
# source://rexml
|
|
3952
|
+
# source://rexml//lib/rexml/parsers/streamparser.rb#17
|
|
3953
3953
|
def parse; end
|
|
3954
3954
|
end
|
|
3955
3955
|
|
|
3956
|
-
# source://rexml
|
|
3956
|
+
# source://rexml//lib/rexml/parsers/treeparser.rb#7
|
|
3957
3957
|
class REXML::Parsers::TreeParser
|
|
3958
3958
|
# @return [TreeParser] a new instance of TreeParser
|
|
3959
3959
|
#
|
|
3960
|
-
# source://rexml
|
|
3960
|
+
# source://rexml//lib/rexml/parsers/treeparser.rb#8
|
|
3961
3961
|
def initialize(source, build_context = T.unsafe(nil)); end
|
|
3962
3962
|
|
|
3963
|
-
# source://rexml
|
|
3963
|
+
# source://rexml//lib/rexml/parsers/treeparser.rb#13
|
|
3964
3964
|
def add_listener(listener); end
|
|
3965
3965
|
|
|
3966
|
-
# source://rexml
|
|
3966
|
+
# source://rexml//lib/rexml/parsers/treeparser.rb#17
|
|
3967
3967
|
def parse; end
|
|
3968
3968
|
end
|
|
3969
3969
|
|
|
@@ -3972,26 +3972,26 @@ end
|
|
|
3972
3972
|
# There is strange, dark magic at work in this code. Beware. Go back! Go
|
|
3973
3973
|
# back while you still can!
|
|
3974
3974
|
#
|
|
3975
|
-
# source://rexml
|
|
3975
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#11
|
|
3976
3976
|
class REXML::Parsers::XPathParser
|
|
3977
3977
|
include ::REXML::XMLTokens
|
|
3978
3978
|
|
|
3979
|
-
# source://rexml
|
|
3979
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#41
|
|
3980
3980
|
def abbreviate(path); end
|
|
3981
3981
|
|
|
3982
|
-
# source://rexml
|
|
3982
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#99
|
|
3983
3983
|
def expand(path); end
|
|
3984
3984
|
|
|
3985
|
-
# source://rexml
|
|
3985
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#15
|
|
3986
3986
|
def namespaces=(namespaces); end
|
|
3987
3987
|
|
|
3988
|
-
# source://rexml
|
|
3988
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#20
|
|
3989
3989
|
def parse(path); end
|
|
3990
3990
|
|
|
3991
|
-
# source://rexml
|
|
3991
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#35
|
|
3992
3992
|
def predicate(path); end
|
|
3993
3993
|
|
|
3994
|
-
# source://rexml
|
|
3994
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#138
|
|
3995
3995
|
def predicate_to_string(path, &block); end
|
|
3996
3996
|
|
|
3997
3997
|
private
|
|
@@ -3999,30 +3999,30 @@ class REXML::Parsers::XPathParser
|
|
|
3999
3999
|
# | AdditiveExpr ('+' | '-') MultiplicativeExpr
|
|
4000
4000
|
# | MultiplicativeExpr
|
|
4001
4001
|
#
|
|
4002
|
-
# source://rexml
|
|
4002
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#455
|
|
4003
4003
|
def AdditiveExpr(path, parsed); end
|
|
4004
4004
|
|
|
4005
4005
|
# | AndExpr S 'and' S EqualityExpr
|
|
4006
4006
|
# | EqualityExpr
|
|
4007
4007
|
#
|
|
4008
|
-
# source://rexml
|
|
4008
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#388
|
|
4009
4009
|
def AndExpr(path, parsed); end
|
|
4010
4010
|
|
|
4011
4011
|
# | EqualityExpr ('=' | '!=') RelationalExpr
|
|
4012
4012
|
# | RelationalExpr
|
|
4013
4013
|
#
|
|
4014
|
-
# source://rexml
|
|
4014
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#407
|
|
4015
4015
|
def EqualityExpr(path, parsed); end
|
|
4016
4016
|
|
|
4017
4017
|
# | FilterExpr Predicate
|
|
4018
4018
|
# | PrimaryExpr
|
|
4019
4019
|
#
|
|
4020
|
-
# source://rexml
|
|
4020
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#558
|
|
4021
4021
|
def FilterExpr(path, parsed); end
|
|
4022
4022
|
|
|
4023
4023
|
# | FUNCTION_NAME '(' ( expr ( ',' expr )* )? ')'
|
|
4024
4024
|
#
|
|
4025
|
-
# source://rexml
|
|
4025
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#613
|
|
4026
4026
|
def FunctionCall(rest, parsed); end
|
|
4027
4027
|
|
|
4028
4028
|
# LocationPath
|
|
@@ -4030,69 +4030,69 @@ class REXML::Parsers::XPathParser
|
|
|
4030
4030
|
# | '/' RelativeLocationPath?
|
|
4031
4031
|
# | '//' RelativeLocationPath
|
|
4032
4032
|
#
|
|
4033
|
-
# source://rexml
|
|
4033
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#193
|
|
4034
4034
|
def LocationPath(path, parsed); end
|
|
4035
4035
|
|
|
4036
4036
|
# | MultiplicativeExpr ('*' | S ('div' | 'mod') S) UnaryExpr
|
|
4037
4037
|
# | UnaryExpr
|
|
4038
4038
|
#
|
|
4039
|
-
# source://rexml
|
|
4039
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#478
|
|
4040
4040
|
def MultiplicativeExpr(path, parsed); end
|
|
4041
4041
|
|
|
4042
|
-
# source://rexml
|
|
4042
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#293
|
|
4043
4043
|
def NodeTest(path, parsed); end
|
|
4044
4044
|
|
|
4045
4045
|
# | OrExpr S 'or' S AndExpr
|
|
4046
4046
|
# | AndExpr
|
|
4047
4047
|
#
|
|
4048
|
-
# source://rexml
|
|
4048
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#369
|
|
4049
4049
|
def OrExpr(path, parsed); end
|
|
4050
4050
|
|
|
4051
4051
|
# | LocationPath
|
|
4052
4052
|
# | FilterExpr ('/' | '//') RelativeLocationPath
|
|
4053
4053
|
#
|
|
4054
|
-
# source://rexml
|
|
4054
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#540
|
|
4055
4055
|
def PathExpr(path, parsed); end
|
|
4056
4056
|
|
|
4057
4057
|
# Filters the supplied nodeset on the predicate(s)
|
|
4058
4058
|
#
|
|
4059
|
-
# source://rexml
|
|
4059
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#345
|
|
4060
4060
|
def Predicate(path, parsed); end
|
|
4061
4061
|
|
|
4062
|
-
# source://rexml
|
|
4062
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#576
|
|
4063
4063
|
def PrimaryExpr(path, parsed); end
|
|
4064
4064
|
|
|
4065
4065
|
# | RelationalExpr ('<' | '>' | '<=' | '>=') AdditiveExpr
|
|
4066
4066
|
# | AdditiveExpr
|
|
4067
4067
|
#
|
|
4068
|
-
# source://rexml
|
|
4068
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#430
|
|
4069
4069
|
def RelationalExpr(path, parsed); end
|
|
4070
4070
|
|
|
4071
|
-
# source://rexml
|
|
4071
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#217
|
|
4072
4072
|
def RelativeLocationPath(path, parsed); end
|
|
4073
4073
|
|
|
4074
4074
|
# | '-' UnaryExpr
|
|
4075
4075
|
# | UnionExpr
|
|
4076
4076
|
#
|
|
4077
|
-
# source://rexml
|
|
4077
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#503
|
|
4078
4078
|
def UnaryExpr(path, parsed); end
|
|
4079
4079
|
|
|
4080
4080
|
# | UnionExpr '|' PathExpr
|
|
4081
4081
|
# | PathExpr
|
|
4082
4082
|
#
|
|
4083
|
-
# source://rexml
|
|
4083
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#521
|
|
4084
4084
|
def UnionExpr(path, parsed); end
|
|
4085
4085
|
|
|
4086
4086
|
# get_group( '[foo]bar' ) -> ['bar', '[foo]']
|
|
4087
4087
|
#
|
|
4088
|
-
# source://rexml
|
|
4088
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#626
|
|
4089
4089
|
def get_group(string); end
|
|
4090
4090
|
|
|
4091
|
-
# source://rexml
|
|
4091
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#644
|
|
4092
4092
|
def parse_args(string); end
|
|
4093
4093
|
end
|
|
4094
4094
|
|
|
4095
|
-
# source://rexml
|
|
4095
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#289
|
|
4096
4096
|
REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
|
4097
4097
|
|
|
4098
4098
|
# Returns a 1-1 map of the nodeset
|
|
@@ -4106,24 +4106,24 @@ REXML::Parsers::XPathParser::LOCAL_NAME_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
|
|
4106
4106
|
# | PI '(' LITERAL ')' PI
|
|
4107
4107
|
# | '[' expr ']' Predicate
|
|
4108
4108
|
#
|
|
4109
|
-
# source://rexml
|
|
4109
|
+
# source://rexml//lib/rexml/parsers/xpathparser.rb#288
|
|
4110
4110
|
REXML::Parsers::XPathParser::PREFIX_WILDCARD = T.let(T.unsafe(nil), Regexp)
|
|
4111
4111
|
|
|
4112
|
-
# source://rexml
|
|
4112
|
+
# source://rexml//lib/rexml/doctype.rb#10
|
|
4113
4113
|
class REXML::ReferenceWriter
|
|
4114
4114
|
# @return [ReferenceWriter] a new instance of ReferenceWriter
|
|
4115
4115
|
#
|
|
4116
|
-
# source://rexml
|
|
4116
|
+
# source://rexml//lib/rexml/doctype.rb#11
|
|
4117
4117
|
def initialize(id_type, public_id_literal, system_literal, context = T.unsafe(nil)); end
|
|
4118
4118
|
|
|
4119
|
-
# source://rexml
|
|
4119
|
+
# source://rexml//lib/rexml/doctype.rb#25
|
|
4120
4120
|
def write(output); end
|
|
4121
4121
|
end
|
|
4122
4122
|
|
|
4123
4123
|
# A Source can be searched for patterns, and wraps buffers and other
|
|
4124
4124
|
# objects and provides consumption of text
|
|
4125
4125
|
#
|
|
4126
|
-
# source://rexml
|
|
4126
|
+
# source://rexml//lib/rexml/source.rb#31
|
|
4127
4127
|
class REXML::Source
|
|
4128
4128
|
include ::REXML::Encoding
|
|
4129
4129
|
|
|
@@ -4134,56 +4134,56 @@ class REXML::Source
|
|
|
4134
4134
|
# @param encoding if non-null, sets the encoding of the source to this
|
|
4135
4135
|
# @return [Source] a new instance of Source
|
|
4136
4136
|
#
|
|
4137
|
-
# source://rexml
|
|
4137
|
+
# source://rexml//lib/rexml/source.rb#43
|
|
4138
4138
|
def initialize(arg, encoding = T.unsafe(nil)); end
|
|
4139
4139
|
|
|
4140
4140
|
# The current buffer (what we're going to read next)
|
|
4141
4141
|
#
|
|
4142
|
-
# source://rexml
|
|
4142
|
+
# source://rexml//lib/rexml/source.rb#34
|
|
4143
4143
|
def buffer; end
|
|
4144
4144
|
|
|
4145
|
-
# source://rexml
|
|
4145
|
+
# source://rexml//lib/rexml/source.rb#87
|
|
4146
4146
|
def consume(pattern); end
|
|
4147
4147
|
|
|
4148
4148
|
# @return the current line in the source
|
|
4149
4149
|
#
|
|
4150
|
-
# source://rexml
|
|
4150
|
+
# source://rexml//lib/rexml/source.rb#117
|
|
4151
4151
|
def current_line; end
|
|
4152
4152
|
|
|
4153
4153
|
# @return [Boolean] true if the Source is exhausted
|
|
4154
4154
|
#
|
|
4155
|
-
# source://rexml
|
|
4155
|
+
# source://rexml//lib/rexml/source.rb#108
|
|
4156
4156
|
def empty?; end
|
|
4157
4157
|
|
|
4158
4158
|
# Returns the value of attribute encoding.
|
|
4159
4159
|
#
|
|
4160
|
-
# source://rexml
|
|
4160
|
+
# source://rexml//lib/rexml/source.rb#37
|
|
4161
4161
|
def encoding; end
|
|
4162
4162
|
|
|
4163
4163
|
# Inherited from Encoding
|
|
4164
4164
|
# Overridden to support optimized en/decoding
|
|
4165
4165
|
#
|
|
4166
|
-
# source://rexml
|
|
4166
|
+
# source://rexml//lib/rexml/source.rb#56
|
|
4167
4167
|
def encoding=(enc); end
|
|
4168
4168
|
|
|
4169
4169
|
# The line number of the last consumed text
|
|
4170
4170
|
#
|
|
4171
|
-
# source://rexml
|
|
4171
|
+
# source://rexml//lib/rexml/source.rb#36
|
|
4172
4172
|
def line; end
|
|
4173
4173
|
|
|
4174
|
-
# source://rexml
|
|
4174
|
+
# source://rexml//lib/rexml/source.rb#101
|
|
4175
4175
|
def match(pattern, cons = T.unsafe(nil)); end
|
|
4176
4176
|
|
|
4177
|
-
# source://rexml
|
|
4177
|
+
# source://rexml//lib/rexml/source.rb#91
|
|
4178
4178
|
def match_to(char, pattern); end
|
|
4179
4179
|
|
|
4180
|
-
# source://rexml
|
|
4180
|
+
# source://rexml//lib/rexml/source.rb#95
|
|
4181
4181
|
def match_to_consume(char, pattern); end
|
|
4182
4182
|
|
|
4183
|
-
# source://rexml
|
|
4183
|
+
# source://rexml//lib/rexml/source.rb#112
|
|
4184
4184
|
def position; end
|
|
4185
4185
|
|
|
4186
|
-
# source://rexml
|
|
4186
|
+
# source://rexml//lib/rexml/source.rb#84
|
|
4187
4187
|
def read; end
|
|
4188
4188
|
|
|
4189
4189
|
# Scans the source for a given pattern. Note, that this is not your
|
|
@@ -4204,21 +4204,21 @@ class REXML::Source
|
|
|
4204
4204
|
# @param consume if true, the pattern returned will be consumed, leaving
|
|
4205
4205
|
# @return the pattern, if found, or nil if the Source is empty or the
|
|
4206
4206
|
#
|
|
4207
|
-
# source://rexml
|
|
4207
|
+
# source://rexml//lib/rexml/source.rb#77
|
|
4208
4208
|
def scan(pattern, cons = T.unsafe(nil)); end
|
|
4209
4209
|
|
|
4210
4210
|
private
|
|
4211
4211
|
|
|
4212
|
-
# source://rexml
|
|
4212
|
+
# source://rexml//lib/rexml/source.rb#125
|
|
4213
4213
|
def detect_encoding; end
|
|
4214
4214
|
|
|
4215
|
-
# source://rexml
|
|
4215
|
+
# source://rexml//lib/rexml/source.rb#146
|
|
4216
4216
|
def encoding_updated; end
|
|
4217
4217
|
end
|
|
4218
4218
|
|
|
4219
4219
|
# Represents text nodes in an XML document
|
|
4220
4220
|
#
|
|
4221
|
-
# source://rexml
|
|
4221
|
+
# source://rexml//lib/rexml/text.rb#11
|
|
4222
4222
|
class REXML::Text < ::REXML::Child
|
|
4223
4223
|
include ::Comparable
|
|
4224
4224
|
|
|
@@ -4261,7 +4261,7 @@ class REXML::Text < ::REXML::Child
|
|
|
4261
4261
|
#
|
|
4262
4262
|
# @return [Text] a new instance of Text
|
|
4263
4263
|
#
|
|
4264
|
-
# source://rexml
|
|
4264
|
+
# source://rexml//lib/rexml/text.rb#94
|
|
4265
4265
|
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
4266
|
|
|
4267
4267
|
# Appends text to this text node. The text is appended in the +raw+ mode
|
|
@@ -4270,46 +4270,46 @@ class REXML::Text < ::REXML::Child
|
|
|
4270
4270
|
# +returns+ the text itself to enable method chain like
|
|
4271
4271
|
# 'text << "XXX" << "YYY"'.
|
|
4272
4272
|
#
|
|
4273
|
-
# source://rexml
|
|
4273
|
+
# source://rexml//lib/rexml/text.rb#194
|
|
4274
4274
|
def <<(to_append); end
|
|
4275
4275
|
|
|
4276
4276
|
# +other+ a String or a Text
|
|
4277
4277
|
# +returns+ the result of (to_s <=> arg.to_s)
|
|
4278
4278
|
#
|
|
4279
|
-
# source://rexml
|
|
4279
|
+
# source://rexml//lib/rexml/text.rb#203
|
|
4280
4280
|
def <=>(other); end
|
|
4281
4281
|
|
|
4282
|
-
# source://rexml
|
|
4282
|
+
# source://rexml//lib/rexml/text.rb#184
|
|
4283
4283
|
def clone; end
|
|
4284
4284
|
|
|
4285
|
-
# source://rexml
|
|
4285
|
+
# source://rexml//lib/rexml/text.rb#207
|
|
4286
4286
|
def doctype; end
|
|
4287
4287
|
|
|
4288
4288
|
# @return [Boolean]
|
|
4289
4289
|
#
|
|
4290
|
-
# source://rexml
|
|
4290
|
+
# source://rexml//lib/rexml/text.rb#179
|
|
4291
4291
|
def empty?; end
|
|
4292
4292
|
|
|
4293
|
-
# source://rexml
|
|
4293
|
+
# source://rexml//lib/rexml/text.rb#278
|
|
4294
4294
|
def indent_text(string, level = T.unsafe(nil), style = T.unsafe(nil), indentfirstline = T.unsafe(nil)); end
|
|
4295
4295
|
|
|
4296
|
-
# source://rexml
|
|
4296
|
+
# source://rexml//lib/rexml/text.rb#233
|
|
4297
4297
|
def inspect; end
|
|
4298
4298
|
|
|
4299
|
-
# source://rexml
|
|
4299
|
+
# source://rexml//lib/rexml/text.rb#175
|
|
4300
4300
|
def node_type; end
|
|
4301
4301
|
|
|
4302
|
-
# source://rexml
|
|
4302
|
+
# source://rexml//lib/rexml/text.rb#125
|
|
4303
4303
|
def parent=(parent); end
|
|
4304
4304
|
|
|
4305
4305
|
# If +raw+ is true, then REXML leaves the value alone
|
|
4306
4306
|
#
|
|
4307
|
-
# source://rexml
|
|
4307
|
+
# source://rexml//lib/rexml/text.rb#21
|
|
4308
4308
|
def raw; end
|
|
4309
4309
|
|
|
4310
4310
|
# If +raw+ is true, then REXML leaves the value alone
|
|
4311
4311
|
#
|
|
4312
|
-
# source://rexml
|
|
4312
|
+
# source://rexml//lib/rexml/text.rb#21
|
|
4313
4313
|
def raw=(_arg0); end
|
|
4314
4314
|
|
|
4315
4315
|
# Returns the string value of this text node. This string is always
|
|
@@ -4326,7 +4326,7 @@ class REXML::Text < ::REXML::Child
|
|
|
4326
4326
|
# u = Text.new( "sean russell", false, nil, true )
|
|
4327
4327
|
# u.to_s #-> "sean russell"
|
|
4328
4328
|
#
|
|
4329
|
-
# source://rexml
|
|
4329
|
+
# source://rexml//lib/rexml/text.rb#228
|
|
4330
4330
|
def to_s; end
|
|
4331
4331
|
|
|
4332
4332
|
# Returns the string value of this text. This is the text without
|
|
@@ -4343,7 +4343,7 @@ class REXML::Text < ::REXML::Child
|
|
|
4343
4343
|
# u = Text.new( "sean russell", false, nil, true )
|
|
4344
4344
|
# u.value #-> "sean russell"
|
|
4345
4345
|
#
|
|
4346
|
-
# source://rexml
|
|
4346
|
+
# source://rexml//lib/rexml/text.rb#250
|
|
4347
4347
|
def value; end
|
|
4348
4348
|
|
|
4349
4349
|
# Sets the contents of this text node. This expects the text to be
|
|
@@ -4354,16 +4354,16 @@ class REXML::Text < ::REXML::Child
|
|
|
4354
4354
|
# e[0].value = "bar" # <a>bar</a>
|
|
4355
4355
|
# e[0].value = "<a>" # <a><a></a>
|
|
4356
4356
|
#
|
|
4357
|
-
# source://rexml
|
|
4357
|
+
# source://rexml//lib/rexml/text.rb#261
|
|
4358
4358
|
def value=(val); end
|
|
4359
4359
|
|
|
4360
|
-
# source://rexml
|
|
4360
|
+
# source://rexml//lib/rexml/text.rb#267
|
|
4361
4361
|
def wrap(string, width, addnewline = T.unsafe(nil)); end
|
|
4362
4362
|
|
|
4363
4363
|
# == DEPRECATED
|
|
4364
4364
|
# See REXML::Formatters
|
|
4365
4365
|
#
|
|
4366
|
-
# source://rexml
|
|
4366
|
+
# source://rexml//lib/rexml/text.rb#293
|
|
4367
4367
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
4368
4368
|
|
|
4369
4369
|
# Writes out text, substituting special characters beforehand.
|
|
@@ -4381,124 +4381,124 @@ class REXML::Text < ::REXML::Child
|
|
|
4381
4381
|
# }
|
|
4382
4382
|
# puts ascOut
|
|
4383
4383
|
#
|
|
4384
|
-
# source://rexml
|
|
4384
|
+
# source://rexml//lib/rexml/text.rb#325
|
|
4385
4385
|
def write_with_substitution(out, input); end
|
|
4386
4386
|
|
|
4387
4387
|
# FIXME
|
|
4388
4388
|
# This probably won't work properly
|
|
4389
4389
|
#
|
|
4390
|
-
# source://rexml
|
|
4390
|
+
# source://rexml//lib/rexml/text.rb#305
|
|
4391
4391
|
def xpath; end
|
|
4392
4392
|
|
|
4393
4393
|
private
|
|
4394
4394
|
|
|
4395
|
-
# source://rexml
|
|
4395
|
+
# source://rexml//lib/rexml/text.rb#338
|
|
4396
4396
|
def clear_cache; end
|
|
4397
4397
|
|
|
4398
4398
|
class << self
|
|
4399
4399
|
# check for illegal characters
|
|
4400
4400
|
#
|
|
4401
|
-
# source://rexml
|
|
4401
|
+
# source://rexml//lib/rexml/text.rb#131
|
|
4402
4402
|
def check(string, pattern, doctype); end
|
|
4403
4403
|
|
|
4404
|
-
# source://rexml
|
|
4404
|
+
# source://rexml//lib/rexml/text.rb#405
|
|
4405
4405
|
def expand(ref, doctype, filter); end
|
|
4406
4406
|
|
|
4407
4407
|
# Escapes all possible entities
|
|
4408
4408
|
#
|
|
4409
|
-
# source://rexml
|
|
4409
|
+
# source://rexml//lib/rexml/text.rb#370
|
|
4410
4410
|
def normalize(input, doctype = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
|
4411
4411
|
|
|
4412
4412
|
# Reads text, substituting entities
|
|
4413
4413
|
#
|
|
4414
|
-
# source://rexml
|
|
4414
|
+
# source://rexml//lib/rexml/text.rb#344
|
|
4415
4415
|
def read_with_substitution(input, illegal = T.unsafe(nil)); end
|
|
4416
4416
|
|
|
4417
4417
|
# Unescapes all possible entities
|
|
4418
4418
|
#
|
|
4419
|
-
# source://rexml
|
|
4419
|
+
# source://rexml//lib/rexml/text.rb#392
|
|
4420
4420
|
def unnormalize(string, doctype = T.unsafe(nil), filter = T.unsafe(nil), illegal = T.unsafe(nil)); end
|
|
4421
4421
|
end
|
|
4422
4422
|
end
|
|
4423
4423
|
|
|
4424
|
-
# source://rexml
|
|
4424
|
+
# source://rexml//lib/rexml/undefinednamespaceexception.rb#4
|
|
4425
4425
|
class REXML::UndefinedNamespaceException < ::REXML::ParseException
|
|
4426
4426
|
# @return [UndefinedNamespaceException] a new instance of UndefinedNamespaceException
|
|
4427
4427
|
#
|
|
4428
|
-
# source://rexml
|
|
4428
|
+
# source://rexml//lib/rexml/undefinednamespaceexception.rb#5
|
|
4429
4429
|
def initialize(prefix, source, parser); end
|
|
4430
4430
|
end
|
|
4431
4431
|
|
|
4432
|
-
# source://rexml
|
|
4432
|
+
# source://rexml//lib/rexml/validation/validationexception.rb#4
|
|
4433
4433
|
class REXML::Validation::ValidationException < ::RuntimeError
|
|
4434
4434
|
# @return [ValidationException] a new instance of ValidationException
|
|
4435
4435
|
#
|
|
4436
|
-
# source://rexml
|
|
4436
|
+
# source://rexml//lib/rexml/validation/validationexception.rb#5
|
|
4437
4437
|
def initialize(msg); end
|
|
4438
4438
|
end
|
|
4439
4439
|
|
|
4440
4440
|
# NEEDS DOCUMENTATION
|
|
4441
4441
|
#
|
|
4442
|
-
# source://rexml
|
|
4442
|
+
# source://rexml//lib/rexml/xmldecl.rb#8
|
|
4443
4443
|
class REXML::XMLDecl < ::REXML::Child
|
|
4444
4444
|
include ::REXML::Encoding
|
|
4445
4445
|
|
|
4446
4446
|
# @return [XMLDecl] a new instance of XMLDecl
|
|
4447
4447
|
#
|
|
4448
|
-
# source://rexml
|
|
4448
|
+
# source://rexml//lib/rexml/xmldecl.rb#20
|
|
4449
4449
|
def initialize(version = T.unsafe(nil), encoding = T.unsafe(nil), standalone = T.unsafe(nil)); end
|
|
4450
4450
|
|
|
4451
|
-
# source://rexml
|
|
4451
|
+
# source://rexml//lib/rexml/xmldecl.rb#56
|
|
4452
4452
|
def ==(other); end
|
|
4453
4453
|
|
|
4454
|
-
# source://rexml
|
|
4454
|
+
# source://rexml//lib/rexml/xmldecl.rb#39
|
|
4455
4455
|
def clone; end
|
|
4456
4456
|
|
|
4457
|
-
# source://rexml
|
|
4457
|
+
# source://rexml//lib/rexml/xmldecl.rb#102
|
|
4458
4458
|
def dowrite; end
|
|
4459
4459
|
|
|
4460
|
-
# source://rexml
|
|
4460
|
+
# source://rexml//lib/rexml/xmldecl.rb#76
|
|
4461
4461
|
def encoding=(enc); end
|
|
4462
4462
|
|
|
4463
|
-
# source://rexml
|
|
4463
|
+
# source://rexml//lib/rexml/xmldecl.rb#106
|
|
4464
4464
|
def inspect; end
|
|
4465
4465
|
|
|
4466
|
-
# source://rexml
|
|
4466
|
+
# source://rexml//lib/rexml/xmldecl.rb#69
|
|
4467
4467
|
def node_type; end
|
|
4468
4468
|
|
|
4469
|
-
# source://rexml
|
|
4469
|
+
# source://rexml//lib/rexml/xmldecl.rb#98
|
|
4470
4470
|
def nowrite; end
|
|
4471
4471
|
|
|
4472
|
-
# source://rexml
|
|
4472
|
+
# source://rexml//lib/rexml/encoding.rb#7
|
|
4473
4473
|
def old_enc=(encoding); end
|
|
4474
4474
|
|
|
4475
4475
|
# Returns the value of attribute standalone.
|
|
4476
4476
|
#
|
|
4477
|
-
# source://rexml
|
|
4477
|
+
# source://rexml//lib/rexml/xmldecl.rb#17
|
|
4478
4478
|
def stand_alone?; end
|
|
4479
4479
|
|
|
4480
4480
|
# Returns the value of attribute standalone.
|
|
4481
4481
|
#
|
|
4482
|
-
# source://rexml
|
|
4482
|
+
# source://rexml//lib/rexml/xmldecl.rb#17
|
|
4483
4483
|
def standalone; end
|
|
4484
4484
|
|
|
4485
4485
|
# Sets the attribute standalone
|
|
4486
4486
|
#
|
|
4487
4487
|
# @param value the value to set the attribute standalone to.
|
|
4488
4488
|
#
|
|
4489
|
-
# source://rexml
|
|
4489
|
+
# source://rexml//lib/rexml/xmldecl.rb#17
|
|
4490
4490
|
def standalone=(_arg0); end
|
|
4491
4491
|
|
|
4492
4492
|
# Returns the value of attribute version.
|
|
4493
4493
|
#
|
|
4494
|
-
# source://rexml
|
|
4494
|
+
# source://rexml//lib/rexml/xmldecl.rb#17
|
|
4495
4495
|
def version; end
|
|
4496
4496
|
|
|
4497
4497
|
# Sets the attribute version
|
|
4498
4498
|
#
|
|
4499
4499
|
# @param value the value to set the attribute version to.
|
|
4500
4500
|
#
|
|
4501
|
-
# source://rexml
|
|
4501
|
+
# source://rexml//lib/rexml/xmldecl.rb#17
|
|
4502
4502
|
def version=(_arg0); end
|
|
4503
4503
|
|
|
4504
4504
|
# indent::
|
|
@@ -4508,25 +4508,25 @@ class REXML::XMLDecl < ::REXML::Child
|
|
|
4508
4508
|
# ie_hack::
|
|
4509
4509
|
# Ignored
|
|
4510
4510
|
#
|
|
4511
|
-
# source://rexml
|
|
4511
|
+
# source://rexml//lib/rexml/xmldecl.rb#49
|
|
4512
4512
|
def write(writer, indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
|
|
4513
4513
|
|
|
4514
4514
|
# Returns the value of attribute writeencoding.
|
|
4515
4515
|
#
|
|
4516
|
-
# source://rexml
|
|
4516
|
+
# source://rexml//lib/rexml/xmldecl.rb#18
|
|
4517
4517
|
def writeencoding; end
|
|
4518
4518
|
|
|
4519
4519
|
# Returns the value of attribute writethis.
|
|
4520
4520
|
#
|
|
4521
|
-
# source://rexml
|
|
4521
|
+
# source://rexml//lib/rexml/xmldecl.rb#18
|
|
4522
4522
|
def writethis; end
|
|
4523
4523
|
|
|
4524
|
-
# source://rexml
|
|
4524
|
+
# source://rexml//lib/rexml/xmldecl.rb#63
|
|
4525
4525
|
def xmldecl(version, encoding, standalone); end
|
|
4526
4526
|
|
|
4527
4527
|
private
|
|
4528
4528
|
|
|
4529
|
-
# source://rexml
|
|
4529
|
+
# source://rexml//lib/rexml/xmldecl.rb#111
|
|
4530
4530
|
def content(enc); end
|
|
4531
4531
|
|
|
4532
4532
|
class << self
|
|
@@ -4536,31 +4536,31 @@ class REXML::XMLDecl < ::REXML::Child
|
|
|
4536
4536
|
#
|
|
4537
4537
|
# Note that XML 1.1 documents *must* include an XML declaration
|
|
4538
4538
|
#
|
|
4539
|
-
# source://rexml
|
|
4539
|
+
# source://rexml//lib/rexml/xmldecl.rb#92
|
|
4540
4540
|
def default; end
|
|
4541
4541
|
end
|
|
4542
4542
|
end
|
|
4543
4543
|
|
|
4544
4544
|
# @private
|
|
4545
4545
|
#
|
|
4546
|
-
# source://rexml
|
|
4546
|
+
# source://rexml//lib/rexml/xpath_parser.rb#959
|
|
4547
4547
|
class REXML::XPathNode
|
|
4548
4548
|
# @return [XPathNode] a new instance of XPathNode
|
|
4549
4549
|
#
|
|
4550
|
-
# source://rexml
|
|
4550
|
+
# source://rexml//lib/rexml/xpath_parser.rb#961
|
|
4551
4551
|
def initialize(node, context = T.unsafe(nil)); end
|
|
4552
4552
|
|
|
4553
4553
|
# Returns the value of attribute context.
|
|
4554
4554
|
#
|
|
4555
|
-
# source://rexml
|
|
4555
|
+
# source://rexml//lib/rexml/xpath_parser.rb#960
|
|
4556
4556
|
def context; end
|
|
4557
4557
|
|
|
4558
|
-
# source://rexml
|
|
4558
|
+
# source://rexml//lib/rexml/xpath_parser.rb#970
|
|
4559
4559
|
def position; end
|
|
4560
4560
|
|
|
4561
4561
|
# Returns the value of attribute raw_node.
|
|
4562
4562
|
#
|
|
4563
|
-
# source://rexml
|
|
4563
|
+
# source://rexml//lib/rexml/xpath_parser.rb#960
|
|
4564
4564
|
def raw_node; end
|
|
4565
4565
|
end
|
|
4566
4566
|
|
|
@@ -4569,16 +4569,16 @@ end
|
|
|
4569
4569
|
# There is strange, dark magic at work in this code. Beware. Go back! Go
|
|
4570
4570
|
# back while you still can!
|
|
4571
4571
|
#
|
|
4572
|
-
# source://rexml
|
|
4572
|
+
# source://rexml//lib/rexml/xpath_parser.rb#54
|
|
4573
4573
|
class REXML::XPathParser
|
|
4574
4574
|
include ::REXML::XMLTokens
|
|
4575
4575
|
|
|
4576
4576
|
# @return [XPathParser] a new instance of XPathParser
|
|
4577
4577
|
#
|
|
4578
|
-
# source://rexml
|
|
4578
|
+
# source://rexml//lib/rexml/xpath_parser.rb#60
|
|
4579
4579
|
def initialize(strict: T.unsafe(nil)); end
|
|
4580
4580
|
|
|
4581
|
-
# source://rexml
|
|
4581
|
+
# source://rexml//lib/rexml/xpath_parser.rb#94
|
|
4582
4582
|
def []=(variable_name, value); end
|
|
4583
4583
|
|
|
4584
4584
|
# Performs a depth-first (document order) XPath search, and returns the
|
|
@@ -4586,66 +4586,66 @@ class REXML::XPathParser
|
|
|
4586
4586
|
#
|
|
4587
4587
|
# FIXME: This method is incomplete!
|
|
4588
4588
|
#
|
|
4589
|
-
# source://rexml
|
|
4589
|
+
# source://rexml//lib/rexml/xpath_parser.rb#103
|
|
4590
4590
|
def first(path_stack, node); end
|
|
4591
4591
|
|
|
4592
|
-
# source://rexml
|
|
4592
|
+
# source://rexml//lib/rexml/xpath_parser.rb#84
|
|
4593
4593
|
def get_first(path, nodeset); end
|
|
4594
4594
|
|
|
4595
|
-
# source://rexml
|
|
4595
|
+
# source://rexml//lib/rexml/xpath_parser.rb#139
|
|
4596
4596
|
def match(path_stack, nodeset); end
|
|
4597
4597
|
|
|
4598
|
-
# source://rexml
|
|
4598
|
+
# source://rexml//lib/rexml/xpath_parser.rb#69
|
|
4599
4599
|
def namespaces=(namespaces = T.unsafe(nil)); end
|
|
4600
4600
|
|
|
4601
|
-
# source://rexml
|
|
4601
|
+
# source://rexml//lib/rexml/xpath_parser.rb#79
|
|
4602
4602
|
def parse(path, nodeset); end
|
|
4603
4603
|
|
|
4604
|
-
# source://rexml
|
|
4604
|
+
# source://rexml//lib/rexml/xpath_parser.rb#89
|
|
4605
4605
|
def predicate(path, nodeset); end
|
|
4606
4606
|
|
|
4607
|
-
# source://rexml
|
|
4607
|
+
# source://rexml//lib/rexml/xpath_parser.rb#74
|
|
4608
4608
|
def variables=(vars = T.unsafe(nil)); end
|
|
4609
4609
|
|
|
4610
4610
|
private
|
|
4611
4611
|
|
|
4612
|
-
# source://rexml
|
|
4612
|
+
# source://rexml//lib/rexml/xpath_parser.rb#775
|
|
4613
4613
|
def child(nodeset); end
|
|
4614
4614
|
|
|
4615
|
-
# source://rexml
|
|
4615
|
+
# source://rexml//lib/rexml/xpath_parser.rb#916
|
|
4616
4616
|
def compare(a, operator, b); end
|
|
4617
4617
|
|
|
4618
|
-
# source://rexml
|
|
4618
|
+
# source://rexml//lib/rexml/xpath_parser.rb#678
|
|
4619
4619
|
def descendant(nodeset, include_self); end
|
|
4620
4620
|
|
|
4621
|
-
# source://rexml
|
|
4621
|
+
# source://rexml//lib/rexml/xpath_parser.rb#689
|
|
4622
4622
|
def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end
|
|
4623
4623
|
|
|
4624
|
-
# source://rexml
|
|
4624
|
+
# source://rexml//lib/rexml/xpath_parser.rb#938
|
|
4625
4625
|
def each_unnode(nodeset); end
|
|
4626
4626
|
|
|
4627
|
-
# source://rexml
|
|
4627
|
+
# source://rexml//lib/rexml/xpath_parser.rb#637
|
|
4628
4628
|
def enter(tag, *args); end
|
|
4629
4629
|
|
|
4630
|
-
# source://rexml
|
|
4630
|
+
# source://rexml//lib/rexml/xpath_parser.rb#815
|
|
4631
4631
|
def equality_relational_compare(set1, op, set2); end
|
|
4632
4632
|
|
|
4633
|
-
# source://rexml
|
|
4633
|
+
# source://rexml//lib/rexml/xpath_parser.rb#591
|
|
4634
4634
|
def evaluate_predicate(expression, nodesets); end
|
|
4635
4635
|
|
|
4636
4636
|
# Expr takes a stack of path elements and a set of nodes (either a Parent
|
|
4637
4637
|
# or an Array and returns an Array of matching nodes
|
|
4638
4638
|
#
|
|
4639
|
-
# source://rexml
|
|
4639
|
+
# source://rexml//lib/rexml/xpath_parser.rb#175
|
|
4640
4640
|
def expr(path_stack, nodeset, context = T.unsafe(nil)); end
|
|
4641
4641
|
|
|
4642
|
-
# source://rexml
|
|
4642
|
+
# source://rexml//lib/rexml/xpath_parser.rb#582
|
|
4643
4643
|
def filter_nodeset(nodeset); end
|
|
4644
4644
|
|
|
4645
|
-
# source://rexml
|
|
4645
|
+
# source://rexml//lib/rexml/xpath_parser.rb#745
|
|
4646
4646
|
def following(node); end
|
|
4647
4647
|
|
|
4648
|
-
# source://rexml
|
|
4648
|
+
# source://rexml//lib/rexml/xpath_parser.rb#756
|
|
4649
4649
|
def following_node_of(node); end
|
|
4650
4650
|
|
|
4651
4651
|
# Returns a String namespace for a node, given a prefix
|
|
@@ -4654,22 +4654,22 @@ class REXML::XPathParser
|
|
|
4654
4654
|
# 1. Use the supplied namespace mapping first.
|
|
4655
4655
|
# 2. If no mapping was supplied, use the context node to look up the namespace
|
|
4656
4656
|
#
|
|
4657
|
-
# source://rexml
|
|
4657
|
+
# source://rexml//lib/rexml/xpath_parser.rb#163
|
|
4658
4658
|
def get_namespace(node, prefix); end
|
|
4659
4659
|
|
|
4660
|
-
# source://rexml
|
|
4660
|
+
# source://rexml//lib/rexml/xpath_parser.rb#642
|
|
4661
4661
|
def leave(tag, *args); end
|
|
4662
4662
|
|
|
4663
|
-
# source://rexml
|
|
4663
|
+
# source://rexml//lib/rexml/xpath_parser.rb#763
|
|
4664
4664
|
def next_sibling_node(node); end
|
|
4665
4665
|
|
|
4666
|
-
# source://rexml
|
|
4666
|
+
# source://rexml//lib/rexml/xpath_parser.rb#477
|
|
4667
4667
|
def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end
|
|
4668
4668
|
|
|
4669
|
-
# source://rexml
|
|
4669
|
+
# source://rexml//lib/rexml/xpath_parser.rb#802
|
|
4670
4670
|
def norm(b); end
|
|
4671
4671
|
|
|
4672
|
-
# source://rexml
|
|
4672
|
+
# source://rexml//lib/rexml/xpath_parser.rb#890
|
|
4673
4673
|
def normalize_compare_values(a, operator, b); end
|
|
4674
4674
|
|
|
4675
4675
|
# Builds a nodeset of all of the preceding nodes of the supplied node,
|
|
@@ -4677,10 +4677,10 @@ class REXML::XPathParser
|
|
|
4677
4677
|
# preceding:: includes every element in the document that precedes this node,
|
|
4678
4678
|
# except for ancestors
|
|
4679
4679
|
#
|
|
4680
|
-
# source://rexml
|
|
4680
|
+
# source://rexml//lib/rexml/xpath_parser.rb#708
|
|
4681
4681
|
def preceding(node); end
|
|
4682
4682
|
|
|
4683
|
-
# source://rexml
|
|
4683
|
+
# source://rexml//lib/rexml/xpath_parser.rb#730
|
|
4684
4684
|
def preceding_node_of(node); end
|
|
4685
4685
|
|
|
4686
4686
|
# Reorders an array of nodes so that they are in document order
|
|
@@ -4692,23 +4692,26 @@ class REXML::XPathParser
|
|
|
4692
4692
|
# I wouldn't have to do this. Maybe add a document IDX for each node?
|
|
4693
4693
|
# Problems with mutable documents. Or, rewrite everything.
|
|
4694
4694
|
#
|
|
4695
|
-
# source://rexml
|
|
4695
|
+
# source://rexml//lib/rexml/xpath_parser.rb#655
|
|
4696
4696
|
def sort(array_of_nodes, order); end
|
|
4697
4697
|
|
|
4698
|
-
# source://rexml
|
|
4698
|
+
# source://rexml//lib/rexml/xpath_parser.rb#441
|
|
4699
4699
|
def step(path_stack, any_type: T.unsafe(nil), order: T.unsafe(nil)); end
|
|
4700
4700
|
|
|
4701
4701
|
# @return [Boolean]
|
|
4702
4702
|
#
|
|
4703
|
-
# source://rexml
|
|
4703
|
+
# source://rexml//lib/rexml/xpath_parser.rb#154
|
|
4704
4704
|
def strict?; end
|
|
4705
4705
|
|
|
4706
|
-
# source://rexml
|
|
4706
|
+
# source://rexml//lib/rexml/xpath_parser.rb#630
|
|
4707
4707
|
def trace(*args); end
|
|
4708
4708
|
|
|
4709
|
-
# source://rexml
|
|
4709
|
+
# source://rexml//lib/rexml/xpath_parser.rb#950
|
|
4710
4710
|
def unnode(nodeset); end
|
|
4711
4711
|
|
|
4712
|
-
# source://rexml
|
|
4712
|
+
# source://rexml//lib/rexml/xpath_parser.rb#877
|
|
4713
4713
|
def value_type(value); end
|
|
4714
4714
|
end
|
|
4715
|
+
|
|
4716
|
+
# source://rexml//lib/rexml/xpath_parser.rb#58
|
|
4717
|
+
REXML::XPathParser::DEBUG = T.let(T.unsafe(nil), FalseClass)
|