Class: Uniword::PageBorderSide
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Uniword::PageBorderSide
- Defined in:
- lib/uniword/page_borders.rb
Overview
Represents a single page border side
Constant Summary collapse
- STYLES =
Border styles
%w[ single thick double dotted dashed dot_dash triple wave dashSmallGap dashDotStroked threeDEmboss threeDEngrave ].freeze
Instance Attribute Summary collapse
-
#color ⇒ String
Border color (hex).
-
#space ⇒ Integer
Space from text in points.
-
#style ⇒ String
Border style (single, thick, double, etc.).
-
#width ⇒ Integer
Border width in eighths of a point.
Instance Method Summary collapse
-
#initialize(**attributes) ⇒ PageBorderSide
constructor
A new instance of PageBorderSide.
Constructor Details
#initialize(**attributes) ⇒ PageBorderSide
Returns a new instance of PageBorderSide.
25 26 27 28 |
# File 'lib/uniword/page_borders.rb', line 25 def initialize(**attributes) super validate_style end |
Instance Attribute Details
#color ⇒ String
Border color (hex)
12 13 14 |
# File 'lib/uniword/page_borders.rb', line 12 def color @color end |
#space ⇒ Integer
Space from text in points
12 13 14 |
# File 'lib/uniword/page_borders.rb', line 12 def space @space end |
#style ⇒ String
Border style (single, thick, double, etc.)
12 13 14 |
# File 'lib/uniword/page_borders.rb', line 12 def style @style end |
#width ⇒ Integer
Border width in eighths of a point
12 13 14 |
# File 'lib/uniword/page_borders.rb', line 12 def width @width end |