lib/multi_mime/adapter.rb in multi_mime-0.0.2 vs lib/multi_mime/adapter.rb in multi_mime-0.0.3

- old
+ new

@@ -1,30 +1,25 @@ -require "singleton" +require 'singleton' +require 'multi_mime/null_type' module MultiMime class Adapter include Singleton class << self - - # - def type_for(mime_type, opts={}) + def type_for(mime_type, opts = {}) instance.type_for(mime_type, opts) end - # - def type_for_extension(extension, opts={}) + def type_for_extension(extension, opts = {}) instance.type_for_extension(extension, opts) end - # - def type_for_path(path, opts={}) + def type_for_path(path, opts = {}) instance.type_for_path(path, opts) end - # - def type_for_file(file, opts={}) + def type_for_file(file, opts = {}) instance.type_for_file(file, opts) end - end end -end \ No newline at end of file +end