Module: Transformator::FormatConverter::DocumentFromHash
- Includes:
- DocumentFromXml
- Included in:
- Transformator::FormatConverter
- Defined in:
- lib/transformator/format_converter/document_from_hash.rb
Instance Method Summary collapse
Methods included from DocumentFromXml
Instance Method Details
#document_from_hash(hash) ⇒ Object
8 9 10 11 12 |
# File 'lib/transformator/format_converter/document_from_hash.rb', line 8 def document_from_hash(hash) ActiveSupport::XmlMini.backend = "LibXML" xml = hash.to_xml(dasherize: false, indent: 0, root: :hash, skip_types: false) document_from_xml(xml, remove_whitespace_only_text_nodes: false) end |