Method: LS4::FileUpdateLog::LogFile#initialize

Defined in:
lib/ls4/service/ulog_file.rb

#initialize(path, atime) ⇒ LogFile

Returns a new instance of LogFile.



184
185
186
187
188
189
190
191
192
# File 'lib/ls4/service/ulog_file.rb', line 184

def initialize(path, atime)
	@path = path
	@file = File.open(@path, File::RDWR|File::CREAT)
	if @file.stat.size == 0
		init_file(atime)
	else
		read_file
	end
end