Sha256: 2585481664492c7ebc54ad6240a7ab3d65d381fb94ffb5ca965175324da977c5

Contents?: true

Size: 755 Bytes

Versions: 5

Compression:

Stored size: 755 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class Border < ComplexProperty
        attr_reader :tag

        with_namespace :w do
          attribute :color, expects: :hex_color
          attribute :frame, expects: :boolean
          attribute :shadow, expects: :boolean
          attribute :size, expects: :positive_integer, displays_as: :sz
          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 :type, expects: :valid_type, displays_as: :val
        end

        def initialize(tag=:bdr)
          @tag = tag
        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/border.rb
openxml-docx-0.10.5 lib/openxml/docx/properties/border.rb
openxml-docx-0.10.4 lib/openxml/docx/properties/border.rb
openxml-docx-0.10.3 lib/openxml/docx/properties/border.rb
openxml-docx-0.10.2 lib/openxml/docx/properties/border.rb