nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a37588e
)
lib/nitcorn: fix `missing doc` for media_types
author
Alexandre Terrasa
<alexandre@moz-code.org>
Wed, 1 Jun 2016 14:51:12 +0000
(10:51 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Wed, 1 Jun 2016 14:51:12 +0000
(10:51 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
lib/nitcorn/media_types.nit
patch
|
blob
|
history
diff --git
a/lib/nitcorn/media_types.nit
b/lib/nitcorn/media_types.nit
index
37dd9db
..
305f314
100644
(file)
--- a/
lib/nitcorn/media_types.nit
+++ b/
lib/nitcorn/media_types.nit
@@
-20,6
+20,8
@@
module media_types
# Map of known MIME types
class MediaTypes
+
+ # MIME types by extensions.
protected var types = new HashMap[String, String]
# Get the type/subtype associated to a file extension `ext`
@@
-106,4
+108,5
@@
class MediaTypes
end
end
+# MIME types list.
fun media_types: MediaTypes do return once new MediaTypes