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