Class: Axlsx::Default
- Inherits:
-
AbstractContentType
- Object
- AbstractContentType
- Axlsx::Default
- Defined in:
- lib/axlsx/content_type/default.rb
Overview
An default content part. These parts are automatically created by for you based on the content of your package.
Constant Summary collapse
- NODE_NAME =
The serialization node name for this class
'Default'
Instance Attribute Summary collapse
-
#extension ⇒ String
(also: #Extension)
The extension of the content type.
Attributes inherited from AbstractContentType
Instance Method Summary collapse
-
#to_xml_string(str = +'')) ⇒ Object
Serializes this object to xml.
Methods inherited from AbstractContentType
Methods included from OptionsParser
Constructor Details
This class inherits a constructor from Axlsx::AbstractContentType
Instance Attribute Details
#extension ⇒ String Also known as: Extension
The extension of the content type.
11 12 13 |
# File 'lib/axlsx/content_type/default.rb', line 11 def extension @extension end |
Instance Method Details
#to_xml_string(str = +'')) ⇒ Object
Serializes this object to xml
22 23 24 |
# File 'lib/axlsx/content_type/default.rb', line 22 def to_xml_string(str = +'') super(NODE_NAME, str) end |