Method: Inspec::FileProvider#read

Defined in:
lib/inspec/file_provider.rb

#read(_file) ⇒ String

Read the contents of a file. This will typically refer to a text file reading a string.

Parameters:

  • _file (String)

    path of the file to be read

Returns:

  • (String)

    contents of the file described



39
40
41
# File 'lib/inspec/file_provider.rb', line 39

def read(_file)
  raise "#{self} does not implement `read(...)`. This is required."
end