Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mimemagic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
mimemagic
Commits
13340066
Commit
13340066
authored
Apr 02, 2013
by
Christopher Pfohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.markdown
Correct tabbing for markdown code segment
parent
f3e0a080
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.markdown
+6
-6
No files found.
README.markdown
View file @
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
===
===
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment