Class: DTK::Network::Client::FileHelper
- Inherits:
-
Object
- Object
- DTK::Network::Client::FileHelper
- Defined in:
- lib/client/file_helper.rb
Class Method Summary collapse
Class Method Details
.get_content?(file_path) ⇒ 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 |