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_element-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Adds a child to this element, optionally setting attributes in the element. - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "element:" body: optional. If Element, the element is added. Otherwise, a new Element is constructed with the argument (see Element.initialize). - !ruby/struct:SM::Flow::LI label: "attrs:" body: If supplied, must be a Hash containing String name,value pairs, which will be used to set the attributes of the new Element. - !ruby/struct:SM::Flow::LI label: "Returns:" body: the Element that was added type: :NOTE - !ruby/struct:SM::Flow::VERB body: " el = doc.add_element 'my-tag'\n el = doc.add_element 'my-tag', {'attr1'=>'val1', 'attr2'=>'val2'}\n el = Element.new 'my-tag'\n doc.add_element el\n" full_name: REXML::Element#add_element is_singleton: false name: add_element params: (element, attrs=nil) visibility: public
Upload File
Create Folder