Sha256: 8c29098cba9bea3e35ba8a0959dace71addfd1c7cbef31aa581b7d2f0f50ea65

Contents?: true

Size: 849 Bytes

Versions: 1

Compression:

Stored size: 849 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class Tr < Lutaml::Model::Serializable
      attribute :align, :string
      attribute :char, :string
      attribute :charoff, :string
      attribute :content_type, :string
      attribute :id, :string
      attribute :style, :string
      attribute :valign, :string
      attribute :th, Th, collection: true
      attribute :td, Td, collection: true

      xml do
        root "tr"

        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 "style", to: :style
        map_attribute "valign", to: :valign
        map_element "th", to: :th
        map_element "td", to: :td
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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