Class: OoxmlParser::Alignment
- Inherits:
-
Object
- Object
- OoxmlParser::Alignment
- Defined in:
- lib/ooxml_parser/common_parser/common_data/alingment.rb
Class Method Summary collapse
-
.parse(node) ⇒ Symbol
Parse TransitionDirection.
Class Method Details
.parse(node) ⇒ Symbol
Parse TransitionDirection
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/ooxml_parser/common_parser/common_data/alingment.rb', line 7 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 |