Method: Persia::Element#populate_document
- Defined in:
- lib/xml.rb
#populate_document(r, id_hash) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/xml.rb', line 20 def populate_document(r, id_hash) populate_from_rexml(r.root, nil, id_hash) # cache roots if id_hash id_hash.values.select(&:root?).each(&:cache) id_hash.freeze end each_descendant_element(&:freeze) end |