Class: OoxmlParser::LineJoin
- Inherits:
-
Object
- Object
- OoxmlParser::LineJoin
- Defined in:
- lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/line_join.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/line_join.rb', line 3 def limit @limit end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/line_join.rb', line 3 def type @type end |
Class Method Details
.parse(parent_node) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ooxml_parser/common_parser/common_data/table/properties/whole_table/line_join.rb', line 5 def self.parse(parent_node) line_join = LineJoin.new parent_node.xpath('*').each do |line_join_node| case line_join_node.name when 'round', 'bevel' line_join.type = line_join_node.name.to_sym when 'miter' line_join.type = :miter line_join.limit = line_join_node.attribute('lim').value.to_f end end line_join end |