Class: Uniword::ParagraphBorderSide
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::ParagraphBorderSide
- Defined in:
- lib/uniword/paragraph_border.rb
Overview
Represents a single paragraph border side
Constant Summary collapse
- STYLES =
Border styles matching OOXML specification
%w[ single thick double dotted dashed dotDash dotDotDash triple thinThickSmallGap thickThinSmallGap thinThickThinSmallGap thinThickMediumGap thickThinMediumGap thinThickThinMediumGap thinThickLargeGap thickThinLargeGap thinThickThinLargeGap wave doubleWave dashSmallGap dashDotStroked threeDEmboss threeDEngrave outset inset ].freeze
Instance Attribute Summary collapse
-
#color ⇒ String
Border color (hex).
-
#size ⇒ Integer
Border width in eighths of a point.
-
#space ⇒ Integer
Space from text in points.
-
#style ⇒ String
Border style (single, thick, double, etc.).
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ ParagraphBorderSide
constructor
A new instance of ParagraphBorderSide.
Constructor Details
#initialize(**attributes) ⇒ ParagraphBorderSide
Returns a new instance of ParagraphBorderSide.
31 32 33 34 |
# File 'lib/uniword/paragraph_border.rb', line 31 def initialize(**attributes) super validate_style end |
Instance Attribute Details
#color ⇒ String
Border color (hex)
12 13 14 |
# File 'lib/uniword/paragraph_border.rb', line 12 def color @color end |
#size ⇒ Integer
Border width in eighths of a point
12 13 14 |
# File 'lib/uniword/paragraph_border.rb', line 12 def size @size end |
#space ⇒ Integer
Space from text in points
12 13 14 |
# File 'lib/uniword/paragraph_border.rb', line 12 def space @space end |
#style ⇒ String
Border style (single, thick, double, etc.)
12 13 14 |
# File 'lib/uniword/paragraph_border.rb', line 12 def style @style end |