class OpenXml::DrawingML::Parts::Theme

Constants

NAMESPACE_DEFINITION

Attributes

relationships[R]
theme_name[R]

Public Class Methods

new() click to toggle source
# File lib/openxml/drawingml/parts/theme.rb, line 16
def initialize
  @relationships = OpenXml::Parts::Rels.new
end

Public Instance Methods

theme_name=(value) click to toggle source
# File lib/openxml/drawingml/parts/theme.rb, line 20
def theme_name=(value)
  raise ArgumentError, "Theme name must be a string" unless value.is_a?(String)
  @theme_name = value
end
to_xml() click to toggle source
# File lib/openxml/drawingml/parts/theme.rb, line 25
def to_xml
  build_standalone_xml do |xml|
    xml[:a].theme(NAMESPACE_DEFINITION.merge(xml_attributes)) do
      property_xml(xml)
    end
  end
end

Private Instance Methods

xml_attributes() click to toggle source
# File lib/openxml/drawingml/parts/theme.rb, line 39
def xml_attributes
  { name: theme_name }
end