Class: OoxmlParser::Stroke

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#colorObject

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

#weightObject

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