Module: XML::MappingExtensions::Namespaced::InstanceMethods
- Defined in:
- lib/xml/mapping_extensions/namespaced.rb
Overview
Hack to make sure these don't get defined till after XML::Mapping
's include
hooks have a chance to define their super methods
Instance Method Summary collapse
-
#fill_into_xml(xml, options = { mapping: :_default })
Overrides
XML::Mapping#fill_into_xml
to set the XML namespace.
Instance Method Details
#fill_into_xml(xml, options = { mapping: :_default })
Overrides XML::Mapping#fill_into_xml
to set the XML namespace
31 32 33 34 35 36 |
# File 'lib/xml/mapping_extensions/namespaced.rb', line 31 def fill_into_xml(xml, = { mapping: :_default }) add_namespace(xml) super(xml, ) return unless namespace set_prefix_recursive(namespace.prefix, xml) end |