Sha256: c5d0ff33f87047f2b1a4f4dc31a166cc66fedb5b6e8644efa82f101c95854b01

Contents?: true

Size: 837 Bytes

Versions: 5

Compression:

Stored size: 837 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class TableBorder < ComplexProperty
        tag_is_one_of %i(top start bottom end insideH insideV left right)

        with_namespace :w do
          attribute :color, expects: :hex_color
          attribute :frame, expects: :boolean
          attribute :shadow, expects: :boolean
          attribute :space, expects: :positive_integer
          attribute :theme_color, expects: :valid_theme_color
          attribute :theme_shade, expects: :hex_digit
          attribute :theme_tint, expects: :hex_digit
          attribute :value, expects: :valid_type, displays_as: :val
          attribute :width, expects: :positive_integer, displays_as: :sz
        end

        def initialize(tag, value)
          super tag
          @value = value
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openxml-docx-0.10.6 lib/openxml/docx/properties/table_border.rb
openxml-docx-0.10.5 lib/openxml/docx/properties/table_border.rb
openxml-docx-0.10.4 lib/openxml/docx/properties/table_border.rb
openxml-docx-0.10.3 lib/openxml/docx/properties/table_border.rb
openxml-docx-0.10.2 lib/openxml/docx/properties/table_border.rb