Class: Caracal::Renderers::CoreRenderer
- Inherits:
-
XmlRenderer
- Object
- XmlRenderer
- Caracal::Renderers::CoreRenderer
- Defined in:
- lib/caracal/renderers/core_renderer.rb
Instance Attribute Summary
Attributes inherited from XmlRenderer
Instance Method Summary collapse
-
#to_xml ⇒ Object
This method produces the xml required for the ‘docProps/core.xml` sub-document.
Methods inherited from XmlRenderer
Constructor Details
This class inherits a constructor from Caracal::Renderers::XmlRenderer
Instance Method Details
#to_xml ⇒ Object
This method produces the xml required for the ‘docProps/core.xml` sub-document.
17 18 19 20 21 22 23 24 |
# File 'lib/caracal/renderers/core_renderer.rb', line 17 def to_xml builder = ::Nokogiri::XML::Builder.with(declaration_xml) do |xml| xml.send 'cp:coreProperties', do xml['dc'].title document.name end end builder.to_xml() end |