Module: Mml::Base::Mspace
- Included in:
- V2::Mspace, V3::Mspace, V4::Mspace
- Defined in:
- lib/mml/base/mspace.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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/mml/base/mspace.rb', line 8 def self.included(klass) klass.class_eval do attribute :mathcolor, :string attribute :mathbackground, :string attribute :mathvariant, :string attribute :dir, :string attribute :width, :string attribute :height, :string attribute :depth, :string attribute :linebreak, :string attribute :indentalign, :string attribute :indentshift, :string attribute :indenttarget, :string attribute :indentalignfirst, :string attribute :indentshiftfirst, :string attribute :indentalignlast, :string attribute :indentshiftlast, :string xml do namespace Mml::Namespace element "mspace" map_attribute "mathcolor", to: :mathcolor map_attribute "mathbackground", to: :mathbackground map_attribute "mathvariant", to: :mathvariant map_attribute "dir", to: :dir map_attribute "width", to: :width map_attribute "height", to: :height map_attribute "depth", to: :depth map_attribute "linebreak", to: :linebreak map_attribute "indentalign", to: :indentalign map_attribute "indentshift", to: :indentshift map_attribute "indenttarget", to: :indenttarget map_attribute "indentalignfirst", to: :indentalignfirst map_attribute "indentshiftfirst", to: :indentshiftfirst map_attribute "indentalignlast", to: :indentalignlast map_attribute "indentshiftlast", to: :indentshiftlast end end end |