lib/filemagic.rb in ruby-filemagic-0.4.2 vs lib/filemagic.rb in ruby-filemagic-0.5.0

- old
+ new

@@ -37,10 +37,10 @@ } # Map flag values to their names (Integer => :name). FLAGS_BY_INT = FLAGS_BY_SYM.invert.update(0 => :none) - # Extract "simple" MIME type + # Extract "simple" MIME type. SIMPLE_RE = %r{([.\w\/-]+)} @fm = Hash.new { |fm, flags| fm.has_key?(key = flags.to_s) ? fm[key] : fm[key] = new(*flags) }