class Middleman::Sitemap::Resource
def binary?
Whether the source file is binary.
def binary? s = (File.read(source_file, File.stat(source_file).blksize) || "").split(//) ((s.size - s.grep(" ".."~").size) / s.size.to_f) > 0.30 end
def binary? s = (File.read(source_file, File.stat(source_file).blksize) || "").split(//) ((s.size - s.grep(" ".."~").size) / s.size.to_f) > 0.30 end