Sha256: 9ff74d3db1aad3bcc5e20d4a2b4d31c8f0cf95db3d29457cb5a6db0d510ec2cc

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

# -*- coding: utf-8 -*-
module Keystone
  module Mail
    class MessageFactory
      def self.create(opt)
        message = MessageIso2022jp.new(opt)
        if opt.key?(:encoding)
          case opt[:encoding]
          when :sjis
            message = MessageSjis.new(opt)
          else
            raise "encoding '#{opt[:encoding]}' is not supported"
          end
        end
        return message
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keystone-0.0.32 lib/keystone/mail__old/message_factory.rb
keystone-0.0.31 lib/keystone/mail__old/message_factory.rb
keystone-0.0.30 lib/keystone/mail__old/message_factory.rb