List .lookup_by_extension in the README (#28)
This commit is contained in:
parent
04aee89e77
commit
b588e0f876
|
@ -26,6 +26,9 @@ require 'mini_mime'
|
||||||
MiniMime.lookup_by_filename("a.txt").content_type
|
MiniMime.lookup_by_filename("a.txt").content_type
|
||||||
# => "text/plain"
|
# => "text/plain"
|
||||||
|
|
||||||
|
MiniMime.lookup_by_extension("txt").content_type
|
||||||
|
# => "text/plain"
|
||||||
|
|
||||||
MiniMime.lookup_by_content_type("text/plain").extension
|
MiniMime.lookup_by_content_type("text/plain").extension
|
||||||
# => "txt"
|
# => "txt"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue