Module: Mml::Base::Content::Semantics
- Defined in:
- lib/mml/base/content/semantics.rb
Overview
The semantics element wraps content with semantic annotations. First child is the annotated content.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/mml/base/content/semantics.rb', line 9 def self.included(klass) klass.class_eval do attribute :definition_url, :string attribute :semantics_encoding, :string xml do namespace Mml::Namespace element "semantics" mixed_content map_attribute "definitionURL", to: :definition_url map_attribute "encoding", to: :semantics_encoding end end end |