module Mhtml

Constants

DOUBLE_LINE_BREAK
FILE_EXTENSIONS
LINE_BREAK
STATUS_LINE
VERSION

Public Class Methods

is_mhtml(filename) click to toggle source
# File lib/mhtml.rb, line 11
def self.is_mhtml(filename)
  ext = File.extname(filename)
  return false if ext.empty?
  ext.downcase!
  FILE_EXTENSIONS.include?(ext)
end