Class: FluQ::Handler::Log::FilePool
- Inherits:
-
TimedLRU
- Object
- TimedLRU
- FluQ::Handler::Log::FilePool
- Defined in:
- lib/fluq/handler/log.rb
Instance Method Summary collapse
Instance Method Details
#open(path) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/fluq/handler/log.rb', line 5 def open(path) path = path.to_s self[path.to_s] ||= begin FileUtils.mkdir_p File.dirname(path) file = File.open(path, "a+") file.autoclose = true file end end |