module Spruz::FileBinary::ClassMethods
Public Instance Methods
ascii?(name, options = {})
click to toggle source
Returns true if the file with name name
is considered to be
ascii using the Spruz::FileBinary#ascii?
method.
# File lib/spruz/file_binary.rb, line 78 def ascii?(name, options = {}) open(name, 'rb') { |f| f.ascii?(options) } end
binary?(name, options = {})
click to toggle source
Returns true if the file with name name
is considered to be
binary using the Spruz::FileBinary#binary?
method.
# File lib/spruz/file_binary.rb, line 72 def binary?(name, options = {}) open(name, 'rb') { |f| f.binary?(options) } end