Module: Mml::Base::Mstack
- Included in:
- V2::Mstack, V3::Mstack, V4::Mstack
- Defined in:
- lib/mml/base/mstack.rb
Class Method Summary collapse
-
.included(klass) ⇒ Object
NOTE: class_eval resolves constants in module’s lexical scope.
Class Method Details
.included(klass) ⇒ Object
NOTE: class_eval resolves constants in module’s lexical scope. Use fully qualified names (e.g., Mml::Namespace).
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mml/base/mstack.rb', line 8 def self.included(klass) klass.class_eval do attribute :mathcolor, :string attribute :mathbackground, :string attribute :align, :string attribute :stackalign, :string attribute :charalign, :string attribute :charspacing, :string xml do namespace Mml::Namespace element "mstack" mixed_content map_attribute "mathcolor", to: :mathcolor map_attribute "mathbackground", to: :mathbackground map_attribute "align", to: :align map_attribute "stackalign", to: :stackalign map_attribute "charalign", to: :charalign map_attribute "charspacing", to: :charspacing end end end |