Class: Vobject::Vcalendar::PropertyValue::Float
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#name, #to_norm
Constructor Details
#initialize(val) ⇒ Float
Returns a new instance of Float.
183
184
185
186
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 183
def initialize(val)
self.value = val
self.type = "float"
end
|
Instance Method Details
#<=>(another) ⇒ Object
179
180
181
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 179
def <=>(another)
value <=> another.value
end
|
#to_hash ⇒ Object
192
193
194
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 192
def to_hash
value
end
|
#to_s ⇒ Object
188
189
190
|
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 188
def to_s
value.to_s
end
|