Module: Mml::Base::Content::Interval
- Included in:
- V2::Interval, V3::Interval, V4::Interval
- Defined in:
- lib/mml/base/content/interval.rb
Overview
interval represents an interval with optional closure type.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mml/base/content/interval.rb', line 8 def self.included(klass) klass.class_eval do attribute :closure, :string xml do namespace Mml::Namespace element "interval" mixed_content map_attribute "closure", to: :closure end end end |