Module: Mml::Base::Content::Declare
- Included in:
- V3::Declare, V4::Declare
- Defined in:
- lib/mml/base/content/declare.rb
Overview
declare makes a symbolic declaration of a mathematical entity.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
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/content/declare.rb', line 8 def self.included(klass) klass.class_eval do attribute :definition_url, :string attribute :encoding_value, :string attribute :type, :string attribute :scope, :string attribute :nargs, :string attribute :occurrence, :string xml do namespace Mml::Namespace element "declare" mixed_content map_attribute "definitionURL", to: :definition_url map_attribute "encoding", to: :encoding_value map_attribute "type", to: :type map_attribute "scope", to: :scope map_attribute "nargs", to: :nargs map_attribute "occurrence", to: :occurrence end end end |