Sha256: 57c74352c912bd52c756a5821c8ca4a77717647b7067c585d4bc89f4617ca557
Contents?: true
Size: 738 Bytes
Versions: 3
Compression:
Stored size: 738 Bytes
Contents
module OpenXml module Docx module Properties class Underline < ComplexProperty tag :u VALID_UNDERLINE_TYPES = %i(dash dashDotDotHeavy dashDotHeavy dashedHeavy dashLong dashLongHeavy dotDash dotDotDash dotted dottedHeavy double none single thick wave wavyDouble wavyHeavy words) attribute :color, expects: :hex_color attribute :theme_color, expects: :valid_theme_color attribute :theme_shade, expects: :hex_digit attribute :theme_tint, expects: :hex_digit attribute :type, expects: :valid_underline_type, displays_as: :val private def valid_underline_type(value) valid_in? value, VALID_UNDERLINE_TYPES end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.9.0 | lib/openxml/docx/properties/underline.rb |
openxml-docx-0.8.0 | lib/openxml/docx/properties/underline.rb |
openxml-docx-0.8.0.beta1 | lib/openxml/docx/properties/underline.rb |