Sha256: f081951b86ac46423eb8d152d10ad609b60263cc258b4a930476ecfba8907ca3
Contents?: true
Size: 463 Bytes
Versions: 5
Compression:
Stored size: 463 Bytes
Contents
module RwdtinkerTools # tools to use in rwdtinker def RwdtinkerTools.tail(filename, lines=12) begin tmpFile = File.open(filename, 'r') return tmpFile.readlines.reverse!.slice(0,lines) tmpFile.close rescue return "error in opening log" $rwdtinkerlog.error "RwdtinkerTools.tail: file open error" end end end
Version data entries
5 entries across 5 versions & 4 rubygems