Module: Mml::Base::V3Only::TableAttributes

Included in:
V3::Mtable
Defined in:
lib/mml/base/v3_only/table_attrs.rb

Overview

Table attributes removed in MathML 4: groupalign, side, minlabelspacing. groupalign: no longer supported per spec. side, minlabelspacing: removed with mlabeledtr per spec. These are valid in mathml4-legacy schema only.

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/mml/base/v3_only/table_attrs.rb', line 11

def self.included(klass)
  klass.class_eval do
    attribute :groupalign, :string
    attribute :side, :string
    attribute :minlabelspacing, :string

    xml do
      namespace Mml::Namespace
      map_attribute "groupalign", to: :groupalign
      map_attribute "side", to: :side
      map_attribute "minlabelspacing", to: :minlabelspacing
    end
  end
end