Sha256: d49828d818a36dada33a8f62726b2c8666748ba23516d7567b86947a31951aec
Contents?: true
Size: 459 Bytes
Versions: 6
Compression:
Stored size: 459 Bytes
Contents
module Zebra module Epl module Rotation class InvalidRotationError < StandardError; end NO_ROTATION = 0 DEGREES_90 = 1 DEGREES_180 = 2 DEGREES_270 = 3 def self.valid_rotation?(rotation) [NO_ROTATION, DEGREES_90, DEGREES_180, DEGREES_270].include? rotation end def self.validate_rotation(rotation) raise InvalidRotationError unless valid_rotation?(rotation) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems