Class: DataHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/common/socket/data_helper.rb,
lib/common/socket/rlib/data_helper.rb

Overview

require ‘log4s’

Class Method Summary collapse

Class Method Details

.file_exist?(file_path) ⇒ Boolean

DataHelper.file_exist? file_path

Returns:

  • (Boolean)

12
13
14
# File 'lib/common/socket/data_helper.rb', line 12

def self.file_exist? file_path
	return File.exists? file_path
end

.file_size?(file_path) ⇒ Boolean

DataHelper.file_size? file_path

Returns:

  • (Boolean)

20
21
22
# File 'lib/common/socket/data_helper.rb', line 20

def self.file_size? file_path
	return File.size? file_path
end