Method: MIME::Type.match
- Defined in:
- lib/mime/type.rb
.match(content_type) ⇒ Object
Return a MatchData object of the content_type against pattern of media types.
637 638 639 640 641 642 643 644 |
# File 'lib/mime/type.rb', line 637 def match(content_type) case content_type when MatchData content_type else MEDIA_TYPE_RE.match(content_type) end end |