Class: Uniword::PageBorderSide

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

Instance Method Summary collapse

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

#colorString

Border color (hex)

Returns:

  • (String)

    the current value of color



12
13
14
# File 'lib/uniword/page_borders.rb', line 12

def color
  @color
end

#spaceInteger

Space from text in points

Returns:

  • (Integer)

    the current value of space



12
13
14
# File 'lib/uniword/page_borders.rb', line 12

def space
  @space
end

#styleString

Border style (single, thick, double, etc.)

Returns:

  • (String)

    the current value of style



12
13
14
# File 'lib/uniword/page_borders.rb', line 12

def style
  @style
end

#widthInteger

Border width in eighths of a point

Returns:

  • (Integer)

    the current value of width



12
13
14
# File 'lib/uniword/page_borders.rb', line 12

def width
  @width
end