Sha256: 697ce1c22fcdc9cd31d39ffa826ef13d708c4993f05d7d4ff6b17fe5e955aeb7

Contents?: true

Size: 865 Bytes

Versions: 1

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module Niso
  module Jats
    class Col < 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

      xml do
        root "col"

        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
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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