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