Sha256: 669eb2fa17250f8929f1c74ed32ce3eca1c6991006875416cf5065b995262fbf
Contents?: true
Size: 342 Bytes
Versions: 6
Compression:
Stored size: 342 Bytes
Contents
module Zebra module Epl module PrintMode class InvalidPrintModeError < StandardError; end NORMAL = "N" REVERSE = "R" def self.valid_mode?(mode) %w(N R).include? mode end def self.validate_mode(mode) raise InvalidPrintModeError unless valid_mode?(mode) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems