Sha256: cd927c90f191bd435566cece53073c3c30c2ab8b8e8c5b7dee4e70adb968e5a3

Contents?: true

Size: 662 Bytes

Versions: 10

Compression:

Stored size: 662 Bytes

Contents

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

module BerkeleyLibrary
  module Util
    module ODS
      module XML
        module Style
          class DefaultStyle < XML::ElementNode

            attr_reader :family

            def initialize(family, doc:)
              super(:style, 'default-style', doc: doc)

              @family = Family.ensure_family(family)

              set_default_attributes!
            end

            private

            def set_default_attributes!
              set_attribute('family', family)
            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/default_style.rb
berkeley_library-tind-0.7.1 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.7.0 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.6.0 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.5.1 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.5.0 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.4.3 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.4.2 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.4.1 lib/berkeley_library/util/ods/xml/style/default_style.rb
berkeley_library-tind-0.4.0 lib/berkeley_library/util/ods/xml/style/default_style.rb