class Docxi::ContentTypes::Override

Attributes

content_type[RW]
part_name[RW]

Public Class Methods

new(part_name, content_type) click to toggle source
# File lib/docxi/content_types/override.rb, line 7
def initialize(part_name, content_type)
  @part_name = part_name
  @content_type = content_type
end

Public Instance Methods

build(xml) click to toggle source
# File lib/docxi/content_types/override.rb, line 12
def build(xml)
  xml.Override('PartName' => @part_name, 'ContentType' => @content_type)
end