Sha256: b1ab91aba0d0f5b7c4dd4e7fc3310219ffdc141b3948596b8c14c8f982b34f8b

Contents?: true

Size: 785 Bytes

Versions: 1

Compression:

Stored size: 785 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

module Rdpl
  STX      = 2.chr
  CR       = 13.chr
  LF       = 10.chr
  NEW_LINE = CR + LF
  FEED     = 'F'

  module Commandable
    def command(param)
      raise EndedElementError if self.state == :finished
      @contents << STX << param << NEW_LINE
    end
  end

  module Sensor 
    REFLEXIVE = 'r'
    EDGE      = 'e'
  end

  class MissingPrinterNameError < StandardError; end
  class EndedElementError         < StandardError; end
end

require 'job'
require 'label'
require 'elements/element'
require 'elements/graphic'
require 'elements/barcode'
require 'elements/bitmapped_text'
require 'elements/lines_and_boxes'
require 'elements/line'
require 'elements/box'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdpl-0.1.0 lib/rdpl.rb