List .lookup_by_extension in the README (#28)

This commit is contained in:
Janko Marohnić 2019-12-09 18:58:17 +01:00 committed by Robin Ward
parent 04aee89e77
commit b588e0f876
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ require 'mini_mime'
MiniMime.lookup_by_filename("a.txt").content_type
# => "text/plain"
MiniMime.lookup_by_extension("txt").content_type
# => "text/plain"
MiniMime.lookup_by_content_type("text/plain").extension
# => "txt"