Class: DTK::Network::Client::FileHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/client/file_helper.rb

Class Method Summary collapse

Class Method Details

.get_content?(file_path) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/client/file_helper.rb', line 3

def self.get_content?(file_path)
  File.open(file_path).read if file_path && File.exists?(file_path)
end