--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Add a new field with <tt>name</tt> and <tt>value</tt>. When <tt>index</tt> is nil (the default if not specified) the line is appended to the header, otherwise it is inserted at the specified index. E.g. an <tt>index</tt> of 0 will prepend the header line.
- !ruby/struct:SM::Flow::P 
  body: You can pass additional parameters for the header as a hash table <tt>params</tt>. Every key of the hash will be the name of the parameter, and every key's value the parameter value.
- !ruby/struct:SM::Flow::P 
  body: E.g.
- !ruby/struct:SM::Flow::VERB 
  body: "   header.add('Content-Type', 'multipart/mixed', nil,\n              'boundary' =&gt; 'the boundary')\n"
- !ruby/struct:SM::Flow::P 
  body: will add this header
- !ruby/struct:SM::Flow::VERB 
  body: "   Content-Type: multipart/mixed; boundary=&quot;the boundary&quot;\n"
- !ruby/struct:SM::Flow::P 
  body: Always returns self.
full_name: RMail::Header#add
is_singleton: false
name: add
params: (name, value, index = nil, params = nil)
visibility: public
