Module: Ronin::Controls::Helpers::FileRead

Includes:
FileSystem
Defined in:
lib/ronin/controls/helpers/file_read.rb

Instance Method Summary collapse

Methods included from FileSystem

#chdir, #cwd, #updir!

Instance Method Details

#exists?(path) ⇒ Boolean

Returns true if the specified path exists, returns false otherwise.

Returns:

  • (Boolean)

Raises:

Since:

  • 0.3.0



37
38
39
# File 'lib/ronin/controls/helpers/file_read.rb', line 37

def exists?(path)
  raise(NotImplemented,"the exists? method has not been implemented",caller)
end

#file?(path) ⇒ Boolean

Returns true if the specified path is a file, returns false otherwise.

Returns:

  • (Boolean)

Raises:

Since:

  • 0.3.0



47
48
49
# File 'lib/ronin/controls/helpers/file_read.rb', line 47

def file?(path)
  raise(NotImplemented,"the file? method has not been implemented",caller)
end

#read_file(path) ⇒ Object

Returns the contents of the file at the specified path.

Raises:

Since:

  • 0.3.0



56
57
58
# File 'lib/ronin/controls/helpers/file_read.rb', line 56

def read_file(path)
  raise(NotImplemented,"the read_file method has not been implemented",caller)
end