module Tins::FileBinary::ClassMethods
Public Instance Methods
Source
# File lib/tins/file_binary.rb, line 76 def ascii?(name, options = {}) open(name, 'rb') { |f| f.ascii?(options) } end
Returns true if the file with name name
is considered to be ascii using the FileBinary#ascii?
method.
Source
# File lib/tins/file_binary.rb, line 70 def binary?(name, options = {}) open(name, 'rb') { |f| f.binary?(options) } end
Returns true if the file with name name
is considered to be binary using the FileBinary#binary?
method.