Sha256: adedef5cb30fd806a053a66f4b22de88f2ca82ec989f4c88da976b2e656903be
Contents?: true
Size: 355 Bytes
Versions: 42
Compression:
Stored size: 355 Bytes
Contents
require 'ptools' module Mirage module BinaryDataChecker class << self def contains_binary_data? string tmpfile = Tempfile.new("binary_check") tmpfile.write(string) tmpfile.close binary = File.binary?(tmpfile.path) FileUtils.rm(tmpfile.path) binary end end end end
Version data entries
42 entries across 42 versions & 2 rubygems