Class: Rdpl::Line

Inherits:
Object
  • Object
show all
Includes:
LinesAndBoxes
Defined in:
lib/elements/line.rb

Overview

Represents a line to be printed in the label.

Constant Summary collapse

DEFAULT_CHARACTER =
'l'

Constants included from Element

Element::ROTATION_0_DEGREES, Element::ROTATION_180_DEGREES, Element::ROTATION_270_DEGREES, Element::ROTATION_90_DEGREES

Instance Attribute Summary

Attributes included from LinesAndBoxes

#horizontal_width, #vertical_width

Instance Method Summary collapse

Methods included from LinesAndBoxes

#font_id, #height_multiplier=, #width_multiplier=

Methods included from Graphic

#data=, #font_id

Methods included from Element

#column_position, #column_position=, #data=, #font_id, #font_id=, #formatted_height, #height_multiplier, #height_multiplier=, #initialize, #rotation, #rotation=, #row_position, #row_position=, #to_s, #width_multiplier, #width_multiplier=

Instance Method Details

#dataObject



8
9
10
# File 'lib/elements/line.rb', line 8

def data      
  DEFAULT_CHARACTER + formatted_horizontal_width + formatted_vertical_width
end