# File lib/rmail/header.rb, line 529 def media_type(default = nil) if value = content_type value.split('/')[0] else if block_given? yield else default end end end