Module: RiCal::CoreExtensions::Date::Conversions
- Included in:
- Date
- Defined in:
- lib/ri_cal/core_extensions/date/conversions.rb
Overview
-
©2009 Rick DeNatale
-
All rights reserved. Refer to the file README.txt for the license
Instance Method Summary collapse
-
#to_ri_cal_date_time_value ⇒ Object
Return an RiCal::PropertyValue::DateTime representing the receiver.
-
#to_ri_cal_date_value ⇒ Object
(also: #to_ri_cal_date_or_date_time_value)
Return an RiCal::PropertyValue::Date representing the receiver.
-
#to_ri_cal_property_value ⇒ Object
Return the natural ri_cal_property for this object.
Instance Method Details
#to_ri_cal_date_time_value ⇒ Object
Return an RiCal::PropertyValue::DateTime representing the receiver
9 10 11 |
# File 'lib/ri_cal/core_extensions/date/conversions.rb', line 9 def to_ri_cal_date_time_value RiCal::PropertyValue::DateTime.new(nil, :value => self) end |
#to_ri_cal_date_value ⇒ Object Also known as: to_ri_cal_date_or_date_time_value
Return an RiCal::PropertyValue::Date representing the receiver
14 15 16 |
# File 'lib/ri_cal/core_extensions/date/conversions.rb', line 14 def to_ri_cal_date_value RiCal::PropertyValue::Date.new(nil, :value => self) end |
#to_ri_cal_property_value ⇒ Object
Return the natural ri_cal_property for this object
21 22 23 |
# File 'lib/ri_cal/core_extensions/date/conversions.rb', line 21 def to_ri_cal_property_value to_ri_cal_date_value end |