Class: Zebra::Zpl::Raw

Inherits:
Object
  • Object
show all
Includes:
Printable
Defined in:
lib/zebra/zpl/raw.rb

Instance Attribute Summary collapse

Attributes included from Printable

#data, #margin, #position, #x, #y

Instance Method Summary collapse

Methods included from Printable

#initialize, #justification, #justification=, #rotation, #rotation=

Instance Attribute Details

#widthObject

Returns the value of attribute width.



8
9
10
# File 'lib/zebra/zpl/raw.rb', line 8

def width
  @width
end

Instance Method Details

#to_zplObject



18
19
20
21
# File 'lib/zebra/zpl/raw.rb', line 18

def to_zpl
  # check_attributes
  "^FW#{rotation}^FO#{x},#{y}#{data}^FS"
end