Module: Mml::Base::Mpadded
- Included in:
- V2::Mpadded, V3::Mpadded, V4::Mpadded
- Defined in:
- lib/mml/base/mpadded.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 |
# File 'lib/mml/base/mpadded.rb', line 8 def self.included(klass) klass.class_eval do attribute :mathbackground, :string attribute :mathcolor, :string attribute :voffset, :string attribute :height, :string attribute :lspace, :string attribute :depth, :string attribute :width, :string xml do namespace Mml::Namespace element "mpadded" mixed_content map_attribute "mathbackground", to: :mathbackground map_attribute "mathcolor", to: :mathcolor map_attribute "voffset", to: :voffset map_attribute "height", to: :height map_attribute "lspace", to: :lspace map_attribute "depth", to: :depth map_attribute "width", to: :width end end end |