# File lib/action_mailer/base.rb, line 475 def initialize(message) @message = message end
# File lib/action_mailer/base.rb, line 479 def []=(key, value) unless value.is_a?(::String) ::ActiveSupport::Deprecation.warn("Using a non-String object for a header's value is deprecated. " "You specified #{value.inspect} (a #{value.class}) for #{key}", caller) value = value.to_s end @message[key] = value end
# File lib/action_mailer/base.rb, line 490 def headers(hash = {}) hash.each_pair do |k,v| self[k] = v end end
# File lib/action_mailer/base.rb, line 496 def method_missing(meth, *args, &block) @message.send(meth, *args, &block) end