Sha256: 8ecf1965e182822cb4eba8936636f4f03bb0239c8adf638b132e73ffcf17bfba

Contents?: true

Size: 408 Bytes

Versions: 9

Compression:

Stored size: 408 Bytes

Contents

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

9 entries across 9 versions & 2 rubygems

Version Path
kanamei-keystone-0.0.20 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.21 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.22 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.23 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.24 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.25 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.26 lib/keystone/mail/message_factory.rb
kanamei-keystone-0.0.27 lib/keystone/mail/message_factory.rb
keystone-0.0.29 lib/keystone/mail/message_factory.rb