Class: OoxmlParser::Stroke

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/stroke.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(weight = nil, color = nil) ⇒ Stroke

Returns a new instance of Stroke.



5
6
7
8
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/stroke.rb', line 5

def initialize(weight = nil, color = nil)
  @weight = weight
  @color = color
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



3
4
5
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/stroke.rb', line 3

def color
  @color
end

#weightObject

Returns the value of attribute weight.



3
4
5
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/shape/shape_properties/stroke.rb', line 3

def weight
  @weight
end