Method: Timely::DateChooser#initialize
- Defined in:
- lib/timely/date_chooser.rb
#initialize(options) ⇒ DateChooser
Returns a new instance of DateChooser.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/timely/date_chooser.rb', line 17 def initialize() @multiple_dates = [:multiple_dates] || false @from = process_date([:from]) @to = process_date([:to]) @select = [:select] @dates = [:dates] @specific_dates = [:specific_dates] @interval = [:interval] @weekdays = WeekDays.new([:weekdays]) if @select == 'weekdays' validate end |