# File lib/lumberjack/device/date_rolling_log_file.rb, line 14 def initialize(path, options = {}) @file_date = Date.today if options[:roll] && options[:roll].to_s.match(/(daily)|(weekly)|(monthly)/i) @roll_period = $~[0].downcase.to_sym options.delete(:roll) else raise ArgumentError.new("illegal value for :roll (#{options[:roll].inspect})") end super end