lib/filemagic/ext.rb in ruby-filemagic-0.3.0 vs lib/filemagic/ext.rb in ruby-filemagic-0.4.0

- old
+ new

@@ -21,10 +21,11 @@ def mime_type(file, *flags) flags.unshift :mime file_type(file, *flags) end + alias_method :mime, :mime_type def content_type(file, *flags) flags << { :simplified => true } mime_type(file, *flags) @@ -35,14 +36,16 @@ module InstanceMethods def file_type(*flags) self.class.file_type(self, *flags) end + alias_method :file, :file_type def mime_type(*flags) self.class.mime_type(self, *flags) end + alias_method :mime, :mime_type def content_type(*flags) self.class.content_type(self, *flags) end