Module: Mml::Base::Mlongdiv
- Included in:
- V2::Mlongdiv, V3::Mlongdiv, V4::Mlongdiv
- Defined in:
- lib/mml/base/mlongdiv.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 |
# File 'lib/mml/base/mlongdiv.rb', line 8 def self.included(klass) klass.class_eval do attribute :mathbackground, :string attribute :longdivstyle, :string attribute :mathcolor, :string attribute :position, :integer attribute :shift, :integer xml do namespace Mml::Namespace element "mlongdiv" mixed_content map_attribute "mathbackground", to: :mathbackground map_attribute "longdivstyle", to: :longdivstyle map_attribute "mathcolor", to: :mathcolor map_attribute "position", to: :position map_attribute "shift", to: :shift end end end |