Sha256: 27cba8314fba66ffa19cd2ba1992d89b68f9e5c59beb79638bcb8551931c808d

Contents?: true

Size: 955 Bytes

Versions: 1

Compression:

Stored size: 955 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class Colgroup < Lutaml::Model::Serializable
      attribute :align, :string
      attribute :char, :string
      attribute :charoff, :string
      attribute :content_type, :string
      attribute :id, :string
      attribute :span, :string, default: -> { "1" }
      attribute :style, :string
      attribute :valign, :string
      attribute :width, :string
      attribute :col, Col, collection: true

      xml do
        root "colgroup"

        map_attribute "align", to: :align
        map_attribute "char", to: :char
        map_attribute "charoff", to: :charoff
        map_attribute "content-type", to: :content_type
        map_attribute "id", to: :id
        map_attribute "span", to: :span
        map_attribute "style", to: :style
        map_attribute "valign", to: :valign
        map_attribute "width", to: :width
        map_element "col", to: :col
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
niso-jats-0.1.1 lib/niso/jats/colgroup.rb