Sha256: e5e8784a4c30d2d85a44a231d1010fb7cdf96f4d9de091651adc558efd5aab8b

Contents?: true

Size: 668 Bytes

Versions: 5

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

module Axlsx
  # An override content part. These parts are automatically created by for you based on the content of your package.
  class Override < AbstractContentType
    # Serialization node name for this object
    NODE_NAME = 'Override'

    # The name and location of the part.
    # @return [String]
    attr_reader :part_name
    alias :PartName :part_name

    # The name and location of the part.
    def part_name=(v)
      Axlsx.validate_string v
      @part_name = v
    end
    alias :PartName= :part_name=

    # Serializes this object to xml
    def to_xml_string(str = +'')
      super(NODE_NAME, str)
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
caxlsx-4.2.0 lib/axlsx/content_type/override.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/content_type/override.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/content_type/override.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/content_type/override.rb
caxlsx-4.1.0 lib/axlsx/content_type/override.rb