Class: OoxmlParser::ShapeMargins
- Inherits:
-
Object
- Object
- OoxmlParser::ShapeMargins
- Defined in:
- lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_margins.rb
Overview
Class for working with Shape Margins
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
-
#initialize(left = nil, right = nil, top = nil) ⇒ ShapeMargins
constructor
A new instance of ShapeMargins.
Constructor Details
#initialize(left = nil, right = nil, top = nil) ⇒ ShapeMargins
Returns a new instance of ShapeMargins.
8 9 10 11 12 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_margins.rb', line 8 def initialize(left = nil, right = nil, top = nil) @left = left @right = right @top = top end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_margins.rb', line 6 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_margins.rb', line 6 def right @right end |
#top ⇒ Object
Returns the value of attribute top.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/shape_margins.rb', line 6 def top @top end |