Module: Resync::SitemapIndex::ClassMethods
- Defined in:
- lib/resync/shared/sitemap_index.rb
Overview
Ensures that an index is always read as a <sitemapindex>. Overrides ::XML::Mapping::ClassMethods.load_from_xml.
Instance Method Summary collapse
Instance Method Details
#load_from_xml(xml, options = { mapping: :_default }) ⇒ Object
28 29 30 31 |
# File 'lib/resync/shared/sitemap_index.rb', line 28 def load_from_xml(xml, = { mapping: :_default }) = .merge(mapping: :sitemapindex) super(xml, ) end |