Sha256: c54dbacba4e79aa4b80c6c8922a0cd7e81cb901d2f3702da46c66aede60f1f48
Contents?: true
Size: 687 Bytes
Versions: 4
Compression:
Stored size: 687 Bytes
Contents
module OoxmlParser class AnimationEffect < OOXMLDocumentObject attr_accessor :transition, :filter, :behavior # Parse AnimationEffect object # @param node [Nokogiri::XML:Element] node to parse # @return [AnimationEffect] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'transition' @transition = value.value when 'filter' @filter = value.value end end node.xpath('*').each do |node_child| case node_child.name when 'cBhvr' @behavior = Behavior.new(parent: self).parse(node_child) end end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems