Class: OpenXml::Xlsx::Elements::ThemeColor

Inherits:
Struct
  • Object
show all
Defined in:
lib/openxml/xlsx/elements/theme_color.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#themeObject

Returns the value of attribute theme

Returns:

  • (Object)

    the current value of theme



4
5
6
# File 'lib/openxml/xlsx/elements/theme_color.rb', line 4

def theme
  @theme
end

#tintObject

Returns the value of attribute tint

Returns:

  • (Object)

    the current value of tint



4
5
6
# File 'lib/openxml/xlsx/elements/theme_color.rb', line 4

def tint
  @tint
end

Instance Method Details

#to_xml(name, xml) ⇒ Object



6
7
8
# File 'lib/openxml/xlsx/elements/theme_color.rb', line 6

def to_xml(name, xml)
  xml.public_send(name, theme: theme, tint: tint)
end