Class: Uniword::Properties::TextFill

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/uniword/properties/text_fill.rb

Overview

Text fill (basic solid color support)

Represents <w:textFill> element with solid color fill. Full gradient/pattern support planned for v2.0.

Examples:

Creating a text fill

fill = TextFill.new(color: 'FF0000')

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ TextFill

Initialize from color value



29
30
31
32
33
34
35
# File 'lib/uniword/properties/text_fill.rb', line 29

def initialize(attrs = {})
  if attrs.is_a?(String)
    super(color: attrs)
  else
    super
  end
end