class Egalite::DebugLogger
Public Class Methods
new(path)
click to toggle source
# File lib/egalite.rb, line 66 def initialize(path) @path = path end
Public Instance Methods
puts(s)
click to toggle source
# File lib/egalite.rb, line 69 def puts(s) open(@path, "a") { |f| begin f.flock(File::LOCK_EX) f.puts s f.flush ensure f.flock(File::LOCK_UN) end } end