Sha256: 477e268f61370748f158a4a49147395b1a4d2459d010bbcaf59cb35c3572cdae
Contents?: true
Size: 769 Bytes
Versions: 1
Compression:
Stored size: 769 Bytes
Contents
require_relative 'sound_action/sound' module OoxmlParser class SoundAction attr_accessor :start_sound, :end_sound def self.parse(sound_action_node) return nil unless sound_action_node.name == 'sndAc' sound_action = SoundAction.new sound_action_node.xpath('*').each do |sound_action_node_child| case sound_action_node_child.name when 'stSnd' sound_action.start_sound = Sound.parse(sound_action_node_child.xpath('p:snd').first) unless sound_action_node_child.xpath('p:snd').first.nil? when 'endSnd' sound_action.end_sound = Sound.parse(sound_action_node_child.xpath('p:snd').first) unless sound_action_node_child.xpath('p:snd').first.nil? end end sound_action end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.1.2 | lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/transition/transition/sound_action.rb |