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

Version Path
zebra-epl-0.0.8 lib/zebra/epl/print_mode.rb
zebra-epl-0.0.7 lib/zebra/epl/print_mode.rb
zebra-epl-0.0.6 lib/zebra/epl/print_mode.rb
zebra-epl-0.0.5 lib/zebra/epl/print_mode.rb
zebra-epl-0.0.2 lib/zebra/epl/print_mode.rb
zebra-epl-0.0.1 lib/zebra/epl/print_mode.rb