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