Sha256: 336bbe32d592d890717bcb6fb3b4be80f456f68df67a83b71aa51de284504af8

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

module Zebra
  module Zpl
    class Comment
      attr_accessor :data

      def initialize(options = {})
        options.each_pair { |attribute, value| self.__send__ "#{attribute}=", value }
      end

      def to_zpl
        "^FX#{data}^FS"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zebra-zpl-1.1.4 lib/zebra/zpl/comment.rb
zebra-zpl-1.1.3 lib/zebra/zpl/comment.rb
zebra-zpl-1.1.2 lib/zebra/zpl/comment.rb
zebra-zpl-1.1.1 lib/zebra/zpl/comment.rb
zebra-zpl-1.1.0 lib/zebra/zpl/comment.rb