mimemagic.rb
3.65 KB
-
Use StringIO to remove duplication · 63ae54f7
Previously we had to separate branches which did the same thing, one was for IOs and other was for strings. However, if we wrap the string into a StringIO, we can use the same branch for both.
Janko Marohnić committed