Sha256: e5bd6a0d29e35aa4cfa32cb158402c986b41635fec589ce272e08fdacec5e7dc
Contents?: true
Size: 965 Bytes
Versions: 4
Compression:
Stored size: 965 Bytes
Contents
module OoxmlParser class TransitionProperties < OOXMLDocumentObject attr_accessor :type, :through_black, :direction, :orientation, :spokes # Parse TransitionProperties object # @param node [Nokogiri::XML:Element] node to parse # @return [TransitionProperties] result of parsing def parse(node) @type = node.name.to_sym case node.name when 'blinds', 'checker', 'comb', 'cover', 'pull', 'push', 'randomBar', 'strips', 'wipe', 'zoom', 'warp' @direction = value_to_symbol(node.attribute('dir')) if node.attribute('dir') when 'cut', 'fade' @through_black = option_enabled?(node, 'thruBlk') when 'split' @direction = value_to_symbol(node.attribute('dir')) if node.attribute('dir') @orientation = node.attribute('orient').value.to_sym if node.attribute('orient') when 'wheel', 'wheelReverse' @spokes = option_enabled?(node, 'spokes') end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems