Commit 13340066 by Christopher Pfohl

Update README.markdown

Correct tabbing for markdown code segment
parent f3e0a080
...@@ -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