Class: OoxmlParser::ShapeAdjustValueList
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::ShapeAdjustValueList
- Defined in:
- lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties/preset_geometry/shape_adjust_value_list.rb
Overview
Class for describing List of Shape Adjust Values
Instance Attribute Summary collapse
-
#shape_guides_list ⇒ Array
List of shape guides.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#[](key) ⇒ Array, Column
Accessor for relationship.
-
#initialize(parent: nil) ⇒ ShapeAdjustValueList
constructor
A new instance of ShapeAdjustValueList.
-
#parse(node) ⇒ ShapeAdjustValueList
Parse ShapeAdjustValueList.
Methods inherited from OOXMLDocumentObject
#==, #boolean_attribute_value, #parse_xml, #with_data?
Methods included from OoxmlObjectAttributeHelper
#attribute_enabled?, #option_enabled?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
#initialize(parent: nil) ⇒ ShapeAdjustValueList
Returns a new instance of ShapeAdjustValueList.
10 11 12 13 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties/preset_geometry/shape_adjust_value_list.rb', line 10 def initialize(parent: nil) @shape_guides_list = [] super end |
Instance Attribute Details
#shape_guides_list ⇒ Array
Returns list of shape guides.
8 9 10 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties/preset_geometry/shape_adjust_value_list.rb', line 8 def shape_guides_list @shape_guides_list end |
Instance Method Details
#[](key) ⇒ Array, Column
Returns accessor for relationship.
16 17 18 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties/preset_geometry/shape_adjust_value_list.rb', line 16 def [](key) @shape_guides_list[key] end |
#parse(node) ⇒ ShapeAdjustValueList
Parse ShapeAdjustValueList
23 24 25 26 27 28 29 30 31 |
# File 'lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties/preset_geometry/shape_adjust_value_list.rb', line 23 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'gd' @shape_guides_list << ShapeGuide.new(parent: self).parse(node_child) end end self end |