Class: LazyRotator::File::Touch
- Inherits:
-
Undetermined
- Object
- Undetermined
- LazyRotator::File::Touch
- Defined in:
- lib/lazy_rotator/file/touch.rb
Overview
Ensure the initial file is in place
Instance Attribute Summary
Attributes inherited from Undetermined
Instance Method Summary collapse
Methods inherited from Undetermined
#<=>, #==, file_number, #initialize, #number
Constructor Details
This class inherits a constructor from LazyRotator::File::Undetermined
Instance Method Details
#process ⇒ Object
7 8 9 10 11 |
# File 'lib/lazy_rotator/file/touch.rb', line 7 def process return unless number.zero? ::FileUtils.touch file_name end |