Commit 89bb5162 by Daniel Mendler

Merge pull request #11 from Crisfole/patch-1

Update README.markdown
parents f3e0a080 13340066
...@@ -5,12 +5,12 @@ MimeMagic is a library to detect the mime type of a file by extension or by cont ...@@ -5,12 +5,12 @@ MimeMagic is a library to detect the mime type of a file by extension or by cont
Usage Usage
===== =====
require 'mimemagic' require 'mimemagic'
MimeMagic.by_extension('html').text? MimeMagic.by_extension('html').text?
MimeMagic.by_extension('.html').child_of? 'text/plain' MimeMagic.by_extension('.html').child_of? 'text/plain'
MimeMagic.by_path('filename.txt') MimeMagic.by_path('filename.txt')
MimeMagic.by_magic(File.open('test.html')) MimeMagic.by_magic(File.open('test.html'))
etc... # etc...
API API
=== ===
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment