blob: 2fbeb380cf1f82c2958476fb1a356b2664deaf22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
module Axlsx
# An default content part. These parts are automatically created by for you based on the content of your package.
class Default < AbstractContentType
# The serialization node name for this class
NODE_NAME = 'Default'
# The extension of the content type.
# @return [String]
attr_reader :extension
alias :Extension :extension
# Sets the file extension for this content type.
def extension=(v) Axlsx.validate_string v; @extension = v end
alias :Extension= :extension=
# Serializes this object to xml
def to_xml_string(str = +'')
super(NODE_NAME, str)
end
end
end
|