From b588e0f876d0bc36c30e7581d397b813d26e69c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janko=20Marohni=C4=87?= Date: Mon, 9 Dec 2019 18:58:17 +0100 Subject: [PATCH] List .lookup_by_extension in the README (#28) --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0f9bce9..e44033f 100644 --- a/README.md +++ b/README.md @@ -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"