Sha256: 9c4183c89a29217b523901cac5a7136df270d1a9b1899360e8ba74b5e4928e1e
Contents?: true
Size: 862 Bytes
Versions: 2
Compression:
Stored size: 862 Bytes
Contents
module Axlsx # This class extracts the common parts from Default and Override class AbstractContentType include Axlsx::OptionsParser # Initializes an abstract content type # @see Default, Override def initialize(options = {}) parse_options options end # The type of content. # @return [String] attr_reader :content_type alias :ContentType :content_type # The content type. # @see Axlsx#validate_content_type def content_type=(v) Axlsx::validate_content_type v; @content_type = v end alias :ContentType= :content_type= # Serialize the contenty type to xml def to_xml_string(node_name = '', str = '') str << "<#{node_name} " str << Axlsx.instance_values_for(self).map { |key, value| Axlsx::camel(key) << '="' << value.to_s << '"' }.join(' ') str << '/>' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.4.1 | lib/axlsx/content_type/abstract_content_type.rb |
caxlsx-3.4.0 | lib/axlsx/content_type/abstract_content_type.rb |