Class: OpenXml::Pptx::Properties::SlideMasterId
- Inherits:
-
OpenXml::Properties::ComplexProperty
- Object
- OpenXml::Properties::ComplexProperty
- OpenXml::Pptx::Properties::SlideMasterId
- Includes:
- ContainsProperties
- Defined in:
- lib/openxml/pptx/properties/slide_master_id.rb
Instance Method Summary collapse
- #generate_id ⇒ Object
-
#initialize(*_args) ⇒ SlideMasterId
constructor
A new instance of SlideMasterId.
Constructor Details
#initialize(*_args) ⇒ SlideMasterId
Returns a new instance of SlideMasterId.
17 18 19 20 |
# File 'lib/openxml/pptx/properties/slide_master_id.rb', line 17 def initialize(*_args) super generate_id end |
Instance Method Details
#generate_id ⇒ Object
22 23 24 |
# File 'lib/openxml/pptx/properties/slide_master_id.rb', line 22 def generate_id self.id = OpenXml::Pptx::MASTER_LAYOUT_ID_RANGE.begin + object_id % OpenXml::Pptx::MASTER_LAYOUT_ID_RANGE.begin end |