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