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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns the current main type of the &quot;Content-Type&quot; of the mail instance.
- !ruby/struct:SM::Flow::P 
  body: If the content_type field does not exist, returns nil by default or you can pass in as the parameter for what you want the default value to be.
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: " mail = TMail::Mail.new\n mail.main_type #=&gt; nil\n mail.main_type([]) #=&gt; []\n mail = TMail::Mail.load(&quot;../test/fixtures/raw_email&quot;)\n mail.main_type #=&gt; &quot;text&quot;\n"
full_name: TMail::Mail#main_type
is_singleton: false
name: main_type
params: ( default = nil )
visibility: public
