Method: Circa::Date#to_date
- Defined in:
- lib/circa/date.rb
#to_date ⇒ ::Date
Get the date as a Date
46 47 48 49 50 51 |
# File 'lib/circa/date.rb', line 46 def to_date return nil if valid_parts.empty? parts = [:year, :month, :day] args = valid_parts_as_args(parts) ::Date.send(:new, *args) end |