libxml-ruby 0.6.0-x86-mswin32-60 → 0.7.0-x86-mswin32-60
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.
- data/CHANGES +42 -0
- data/README +123 -117
- data/doc/classes/XML.html +226 -0
- data/doc/classes/XML/Attr.html +969 -0
- data/doc/classes/XML/Attributes.html +487 -0
- data/doc/classes/XML/Document.html +1423 -0
- data/doc/classes/XML/Dtd.html +159 -0
- data/doc/classes/XML/Error.html +111 -0
- data/doc/classes/XML/HTMLParser.html +330 -0
- data/doc/classes/XML/InputCallbacks.html +154 -0
- data/doc/classes/XML/NS.html +366 -0
- data/doc/classes/XML/Node.html +3292 -0
- data/doc/classes/XML/Node/FailedModify.html +111 -0
- data/doc/classes/XML/Node/Set.html +435 -0
- data/doc/classes/XML/Node/SetNamespace.html +111 -0
- data/doc/classes/XML/Node/UnknownType.html +111 -0
- data/doc/classes/XML/Parser.html +2178 -0
- data/doc/classes/XML/Parser/Context.html +1233 -0
- data/doc/classes/XML/Parser/ParseError.html +111 -0
- data/doc/classes/XML/Reader.html +2173 -0
- data/doc/classes/XML/SaxParser.html +396 -0
- data/doc/classes/XML/SiblingEnum.html +142 -0
- data/doc/classes/XML/State.html +118 -0
- data/doc/classes/XML/Tree.html +224 -0
- data/doc/classes/XML/XInclude.html +117 -0
- data/doc/classes/XML/XInclude/Error.html +111 -0
- data/doc/classes/XML/XMLParserOptions.html +198 -0
- data/doc/classes/XML/XPath.html +269 -0
- data/doc/classes/XML/XPath/Context.html +193 -0
- data/doc/classes/XML/XPath/InvalidPath.html +111 -0
- data/doc/classes/XML/XPath/Object.html +439 -0
- data/doc/classes/XML/XPointer.html +164 -0
- data/doc/classes/XML/XPointer/Context.html +117 -0
- data/doc/classes/XML/XPointer/Context/InvalidPath.html +111 -0
- data/doc/classes/XML/XPointer/InvalidExpression.html +111 -0
- data/doc/classes/singleton.html +114 -0
- data/doc/created.rid +1 -0
- data/doc/files/CHANGES.html +375 -0
- data/doc/files/LICENSE.html +133 -0
- data/doc/files/README.html +279 -0
- data/doc/files/VERSION.html +107 -0
- data/doc/files/ext/libxml/cbg_c.html +101 -0
- data/doc/files/ext/libxml/libxml_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_attr_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_attributes_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_document_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_dtd_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_html_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_input_cbg_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_node_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_node_set_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_ns_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_parser_context_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_reader_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_sax_parser_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_schema_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_state_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_tree_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xinclude_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_context_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpath_object_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpointer_c.html +101 -0
- data/doc/files/ext/libxml/ruby_xml_xpointer_context_c.html +101 -0
- data/doc/files/lib/libxml_rb.html +115 -0
- data/doc/files/lib/xml/libxml_rb.html +114 -0
- data/doc/fr_class_index.html +60 -0
- data/doc/fr_file_index.html +56 -0
- data/doc/fr_method_index.html +373 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/ext/libxml/cbg.c +76 -76
- data/ext/libxml/extconf.rb +308 -308
- data/ext/libxml/libxml.c +58 -62
- data/ext/libxml/ruby_libxml.h +1 -0
- data/ext/libxml/ruby_xml_attr.c +201 -113
- data/ext/libxml/ruby_xml_attr.h +6 -9
- data/ext/libxml/ruby_xml_attributes.c +268 -0
- data/ext/libxml/ruby_xml_attributes.h +17 -0
- data/ext/libxml/ruby_xml_document.c +80 -66
- data/ext/libxml/ruby_xml_dtd.c +2 -2
- data/ext/libxml/ruby_xml_dtd.h +17 -17
- data/ext/libxml/ruby_xml_html_parser.c +18 -19
- data/ext/libxml/ruby_xml_html_parser.h +29 -29
- data/ext/libxml/ruby_xml_input_cbg.c +6 -0
- data/ext/libxml/ruby_xml_input_cbg.h +20 -20
- data/ext/libxml/ruby_xml_node.c +438 -536
- data/ext/libxml/ruby_xml_node.h +17 -27
- data/ext/libxml/ruby_xml_node_set.c +10 -9
- data/ext/libxml/ruby_xml_node_set.h +20 -20
- data/ext/libxml/ruby_xml_ns.c +60 -69
- data/ext/libxml/ruby_xml_ns.h +12 -21
- data/ext/libxml/ruby_xml_parser.c +54 -53
- data/ext/libxml/ruby_xml_parser.h +31 -31
- data/ext/libxml/ruby_xml_parser_context.c +37 -91
- data/ext/libxml/ruby_xml_parser_context.h +20 -22
- data/ext/libxml/ruby_xml_reader.h +14 -14
- data/ext/libxml/ruby_xml_sax_parser.c +55 -55
- data/ext/libxml/ruby_xml_sax_parser.h +56 -56
- data/ext/libxml/ruby_xml_schema.c +44 -51
- data/ext/libxml/ruby_xml_schema.h +16 -16
- data/ext/libxml/ruby_xml_state.c +35 -96
- data/ext/libxml/ruby_xml_state.h +2 -3
- data/ext/libxml/ruby_xml_tree.h +12 -12
- data/ext/libxml/ruby_xml_xinclude.h +13 -13
- data/ext/libxml/ruby_xml_xpath.c +57 -18
- data/ext/libxml/ruby_xml_xpath.h +23 -23
- data/ext/libxml/ruby_xml_xpath_context.c +11 -7
- data/ext/libxml/ruby_xml_xpath_context.h +20 -20
- data/ext/libxml/ruby_xml_xpath_object.c +9 -16
- data/ext/libxml/ruby_xml_xpath_object.h +4 -10
- data/ext/libxml/ruby_xml_xpointer.c +11 -11
- data/ext/libxml/ruby_xml_xpointer.h +27 -27
- data/ext/libxml/ruby_xml_xpointer_context.h +18 -18
- data/ext/libxml/version.h +2 -2
- data/lib/libxml.rb +134 -125
- data/lib/libxml_ruby.so +0 -0
- data/mingw/libiconv-2.dll +0 -0
- data/mingw/libxml2-2.dll +0 -0
- data/mingw/libxml_ruby.so +0 -0
- data/test/ets_copy_bug.rb +1 -1
- data/test/ets_copy_bug2.rb +16 -27
- data/test/ets_doc_to_s.rb +1 -1
- data/test/ets_gpx.rb +1 -1
- data/test/ets_node_gc.rb +1 -1
- data/test/ets_tsr.rb +1 -1
- data/test/tc_well_formed.rb +1 -1
- data/test/tc_xml_attributes.rb +106 -0
- data/test/tc_xml_document.rb +10 -10
- data/test/tc_xml_document_write3.rb +1 -1
- data/test/tc_xml_dtd.rb +49 -0
- data/test/tc_xml_html_parser.rb +3 -3
- data/test/tc_xml_node.rb +69 -33
- data/test/tc_xml_node_attr.rb +170 -0
- data/test/{tc_xml_node8.rb → tc_xml_node_cdata.rb} +2 -2
- data/test/{tc_xml_node9.rb → tc_xml_node_comment.rb} +3 -3
- data/test/tc_xml_node_edit.rb +91 -0
- data/test/tc_xml_parser.rb +97 -50
- data/test/tc_xml_parser_context.rb +61 -23
- data/test/tc_xml_schema.rb +39 -0
- data/test/tc_xml_xinclude.rb +5 -6
- data/test/tc_xml_xpath.rb +51 -27
- data/test/test_suite.rb +27 -0
- data/vc/{libxml.sln → libxml_ruby.sln} +5 -5
- data/vc/{libxml.vcproj → libxml_ruby.vcproj} +9 -1
- metadata +106 -54
- data/mingw/mingw.rake +0 -36
- data/test/dtd-test.rb +0 -24
- data/test/merge_bug.rb +0 -55
- data/test/schema-test.rb +0 -74
- data/test/tc_xml_node2.rb +0 -25
- data/test/tc_xml_node3.rb +0 -27
- data/test/tc_xml_node4.rb +0 -86
- data/test/tc_xml_node5.rb +0 -52
- data/test/tc_xml_node6.rb +0 -27
- data/test/tc_xml_node7.rb +0 -35
- data/test/tc_xml_parser2.rb +0 -16
- data/test/tc_xml_parser3.rb +0 -23
- data/test/tc_xml_parser4.rb +0 -33
- data/test/tc_xml_parser5.rb +0 -27
- data/test/tc_xml_parser6.rb +0 -23
- data/test/tc_xml_parser7.rb +0 -28
- data/test/tc_xml_parser8.rb +0 -32
- data/test/tc_xml_parser9.rb +0 -11
- data/test/tc_xml_xpath2.rb +0 -14
- data/work/vc/debug/libxml.exp +0 -0
- data/work/vc/debug/libxml.ilk +0 -0
- data/work/vc/debug/libxml.lib +0 -0
- data/work/vc/debug/libxml.pdb +0 -0
- data/work/vc/debug/libxml.so +0 -0
@@ -0,0 +1,969 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: XML::Attr</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">XML::Attr</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/ext/libxml/libxml_c.html">
|
59
|
+
ext/libxml/libxml.c
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
<a href="../../files/lib/libxml_rb.html">
|
63
|
+
lib/libxml.rb
|
64
|
+
</a>
|
65
|
+
<br />
|
66
|
+
</td>
|
67
|
+
</tr>
|
68
|
+
|
69
|
+
<tr class="top-aligned-row">
|
70
|
+
<td><strong>Parent:</strong></td>
|
71
|
+
<td>
|
72
|
+
Object
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
</table>
|
76
|
+
</div>
|
77
|
+
<!-- banner header -->
|
78
|
+
|
79
|
+
<div id="bodyContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<div id="contextContent">
|
84
|
+
|
85
|
+
<div id="description">
|
86
|
+
<p>
|
87
|
+
Provides access to an single element attribute. Accessed by calling <a
|
88
|
+
href="Node.html#M000103">XML::Node#attributes</a> method.
|
89
|
+
</p>
|
90
|
+
<p>
|
91
|
+
Basic Usage:
|
92
|
+
</p>
|
93
|
+
<pre>
|
94
|
+
require 'libxml'
|
95
|
+
|
96
|
+
doc = XML::Document.new(<some_file>)
|
97
|
+
attribute = doc.root.attributes.get_attribute_ns('http://www.w3.org/1999/xlink', 'href')
|
98
|
+
attribute.name == 'href'
|
99
|
+
attribute.value == 'http://www.mydocument.com'
|
100
|
+
attribute.remove!
|
101
|
+
</pre>
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
<div id="method-list">
|
109
|
+
<h3 class="section-bar">Methods</h3>
|
110
|
+
|
111
|
+
<div class="name-list">
|
112
|
+
<a href="#M000213">child</a>
|
113
|
+
<a href="#M000214">child?</a>
|
114
|
+
<a href="#M000215">doc</a>
|
115
|
+
<a href="#M000216">doc?</a>
|
116
|
+
<a href="#M000234">each</a>
|
117
|
+
<a href="#M000233">each_attr</a>
|
118
|
+
<a href="#M000232">each_sibling</a>
|
119
|
+
<a href="#M000217">last</a>
|
120
|
+
<a href="#M000218">last?</a>
|
121
|
+
<a href="#M000219">name</a>
|
122
|
+
<a href="#M000212">new</a>
|
123
|
+
<a href="#M000220">next</a>
|
124
|
+
<a href="#M000221">next?</a>
|
125
|
+
<a href="#M000222">node_type_name</a>
|
126
|
+
<a href="#M000223">ns</a>
|
127
|
+
<a href="#M000224">ns?</a>
|
128
|
+
<a href="#M000225">parent</a>
|
129
|
+
<a href="#M000226">parent?</a>
|
130
|
+
<a href="#M000227">prev</a>
|
131
|
+
<a href="#M000228">prev?</a>
|
132
|
+
<a href="#M000229">remove!</a>
|
133
|
+
<a href="#M000236">to_a</a>
|
134
|
+
<a href="#M000235">to_h</a>
|
135
|
+
<a href="#M000237">to_s</a>
|
136
|
+
<a href="#M000230">value</a>
|
137
|
+
<a href="#M000231">value=</a>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
</div>
|
142
|
+
|
143
|
+
|
144
|
+
<!-- if includes -->
|
145
|
+
<div id="includes">
|
146
|
+
<h3 class="section-bar">Included Modules</h3>
|
147
|
+
|
148
|
+
<div id="includes-list">
|
149
|
+
<span class="include-name"><a href="SiblingEnum.html">XML::SiblingEnum</a></span>
|
150
|
+
<span class="include-name">Enumerable</span>
|
151
|
+
</div>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
<div id="section">
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<!-- if method_list -->
|
164
|
+
<div id="methods">
|
165
|
+
<h3 class="section-bar">Public Class methods</h3>
|
166
|
+
|
167
|
+
<div id="method-M000212" class="method-detail">
|
168
|
+
<a name="M000212"></a>
|
169
|
+
|
170
|
+
<div class="method-heading">
|
171
|
+
<a href="#M000212" class="method-signature">
|
172
|
+
<span class="method-name">attr.initialize(node, "name", "value")<br />
|
173
|
+
</span>
|
174
|
+
</a>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div class="method-description">
|
178
|
+
<p>
|
179
|
+
Creates a new attribute for the node.
|
180
|
+
</p>
|
181
|
+
<p>
|
182
|
+
node: The <a href="Node.html">XML::Node</a> that will contain the attribute
|
183
|
+
name: The name of the attribute value: The value of the attribute
|
184
|
+
</p>
|
185
|
+
<pre>
|
186
|
+
attr = XML::Attr.new(doc.root, 'name', 'libxml')
|
187
|
+
</pre>
|
188
|
+
<p><a class="source-toggle" href="#"
|
189
|
+
onclick="toggleCode('M000212-source');return false;">[Source]</a></p>
|
190
|
+
<div class="method-source-code" id="M000212-source">
|
191
|
+
<pre>
|
192
|
+
/*
|
193
|
+
* call-seq:
|
194
|
+
* attr.initialize(node, "name", "value")
|
195
|
+
*
|
196
|
+
* Creates a new attribute for the node.
|
197
|
+
*
|
198
|
+
* node: The XML::Node that will contain the attribute
|
199
|
+
* name: The name of the attribute
|
200
|
+
* value: The value of the attribute
|
201
|
+
*
|
202
|
+
* attr = XML::Attr.new(doc.root, 'name', 'libxml')
|
203
|
+
*/
|
204
|
+
VALUE
|
205
|
+
ruby_xml_attr_initialize(int argc, VALUE *argv, VALUE self) {
|
206
|
+
|
207
|
+
</pre>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
213
|
+
|
214
|
+
<div id="method-M000213" class="method-detail">
|
215
|
+
<a name="M000213"></a>
|
216
|
+
|
217
|
+
<div class="method-heading">
|
218
|
+
<a href="#M000213" class="method-signature">
|
219
|
+
<span class="method-name">attr.child → node<br />
|
220
|
+
</span>
|
221
|
+
</a>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
<div class="method-description">
|
225
|
+
<p>
|
226
|
+
Obtain this attribute’s child attribute(s).
|
227
|
+
</p>
|
228
|
+
<p><a class="source-toggle" href="#"
|
229
|
+
onclick="toggleCode('M000213-source');return false;">[Source]</a></p>
|
230
|
+
<div class="method-source-code" id="M000213-source">
|
231
|
+
<pre>
|
232
|
+
/*
|
233
|
+
* call-seq:
|
234
|
+
* attr.child -> node
|
235
|
+
*
|
236
|
+
* Obtain this attribute's child attribute(s).
|
237
|
+
*/
|
238
|
+
VALUE
|
239
|
+
ruby_xml_attr_child_get(VALUE self) {
|
240
|
+
|
241
|
+
</pre>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div id="method-M000214" class="method-detail">
|
247
|
+
<a name="M000214"></a>
|
248
|
+
|
249
|
+
<div class="method-heading">
|
250
|
+
<a href="#M000214" class="method-signature">
|
251
|
+
<span class="method-name">attr.child? → (true|false)<br />
|
252
|
+
</span>
|
253
|
+
</a>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div class="method-description">
|
257
|
+
<p>
|
258
|
+
Determine whether this attribute has child attributes.
|
259
|
+
</p>
|
260
|
+
<p><a class="source-toggle" href="#"
|
261
|
+
onclick="toggleCode('M000214-source');return false;">[Source]</a></p>
|
262
|
+
<div class="method-source-code" id="M000214-source">
|
263
|
+
<pre>
|
264
|
+
/*
|
265
|
+
* call-seq:
|
266
|
+
* attr.child? -> (true|false)
|
267
|
+
*
|
268
|
+
* Determine whether this attribute has child attributes.
|
269
|
+
*/
|
270
|
+
VALUE
|
271
|
+
ruby_xml_attr_child_q(VALUE self) {
|
272
|
+
|
273
|
+
</pre>
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
</div>
|
277
|
+
|
278
|
+
<div id="method-M000215" class="method-detail">
|
279
|
+
<a name="M000215"></a>
|
280
|
+
|
281
|
+
<div class="method-heading">
|
282
|
+
<a href="#M000215" class="method-signature">
|
283
|
+
<span class="method-name">attr.doc → XML::Document<br />
|
284
|
+
</span>
|
285
|
+
</a>
|
286
|
+
</div>
|
287
|
+
|
288
|
+
<div class="method-description">
|
289
|
+
<p>
|
290
|
+
Returns this attribute’s document.
|
291
|
+
</p>
|
292
|
+
<pre>
|
293
|
+
doc.root.attributes.get_attribute('name').doc == doc
|
294
|
+
</pre>
|
295
|
+
<p><a class="source-toggle" href="#"
|
296
|
+
onclick="toggleCode('M000215-source');return false;">[Source]</a></p>
|
297
|
+
<div class="method-source-code" id="M000215-source">
|
298
|
+
<pre>
|
299
|
+
/*
|
300
|
+
* call-seq:
|
301
|
+
* attr.doc -> XML::Document
|
302
|
+
*
|
303
|
+
* Returns this attribute's document.
|
304
|
+
*
|
305
|
+
* doc.root.attributes.get_attribute('name').doc == doc
|
306
|
+
*/
|
307
|
+
VALUE
|
308
|
+
ruby_xml_attr_doc_get(VALUE self) {
|
309
|
+
|
310
|
+
</pre>
|
311
|
+
</div>
|
312
|
+
</div>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
<div id="method-M000216" class="method-detail">
|
316
|
+
<a name="M000216"></a>
|
317
|
+
|
318
|
+
<div class="method-heading">
|
319
|
+
<a href="#M000216" class="method-signature">
|
320
|
+
<span class="method-name">attr.doc? → (true|false)<br />
|
321
|
+
</span>
|
322
|
+
</a>
|
323
|
+
</div>
|
324
|
+
|
325
|
+
<div class="method-description">
|
326
|
+
<p>
|
327
|
+
Determine whether this attribute is associated with an <a
|
328
|
+
href="Document.html">XML::Document</a>.
|
329
|
+
</p>
|
330
|
+
<p><a class="source-toggle" href="#"
|
331
|
+
onclick="toggleCode('M000216-source');return false;">[Source]</a></p>
|
332
|
+
<div class="method-source-code" id="M000216-source">
|
333
|
+
<pre>
|
334
|
+
/*
|
335
|
+
* call-seq:
|
336
|
+
* attr.doc? -> (true|false)
|
337
|
+
*
|
338
|
+
* Determine whether this attribute is associated with an
|
339
|
+
* XML::Document.
|
340
|
+
*/
|
341
|
+
VALUE
|
342
|
+
ruby_xml_attr_doc_q(VALUE self) {
|
343
|
+
|
344
|
+
</pre>
|
345
|
+
</div>
|
346
|
+
</div>
|
347
|
+
</div>
|
348
|
+
|
349
|
+
<div id="method-M000234" class="method-detail">
|
350
|
+
<a name="M000234"></a>
|
351
|
+
|
352
|
+
<div class="method-heading">
|
353
|
+
<span class="method-name">each</span><span class="method-args">(&blk)</span>
|
354
|
+
</div>
|
355
|
+
|
356
|
+
<div class="method-description">
|
357
|
+
<p>
|
358
|
+
Alias for <a href="Attr.html#M000232">each_sibling</a>
|
359
|
+
</p>
|
360
|
+
</div>
|
361
|
+
</div>
|
362
|
+
|
363
|
+
<div id="method-M000233" class="method-detail">
|
364
|
+
<a name="M000233"></a>
|
365
|
+
|
366
|
+
<div class="method-heading">
|
367
|
+
<span class="method-name">each_attr</span><span class="method-args">(&blk)</span>
|
368
|
+
</div>
|
369
|
+
|
370
|
+
<div class="method-description">
|
371
|
+
<p>
|
372
|
+
Alias for <a href="Attr.html#M000232">each_sibling</a>
|
373
|
+
</p>
|
374
|
+
</div>
|
375
|
+
</div>
|
376
|
+
|
377
|
+
<div id="method-M000232" class="method-detail">
|
378
|
+
<a name="M000232"></a>
|
379
|
+
|
380
|
+
<div class="method-heading">
|
381
|
+
<a href="#M000232" class="method-signature">
|
382
|
+
<span class="method-name">each_sibling</span><span class="method-args">(&blk)</span>
|
383
|
+
</a>
|
384
|
+
</div>
|
385
|
+
|
386
|
+
<div class="method-description">
|
387
|
+
<p><a class="source-toggle" href="#"
|
388
|
+
onclick="toggleCode('M000232-source');return false;">[Source]</a></p>
|
389
|
+
<div class="method-source-code" id="M000232-source">
|
390
|
+
<pre>
|
391
|
+
<span class="ruby-comment cmt"># File lib/libxml.rb, line 110</span>
|
392
|
+
110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each_sibling</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
393
|
+
111: <span class="ruby-identifier">siblings</span>(<span class="ruby-keyword kw">self</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>)
|
394
|
+
112: <span class="ruby-keyword kw">end</span>
|
395
|
+
</pre>
|
396
|
+
</div>
|
397
|
+
</div>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<div id="method-M000217" class="method-detail">
|
401
|
+
<a name="M000217"></a>
|
402
|
+
|
403
|
+
<div class="method-heading">
|
404
|
+
<a href="#M000217" class="method-signature">
|
405
|
+
<span class="method-name">attr.last → node<br />
|
406
|
+
</span>
|
407
|
+
</a>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
<div class="method-description">
|
411
|
+
<p>
|
412
|
+
Obtain the last attribute.
|
413
|
+
</p>
|
414
|
+
<p><a class="source-toggle" href="#"
|
415
|
+
onclick="toggleCode('M000217-source');return false;">[Source]</a></p>
|
416
|
+
<div class="method-source-code" id="M000217-source">
|
417
|
+
<pre>
|
418
|
+
/*
|
419
|
+
* call-seq:
|
420
|
+
* attr.last -> node
|
421
|
+
*
|
422
|
+
* Obtain the last attribute.
|
423
|
+
*/
|
424
|
+
VALUE
|
425
|
+
ruby_xml_attr_last_get(VALUE self) {
|
426
|
+
|
427
|
+
</pre>
|
428
|
+
</div>
|
429
|
+
</div>
|
430
|
+
</div>
|
431
|
+
|
432
|
+
<div id="method-M000218" class="method-detail">
|
433
|
+
<a name="M000218"></a>
|
434
|
+
|
435
|
+
<div class="method-heading">
|
436
|
+
<a href="#M000218" class="method-signature">
|
437
|
+
<span class="method-name">attr.last? → (true|false)<br />
|
438
|
+
</span>
|
439
|
+
</a>
|
440
|
+
</div>
|
441
|
+
|
442
|
+
<div class="method-description">
|
443
|
+
<p>
|
444
|
+
Determine whether this is the last attribute.
|
445
|
+
</p>
|
446
|
+
<p><a class="source-toggle" href="#"
|
447
|
+
onclick="toggleCode('M000218-source');return false;">[Source]</a></p>
|
448
|
+
<div class="method-source-code" id="M000218-source">
|
449
|
+
<pre>
|
450
|
+
/*
|
451
|
+
* call-seq:
|
452
|
+
* attr.last? -> (true|false)
|
453
|
+
*
|
454
|
+
* Determine whether this is the last attribute.
|
455
|
+
*/
|
456
|
+
VALUE
|
457
|
+
ruby_xml_attr_last_q(VALUE self) {
|
458
|
+
|
459
|
+
</pre>
|
460
|
+
</div>
|
461
|
+
</div>
|
462
|
+
</div>
|
463
|
+
|
464
|
+
<div id="method-M000219" class="method-detail">
|
465
|
+
<a name="M000219"></a>
|
466
|
+
|
467
|
+
<div class="method-heading">
|
468
|
+
<a href="#M000219" class="method-signature">
|
469
|
+
<span class="method-name">attr.name → "name"<br />
|
470
|
+
</span>
|
471
|
+
</a>
|
472
|
+
</div>
|
473
|
+
|
474
|
+
<div class="method-description">
|
475
|
+
<p>
|
476
|
+
Obtain this attribute’s name.
|
477
|
+
</p>
|
478
|
+
<p><a class="source-toggle" href="#"
|
479
|
+
onclick="toggleCode('M000219-source');return false;">[Source]</a></p>
|
480
|
+
<div class="method-source-code" id="M000219-source">
|
481
|
+
<pre>
|
482
|
+
/*
|
483
|
+
* call-seq:
|
484
|
+
* attr.name -> "name"
|
485
|
+
*
|
486
|
+
* Obtain this attribute's name.
|
487
|
+
*/
|
488
|
+
VALUE
|
489
|
+
ruby_xml_attr_name_get(VALUE self) {
|
490
|
+
|
491
|
+
</pre>
|
492
|
+
</div>
|
493
|
+
</div>
|
494
|
+
</div>
|
495
|
+
|
496
|
+
<div id="method-M000220" class="method-detail">
|
497
|
+
<a name="M000220"></a>
|
498
|
+
|
499
|
+
<div class="method-heading">
|
500
|
+
<a href="#M000220" class="method-signature">
|
501
|
+
<span class="method-name">attr.next → node<br />
|
502
|
+
</span>
|
503
|
+
</a>
|
504
|
+
</div>
|
505
|
+
|
506
|
+
<div class="method-description">
|
507
|
+
<p>
|
508
|
+
Obtain the next attribute.
|
509
|
+
</p>
|
510
|
+
<p><a class="source-toggle" href="#"
|
511
|
+
onclick="toggleCode('M000220-source');return false;">[Source]</a></p>
|
512
|
+
<div class="method-source-code" id="M000220-source">
|
513
|
+
<pre>
|
514
|
+
/*
|
515
|
+
* call-seq:
|
516
|
+
* attr.next -> node
|
517
|
+
*
|
518
|
+
* Obtain the next attribute.
|
519
|
+
*/
|
520
|
+
VALUE
|
521
|
+
ruby_xml_attr_next_get(VALUE self) {
|
522
|
+
|
523
|
+
</pre>
|
524
|
+
</div>
|
525
|
+
</div>
|
526
|
+
</div>
|
527
|
+
|
528
|
+
<div id="method-M000221" class="method-detail">
|
529
|
+
<a name="M000221"></a>
|
530
|
+
|
531
|
+
<div class="method-heading">
|
532
|
+
<a href="#M000221" class="method-signature">
|
533
|
+
<span class="method-name">attr.next? → (true|false)<br />
|
534
|
+
</span>
|
535
|
+
</a>
|
536
|
+
</div>
|
537
|
+
|
538
|
+
<div class="method-description">
|
539
|
+
<p>
|
540
|
+
Determine whether there is a next attribute.
|
541
|
+
</p>
|
542
|
+
<p><a class="source-toggle" href="#"
|
543
|
+
onclick="toggleCode('M000221-source');return false;">[Source]</a></p>
|
544
|
+
<div class="method-source-code" id="M000221-source">
|
545
|
+
<pre>
|
546
|
+
/*
|
547
|
+
* call-seq:
|
548
|
+
* attr.next? -> (true|false)
|
549
|
+
*
|
550
|
+
* Determine whether there is a next attribute.
|
551
|
+
*/
|
552
|
+
VALUE
|
553
|
+
ruby_xml_attr_next_q(VALUE self) {
|
554
|
+
|
555
|
+
</pre>
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
</div>
|
559
|
+
|
560
|
+
<div id="method-M000222" class="method-detail">
|
561
|
+
<a name="M000222"></a>
|
562
|
+
|
563
|
+
<div class="method-heading">
|
564
|
+
<a href="#M000222" class="method-signature">
|
565
|
+
<span class="method-name">attr.type_name → "attribute"<br />
|
566
|
+
</span>
|
567
|
+
</a>
|
568
|
+
</div>
|
569
|
+
|
570
|
+
<div class="method-description">
|
571
|
+
<p>
|
572
|
+
Obtain this attribute node’s type name.
|
573
|
+
</p>
|
574
|
+
<p><a class="source-toggle" href="#"
|
575
|
+
onclick="toggleCode('M000222-source');return false;">[Source]</a></p>
|
576
|
+
<div class="method-source-code" id="M000222-source">
|
577
|
+
<pre>
|
578
|
+
/*
|
579
|
+
* call-seq:
|
580
|
+
* attr.type_name -> "attribute"
|
581
|
+
*
|
582
|
+
* Obtain this attribute node's type name.
|
583
|
+
*/
|
584
|
+
VALUE
|
585
|
+
ruby_xml_attr_node_type_name(VALUE self) {
|
586
|
+
|
587
|
+
</pre>
|
588
|
+
</div>
|
589
|
+
</div>
|
590
|
+
</div>
|
591
|
+
|
592
|
+
<div id="method-M000223" class="method-detail">
|
593
|
+
<a name="M000223"></a>
|
594
|
+
|
595
|
+
<div class="method-heading">
|
596
|
+
<a href="#M000223" class="method-signature">
|
597
|
+
<span class="method-name">attr.ns → namespace<br />
|
598
|
+
</span>
|
599
|
+
</a>
|
600
|
+
</div>
|
601
|
+
|
602
|
+
<div class="method-description">
|
603
|
+
<p>
|
604
|
+
Obtain this attribute’s associated <a href="NS.html">XML::NS</a>, if
|
605
|
+
any.
|
606
|
+
</p>
|
607
|
+
<p><a class="source-toggle" href="#"
|
608
|
+
onclick="toggleCode('M000223-source');return false;">[Source]</a></p>
|
609
|
+
<div class="method-source-code" id="M000223-source">
|
610
|
+
<pre>
|
611
|
+
/*
|
612
|
+
* call-seq:
|
613
|
+
* attr.ns -> namespace
|
614
|
+
*
|
615
|
+
* Obtain this attribute's associated XML::NS, if any.
|
616
|
+
*/
|
617
|
+
VALUE
|
618
|
+
ruby_xml_attr_ns_get(VALUE self) {
|
619
|
+
|
620
|
+
</pre>
|
621
|
+
</div>
|
622
|
+
</div>
|
623
|
+
</div>
|
624
|
+
|
625
|
+
<div id="method-M000224" class="method-detail">
|
626
|
+
<a name="M000224"></a>
|
627
|
+
|
628
|
+
<div class="method-heading">
|
629
|
+
<a href="#M000224" class="method-signature">
|
630
|
+
<span class="method-name">attr.ns? → (true|false)<br />
|
631
|
+
</span>
|
632
|
+
</a>
|
633
|
+
</div>
|
634
|
+
|
635
|
+
<div class="method-description">
|
636
|
+
<p>
|
637
|
+
Determine whether this attribute has an associated namespace.
|
638
|
+
</p>
|
639
|
+
<p><a class="source-toggle" href="#"
|
640
|
+
onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
|
641
|
+
<div class="method-source-code" id="M000224-source">
|
642
|
+
<pre>
|
643
|
+
/*
|
644
|
+
* call-seq:
|
645
|
+
* attr.ns? -> (true|false)
|
646
|
+
*
|
647
|
+
* Determine whether this attribute has an associated
|
648
|
+
* namespace.
|
649
|
+
*/
|
650
|
+
VALUE
|
651
|
+
ruby_xml_attr_ns_q(VALUE self) {
|
652
|
+
|
653
|
+
</pre>
|
654
|
+
</div>
|
655
|
+
</div>
|
656
|
+
</div>
|
657
|
+
|
658
|
+
<div id="method-M000225" class="method-detail">
|
659
|
+
<a name="M000225"></a>
|
660
|
+
|
661
|
+
<div class="method-heading">
|
662
|
+
<a href="#M000225" class="method-signature">
|
663
|
+
<span class="method-name">attr.parent → node<br />
|
664
|
+
</span>
|
665
|
+
</a>
|
666
|
+
</div>
|
667
|
+
|
668
|
+
<div class="method-description">
|
669
|
+
<p>
|
670
|
+
Obtain this attribute node’s parent.
|
671
|
+
</p>
|
672
|
+
<p><a class="source-toggle" href="#"
|
673
|
+
onclick="toggleCode('M000225-source');return false;">[Source]</a></p>
|
674
|
+
<div class="method-source-code" id="M000225-source">
|
675
|
+
<pre>
|
676
|
+
/*
|
677
|
+
* call-seq:
|
678
|
+
* attr.parent -> node
|
679
|
+
*
|
680
|
+
* Obtain this attribute node's parent.
|
681
|
+
*/
|
682
|
+
VALUE
|
683
|
+
ruby_xml_attr_parent_get(VALUE self) {
|
684
|
+
|
685
|
+
</pre>
|
686
|
+
</div>
|
687
|
+
</div>
|
688
|
+
</div>
|
689
|
+
|
690
|
+
<div id="method-M000226" class="method-detail">
|
691
|
+
<a name="M000226"></a>
|
692
|
+
|
693
|
+
<div class="method-heading">
|
694
|
+
<a href="#M000226" class="method-signature">
|
695
|
+
<span class="method-name">attr.parent? → (true|false)<br />
|
696
|
+
</span>
|
697
|
+
</a>
|
698
|
+
</div>
|
699
|
+
|
700
|
+
<div class="method-description">
|
701
|
+
<p>
|
702
|
+
Determine whether this attribute has a parent.
|
703
|
+
</p>
|
704
|
+
<p><a class="source-toggle" href="#"
|
705
|
+
onclick="toggleCode('M000226-source');return false;">[Source]</a></p>
|
706
|
+
<div class="method-source-code" id="M000226-source">
|
707
|
+
<pre>
|
708
|
+
/*
|
709
|
+
* call-seq:
|
710
|
+
* attr.parent? -> (true|false)
|
711
|
+
*
|
712
|
+
* Determine whether this attribute has a parent.
|
713
|
+
*/
|
714
|
+
VALUE
|
715
|
+
ruby_xml_attr_parent_q(VALUE self) {
|
716
|
+
|
717
|
+
</pre>
|
718
|
+
</div>
|
719
|
+
</div>
|
720
|
+
</div>
|
721
|
+
|
722
|
+
<div id="method-M000227" class="method-detail">
|
723
|
+
<a name="M000227"></a>
|
724
|
+
|
725
|
+
<div class="method-heading">
|
726
|
+
<a href="#M000227" class="method-signature">
|
727
|
+
<span class="method-name">attr.prev → node<br />
|
728
|
+
</span>
|
729
|
+
</a>
|
730
|
+
</div>
|
731
|
+
|
732
|
+
<div class="method-description">
|
733
|
+
<p>
|
734
|
+
Obtain the previous attribute.
|
735
|
+
</p>
|
736
|
+
<p><a class="source-toggle" href="#"
|
737
|
+
onclick="toggleCode('M000227-source');return false;">[Source]</a></p>
|
738
|
+
<div class="method-source-code" id="M000227-source">
|
739
|
+
<pre>
|
740
|
+
/*
|
741
|
+
* call-seq:
|
742
|
+
* attr.prev -> node
|
743
|
+
*
|
744
|
+
* Obtain the previous attribute.
|
745
|
+
*/
|
746
|
+
VALUE
|
747
|
+
ruby_xml_attr_prev_get(VALUE self) {
|
748
|
+
|
749
|
+
</pre>
|
750
|
+
</div>
|
751
|
+
</div>
|
752
|
+
</div>
|
753
|
+
|
754
|
+
<div id="method-M000228" class="method-detail">
|
755
|
+
<a name="M000228"></a>
|
756
|
+
|
757
|
+
<div class="method-heading">
|
758
|
+
<a href="#M000228" class="method-signature">
|
759
|
+
<span class="method-name">attr.prev? → (true|false)<br />
|
760
|
+
</span>
|
761
|
+
</a>
|
762
|
+
</div>
|
763
|
+
|
764
|
+
<div class="method-description">
|
765
|
+
<p>
|
766
|
+
Determine whether there is a previous attribute.
|
767
|
+
</p>
|
768
|
+
<p><a class="source-toggle" href="#"
|
769
|
+
onclick="toggleCode('M000228-source');return false;">[Source]</a></p>
|
770
|
+
<div class="method-source-code" id="M000228-source">
|
771
|
+
<pre>
|
772
|
+
/*
|
773
|
+
* call-seq:
|
774
|
+
* attr.prev? -> (true|false)
|
775
|
+
*
|
776
|
+
* Determine whether there is a previous attribute.
|
777
|
+
*/
|
778
|
+
VALUE
|
779
|
+
ruby_xml_attr_prev_q(VALUE self) {
|
780
|
+
|
781
|
+
</pre>
|
782
|
+
</div>
|
783
|
+
</div>
|
784
|
+
</div>
|
785
|
+
|
786
|
+
<div id="method-M000229" class="method-detail">
|
787
|
+
<a name="M000229"></a>
|
788
|
+
|
789
|
+
<div class="method-heading">
|
790
|
+
<a href="#M000229" class="method-signature">
|
791
|
+
<span class="method-name">node.remove! → nil<br />
|
792
|
+
</span>
|
793
|
+
</a>
|
794
|
+
</div>
|
795
|
+
|
796
|
+
<div class="method-description">
|
797
|
+
<p>
|
798
|
+
Removes this attribute from it’s parent.
|
799
|
+
</p>
|
800
|
+
<p><a class="source-toggle" href="#"
|
801
|
+
onclick="toggleCode('M000229-source');return false;">[Source]</a></p>
|
802
|
+
<div class="method-source-code" id="M000229-source">
|
803
|
+
<pre>
|
804
|
+
/*
|
805
|
+
* call-seq:
|
806
|
+
* node.remove! -> nil
|
807
|
+
*
|
808
|
+
* Removes this attribute from it's parent.
|
809
|
+
*/
|
810
|
+
VALUE
|
811
|
+
ruby_xml_attr_remove_ex(VALUE self) {
|
812
|
+
|
813
|
+
</pre>
|
814
|
+
</div>
|
815
|
+
</div>
|
816
|
+
</div>
|
817
|
+
|
818
|
+
<div id="method-M000236" class="method-detail">
|
819
|
+
<a name="M000236"></a>
|
820
|
+
|
821
|
+
<div class="method-heading">
|
822
|
+
<a href="#M000236" class="method-signature">
|
823
|
+
<span class="method-name">to_a</span><span class="method-args">()</span>
|
824
|
+
</a>
|
825
|
+
</div>
|
826
|
+
|
827
|
+
<div class="method-description">
|
828
|
+
<p><a class="source-toggle" href="#"
|
829
|
+
onclick="toggleCode('M000236-source');return false;">[Source]</a></p>
|
830
|
+
<div class="method-source-code" id="M000236-source">
|
831
|
+
<pre>
|
832
|
+
<span class="ruby-comment cmt"># File lib/libxml.rb, line 124</span>
|
833
|
+
124: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
|
834
|
+
125: <span class="ruby-identifier">inject</span>([]) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ary</span>,<span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
|
835
|
+
126: <span class="ruby-identifier">ary</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">a</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">a</span>.<span class="ruby-identifier">value</span>]
|
836
|
+
127: <span class="ruby-identifier">ary</span>
|
837
|
+
128: <span class="ruby-keyword kw">end</span>
|
838
|
+
129: <span class="ruby-keyword kw">end</span>
|
839
|
+
</pre>
|
840
|
+
</div>
|
841
|
+
</div>
|
842
|
+
</div>
|
843
|
+
|
844
|
+
<div id="method-M000235" class="method-detail">
|
845
|
+
<a name="M000235"></a>
|
846
|
+
|
847
|
+
<div class="method-heading">
|
848
|
+
<a href="#M000235" class="method-signature">
|
849
|
+
<span class="method-name">to_h</span><span class="method-args">()</span>
|
850
|
+
</a>
|
851
|
+
</div>
|
852
|
+
|
853
|
+
<div class="method-description">
|
854
|
+
<p><a class="source-toggle" href="#"
|
855
|
+
onclick="toggleCode('M000235-source');return false;">[Source]</a></p>
|
856
|
+
<div class="method-source-code" id="M000235-source">
|
857
|
+
<pre>
|
858
|
+
<span class="ruby-comment cmt"># File lib/libxml.rb, line 117</span>
|
859
|
+
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|
860
|
+
118: <span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span>,<span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
|
861
|
+
119: <span class="ruby-identifier">h</span>[<span class="ruby-identifier">a</span>.<span class="ruby-identifier">name</span>] = <span class="ruby-identifier">a</span>.<span class="ruby-identifier">value</span>
|
862
|
+
120: <span class="ruby-identifier">h</span>
|
863
|
+
121: <span class="ruby-keyword kw">end</span>
|
864
|
+
122: <span class="ruby-keyword kw">end</span>
|
865
|
+
</pre>
|
866
|
+
</div>
|
867
|
+
</div>
|
868
|
+
</div>
|
869
|
+
|
870
|
+
<div id="method-M000237" class="method-detail">
|
871
|
+
<a name="M000237"></a>
|
872
|
+
|
873
|
+
<div class="method-heading">
|
874
|
+
<a href="#M000237" class="method-signature">
|
875
|
+
<span class="method-name">to_s</span><span class="method-args">()</span>
|
876
|
+
</a>
|
877
|
+
</div>
|
878
|
+
|
879
|
+
<div class="method-description">
|
880
|
+
<p><a class="source-toggle" href="#"
|
881
|
+
onclick="toggleCode('M000237-source');return false;">[Source]</a></p>
|
882
|
+
<div class="method-source-code" id="M000237-source">
|
883
|
+
<pre>
|
884
|
+
<span class="ruby-comment cmt"># File lib/libxml.rb, line 131</span>
|
885
|
+
131: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
886
|
+
132: <span class="ruby-node">"#{name} = #{value}"</span>
|
887
|
+
133: <span class="ruby-keyword kw">end</span>
|
888
|
+
</pre>
|
889
|
+
</div>
|
890
|
+
</div>
|
891
|
+
</div>
|
892
|
+
|
893
|
+
<div id="method-M000230" class="method-detail">
|
894
|
+
<a name="M000230"></a>
|
895
|
+
|
896
|
+
<div class="method-heading">
|
897
|
+
<a href="#M000230" class="method-signature">
|
898
|
+
<span class="method-name">attr.value → "value"<br />
|
899
|
+
</span>
|
900
|
+
</a>
|
901
|
+
</div>
|
902
|
+
|
903
|
+
<div class="method-description">
|
904
|
+
<p>
|
905
|
+
Obtain the value of this attribute.
|
906
|
+
</p>
|
907
|
+
<p><a class="source-toggle" href="#"
|
908
|
+
onclick="toggleCode('M000230-source');return false;">[Source]</a></p>
|
909
|
+
<div class="method-source-code" id="M000230-source">
|
910
|
+
<pre>
|
911
|
+
/*
|
912
|
+
* call-seq:
|
913
|
+
* attr.value -> "value"
|
914
|
+
*
|
915
|
+
* Obtain the value of this attribute.
|
916
|
+
*/
|
917
|
+
VALUE
|
918
|
+
ruby_xml_attr_value_get(VALUE self) {
|
919
|
+
|
920
|
+
</pre>
|
921
|
+
</div>
|
922
|
+
</div>
|
923
|
+
</div>
|
924
|
+
|
925
|
+
<div id="method-M000231" class="method-detail">
|
926
|
+
<a name="M000231"></a>
|
927
|
+
|
928
|
+
<div class="method-heading">
|
929
|
+
<a href="#M000231" class="method-signature">
|
930
|
+
<span class="method-name">attr.value = "value"<br />
|
931
|
+
</span>
|
932
|
+
</a>
|
933
|
+
</div>
|
934
|
+
|
935
|
+
<div class="method-description">
|
936
|
+
<p>
|
937
|
+
Sets the value of this attribute.
|
938
|
+
</p>
|
939
|
+
<p><a class="source-toggle" href="#"
|
940
|
+
onclick="toggleCode('M000231-source');return false;">[Source]</a></p>
|
941
|
+
<div class="method-source-code" id="M000231-source">
|
942
|
+
<pre>
|
943
|
+
/*
|
944
|
+
* call-seq:
|
945
|
+
* attr.value = "value"
|
946
|
+
*
|
947
|
+
* Sets the value of this attribute.
|
948
|
+
*/
|
949
|
+
VALUE
|
950
|
+
ruby_xml_attr_value_set(VALUE self, VALUE val) {
|
951
|
+
|
952
|
+
</pre>
|
953
|
+
</div>
|
954
|
+
</div>
|
955
|
+
</div>
|
956
|
+
|
957
|
+
|
958
|
+
</div>
|
959
|
+
|
960
|
+
|
961
|
+
</div>
|
962
|
+
|
963
|
+
|
964
|
+
<div id="validator-badges">
|
965
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
966
|
+
</div>
|
967
|
+
|
968
|
+
</body>
|
969
|
+
</html>
|