Module: Ronin::Controls::Helpers::FileRead
- Includes:
- FileSystem
- Defined in:
- lib/ronin/controls/helpers/file_read.rb
Instance Method Summary collapse
-
#exists?(path) ⇒ Boolean
Returns
true
if the specified path exists, returnsfalse
otherwise. -
#file?(path) ⇒ Boolean
Returns
true
if the specified path is a file, returnsfalse
otherwise. -
#read_file(path) ⇒ Object
Returns the contents of the file at the specified path.
Methods included from FileSystem
Instance Method Details
#exists?(path) ⇒ Boolean
Returns true
if the specified path exists, returns false
otherwise.
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.
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.
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 |