Module: Mml::Base::V3Only::StyleAttributes

Included in:
V3::Mstyle
Defined in:
lib/mml/base/v3_only/style_attrs.rb

Overview

Style attributes removed in MathML 4. fence, separator: removed from <mo> default schema. groupalign, side, minlabelspacing: removed with mlabeledtr.

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



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

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

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