29 30 31 32 33 34 35 36
# File 'lib/timely/date_chooser.rb', line 29 def process_date(date) case date when Date then date when NilClass then nil when String date !~ /[^[:space:]]/ ? nil : date.to_date end end