PHP 8.2.31
Preview: %5b%5d%3d-i.yaml Size: 1.11 KB
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/REXML/Elements/%5b%5d%3d-i.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets an element, replacing any previous matching element. If no existing element is found ,the element is added.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "index:"
    body: Used to find a matching element to replace. See []().
  - !ruby/struct:SM::Flow::LI 
    label: "element:"
    body: The element to replace the existing element with the previous element
  - !ruby/struct:SM::Flow::LI 
    label: "Returns:"
    body: nil if no previous element was found.
  type: :NOTE
- !ruby/struct:SM::Flow::VERB 
  body: " doc = Document.new '<a/>'\n doc.root.elements[10] = Element.new('b')    #-> <a><b/></a>\n doc.root.elements[1]                        #-> <b/>\n doc.root.elements[1] = Element.new('c')     #-> <a><c/></a>\n doc.root.elements['c'] = Element.new('d')   #-> <a><d/></a>\n"
full_name: REXML::Elements#[]=
is_singleton: false
name: "[]="
params: ( index, element )
visibility: public

Directory Contents

Dirs: 0 × Files: 16

Name Size Perms Modified Actions
233 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
1.11 KB lrw-r--r-- 2023-07-26 13:47:44
Edit Download
1.67 KB lrw-r--r-- 2023-07-26 13:47:44
Edit Download
841 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
1.22 KB lrw-r--r-- 2023-07-26 13:47:44
Edit Download
209 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
998 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
814 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
1.24 KB lrw-r--r-- 2023-07-26 13:47:44
Edit Download
301 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
456 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
240 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
281 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
362 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
510 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download
777 B lrw-r--r-- 2023-07-26 13:47:44
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).