X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/REXML/Element
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
REXML
/
Element
/
ðŸ“
..
📄
__to_xpath_helper-i.yaml
(201 B)
📄
add_attribute-i.yaml
(1.3 KB)
📄
add_attributes-i.yaml
(686 B)
📄
add_element-i.yaml
(1.01 KB)
📄
add_namespace-i.yaml
(983 B)
📄
add_text-i.yaml
(1 KB)
📄
attribute-i.yaml
(252 B)
📄
cdatas-i.yaml
(256 B)
📄
cdesc-Element.yaml
(3.23 KB)
📄
clone-i.yaml
(453 B)
📄
comments-i.yaml
(262 B)
📄
delete_attribute-i.yaml
(1.07 KB)
📄
delete_element-i.yaml
(935 B)
📄
delete_namespace-i.yaml
(737 B)
📄
document-i.yaml
(324 B)
📄
each_element-i.yaml
(290 B)
📄
each_element_with_attribute-i.yaml
(1.38 KB)
📄
each_element_with_text-i.yaml
(1.28 KB)
📄
each_with_something-i.yaml
(369 B)
📄
get_elements-i.yaml
(601 B)
📄
get_text-i.yaml
(673 B)
📄
has_attributes%3f-i.yaml
(312 B)
📄
has_elements%3f-i.yaml
(601 B)
📄
has_text%3f-i.yaml
(287 B)
📄
ignore_whitespace_nodes-i.yaml
(208 B)
📄
inspect-i.yaml
(176 B)
📄
instructions-i.yaml
(274 B)
📄
namespace-i.yaml
(1.04 KB)
📄
namespaces-i.yaml
(182 B)
📄
new-c.yaml
(1.96 KB)
📄
next_element-i.yaml
(552 B)
📄
node_type-i.yaml
(180 B)
📄
prefixes-i.yaml
(527 B)
📄
previous_element-i.yaml
(575 B)
📄
raw-i.yaml
(512 B)
📄
root-i.yaml
(170 B)
📄
root_node-i.yaml
(1.24 KB)
📄
text%3d-i.yaml
(1.47 KB)
📄
text-i.yaml
(1.03 KB)
📄
texts-i.yaml
(253 B)
📄
whitespace-i.yaml
(921 B)
📄
write-i.yaml
(1.74 KB)
📄
xpath-i.yaml
(172 B)
Editing: add_attribute-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Adds an attribute to this element, overwriting any existing attribute by the same name. - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "key:" body: can be either an Attribute or a String. If an Attribute, the attribute is added to the list of Element attributes. If String, the argument is used as the name of the new attribute, and the value parameter must be supplied. - !ruby/struct:SM::Flow::LI label: "value:" body: Required if <tt>key</tt> is a String, and ignored if the first argument is an Attribute. This is a String, and is used as the value of the new Attribute. This should be the unnormalized value of the attribute (without entities). - !ruby/struct:SM::Flow::LI label: "Returns:" body: the Attribute added type: :NOTE - !ruby/struct:SM::Flow::VERB body: " e = Element.new 'e'\n e.add_attribute( 'a', 'b' ) #-> <e a='b'/>\n e.add_attribute( 'x:a', 'c' ) #-> <e a='b' x:a='c'/>\n e.add_attribute Attribute.new('b', 'd') #-> <e a='b' x:a='c' b='d'/>\n" full_name: REXML::Element#add_attribute is_singleton: false name: add_attribute params: ( key, value=nil ) visibility: public
Upload File
Create Folder