Sha256: 57bd028ab2c92b81246297a708852179602c8300d4e89f81ccb7d9291a0e7d9e
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
module OpenXml module Pptx module Properties class SlideId < OpenXml::Properties::ComplexProperty include OpenXml::ContainsProperties namespace :p tag :sldId attribute :id, expects: :integer, in_range: OpenXml::Pptx::SLIDE_ID_RANGE, required: true with_namespace :r do attribute :rid, displays_as: :id, expects: :string, required: true end property :extension_list def initialize(*_args) super generate_id end def generate_id self.id = object_id % OpenXml::Pptx::SLIDE_ID_RANGE.end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openxml-pptx-0.2.2 | lib/openxml/pptx/properties/slide_id.rb |
openxml-pptx-0.2.0 | lib/openxml/pptx/properties/slide_id.rb |