Sha256: b6b335395b963f0295cfd2ae33ae4a7cb48543b75e0ed0f5b9e7fbc112771b35

Contents?: true

Size: 744 Bytes

Versions: 10

Compression:

Stored size: 744 Bytes

Contents

require 'berkeley_library/util/ods/xml/element_node'

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Style
          class ParagraphProperties < ElementNode

            DEFAULT_TAB_STOP_DISTANCE = '0.5in'.freeze

            attr_reader :tab_stop_distance

            def initialize(tab_stop_distance = DEFAULT_TAB_STOP_DISTANCE, doc:)
              super(:style, 'paragraph-properties', doc: doc)
              @tab_stop_distance = tab_stop_distance
              set_default_attributes!
            end

            private

            def set_default_attributes!
              set_attribute('tab-stop-distance', tab_stop_distance)
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkeley_library-tind-0.7.2 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/util/ods/xml/style/paragraph_properties.rb