Method: Tins::FileBinary::ClassMethods#ascii?
- Defined in:
- lib/tins/file_binary.rb
#ascii?(name, options = {}) ⇒ Boolean
Returns true if the file with name name
is considered to be ascii using the FileBinary#ascii? method.
76 77 78 |
# File 'lib/tins/file_binary.rb', line 76 def ascii?(name, = {}) open(name, 'rb') { |f| f.ascii?() } end |