Method: Inspec::FileProvider#binread

Defined in:
lib/inspec/file_provider.rb

#binread(file) ⇒ Object

Provide a method for reading binary contents from a file. It will default to #read if not defined. For most streams that implement it, it will be the same. For some special cases, it will add change the way in which encoding of the returned data structure is handled. Does not work with alias nor alias_method.



48
49
50
# File 'lib/inspec/file_provider.rb', line 48

def binread(file)
  read(file)
end