Class: OoxmlParser::PresetTextWarp
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::PresetTextWarp
- Defined in:
- lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_body_properties/ooxml_shape_body_properties/preset_text_warp.rb
Constant Summary
Constants inherited from OOXMLDocumentObject
OOXMLDocumentObject::DEFAULT_DIRECTORY_FOR_MEDIA
Instance Attribute Summary collapse
-
#preset ⇒ Object
Returns the value of attribute preset.
Class Method Summary collapse
Methods inherited from OOXMLDocumentObject
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, copy_media_file, current_xml, dir, encrypted_file?, get_link_from_rels, media_folder, option_enabled?, unzip_file
Instance Attribute Details
#preset ⇒ Object
Returns the value of attribute preset.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_body_properties/ooxml_shape_body_properties/preset_text_warp.rb', line 3 def preset @preset end |
Class Method Details
.parse(node) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_body_properties/ooxml_shape_body_properties/preset_text_warp.rb', line 5 def self.parse(node) preset_text_warp = PresetTextWarp.new node.attributes.each do |key, value| case key when 'prst' preset_text_warp.preset = value.value.to_sym end end preset_text_warp end |