Sha256: a178c3f970af183221eb217b7c957e852ffb06a9f388a431c0f53379b0718965
Contents?: true
Size: 189 Bytes
Versions: 38
Compression:
Stored size: 189 Bytes
Contents
class File # from ptools def self.binary?(file) s = (File.read(file, File.stat(file).blksize) || "").split(//) ((s.size - s.grep(" ".."~").size) / s.size.to_f) > 0.30 end end
Version data entries
38 entries across 36 versions & 4 rubygems