Sha256: 5bbc06662c24989fd5c65fac28684389b3847a18e026da4ffb74b044dc542da1
Contents?: true
Size: 494 Bytes
Versions: 33
Compression:
Stored size: 494 Bytes
Contents
require 'super_callbacks' module SiteHook module Templates class Logs include SuperCallbacks before :created_log_log_header do @@time = Time.now.utc.localtime.strftime("%Y%m%dT%H%M%SZ%Z") end ### # Puts the log header to the start of the log files # @param [String,File,Pathname] file file to # @return NilClass ### def created_log_log_header header = "### Log file created at #{@@time}" end end end end
Version data entries
33 entries across 33 versions & 1 rubygems