Method: FileSeries#initialize
- Defined in:
- lib/file_series.rb
#initialize(options = {}) ⇒ FileSeries
Returns a new instance of FileSeries.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/file_series.rb', line 33 def initialize( = {}) @dir = [:dir] || DEFAULT_DIR @file = nil @current_ts = nil @filename_prefix = [:prefix] || DEFAULT_PREFIX @rotate_freq = [:rotate_every] || DEFAULT_FREQ #seconds @binary_mode = [:binary] @separator = [:separator] || DEFAULT_SEPARATOR @sync = [:sync] || false end |