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(options = {})
  @dir = options[:dir] || DEFAULT_DIR
  @file = nil
  @current_ts = nil
  @filename_prefix = options[:prefix] || DEFAULT_PREFIX
  @rotate_freq = options[:rotate_every] || DEFAULT_FREQ #seconds
  @binary_mode = options[:binary]
  @separator = options[:separator] || DEFAULT_SEPARATOR
  @sync = options[:sync] || false
end