Method: Tins::FileBinary::ClassMethods#binary?

Defined in:
lib/tins/file_binary.rb

#binary?(name, options = {}) ⇒ Boolean

Returns true if the file with name name is considered to be binary using the FileBinary#binary? method.

Returns:

  • (Boolean)


70
71
72
# File 'lib/tins/file_binary.rb', line 70

def binary?(name, options = {})
  open(name, 'rb') { |f| f.binary?(options) }
end