class Vobject::Vcalendar::PropertyValue::Date
Public Class Methods
new(val)
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 245 def initialize(val) self.value = val self.type = "date" end
Public Instance Methods
<=>(another)
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 241 def <=>(another) value <=> another.value end
to_hash()
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 254 def to_hash value end
to_s()
click to toggle source
# File lib/vobject/vcalendar/propertyvalue.rb, line 250 def to_s sprintf("%04d%02d%02d", value.year, value.month, value.day) end