Method: XMLable::Builder.populate_element
- Defined in:
- lib/xmlable/builder.rb
.populate_element(obj, node) ⇒ XMLable::Mixins::Object
Populate element object
69 70 71 72 73 74 75 |
# File 'lib/xmlable/builder.rb', line 69 def populate_element(obj, node) node.namespace_definitions.each { |ns| obj.__set_namespace_definition(ns) } node.elements.each { |el| obj.__set_element(el) } node.attributes.each { |_, att| obj.__set_attribute(att) } obj.__set_content(node) obj end |