Sha256: 47b76ec81db3c8e5ab534ac4415a923a372e2f1000b91a6fe1b71aab227df4e4
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# Class for describing Alignment type module OoxmlParser class Alignment # Parse TransitionDirection # @param [Nokogiri::XML:Element] node with Alignment # @return [Symbol] value of Alignment def self.parse(node) case node.value when 'l' :left when 'ctr' :center when 'r' :right when 'just' :justify when 'b' :bottom when 't' :top when 'tr' :top_right when 'tl' :top_left when 'br' :bottom_right when 'bl' :bottom_left when 'dist' :distributed when 'tb' :horizontal when 'rl' :rotate_on_90 when 'lr' :rotate_on_270 when 'inset' :in when 'lu' :left_up when 'ru' :right_up when 'ld' :left_down when 'rd' :right_down when 'd' :down when 'u' :up else node.value.to_sym end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ooxml_parser-0.1.2 | lib/ooxml_parser/common_parser/common_data/alingment.rb |
ooxml_parser-0.1.1 | lib/ooxml_parser/common_parser/common_data/alingment.rb |