Class: Groonga::FileLogger
Instance Method Summary collapse
- #fin ⇒ Object
-
#initialize(file_name) ⇒ FileLogger
constructor
A new instance of FileLogger.
- #reopen ⇒ Object
Methods inherited from Logger
Constructor Details
#initialize(file_name) ⇒ FileLogger
Returns a new instance of FileLogger.
84 85 86 87 88 |
# File 'lib/groonga/logger.rb', line 84 def initialize(file_name) super() @file = nil @file_name = file_name end |
Instance Method Details
#fin ⇒ Object
98 99 100 101 102 103 |
# File 'lib/groonga/logger.rb', line 98 def fin guard do return unless @file @file.close end end |
#reopen ⇒ Object
90 91 92 93 94 95 96 |
# File 'lib/groonga/logger.rb', line 90 def reopen guard do return unless @file @file.close @file = nil end end |