Method: Mail::Message#find_first_mime_type

Defined in:
lib/mail/message.rb

#find_first_mime_type(mt) ⇒ Object



1938
1939
1940
# File 'lib/mail/message.rb', line 1938

def find_first_mime_type(mt)
  all_parts.detect { |p| p.mime_type == mt && !p.attachment? }
end