Class: Vobject::Vcalendar::PropertyValue::Float

Inherits:
PropertyValue show all
Includes:
Comparable
Defined in:
lib/vobject/vcalendar/propertyvalue.rb

Instance Attribute Summary

Attributes inherited from PropertyValue

#errors, #norm, #type, #value

Instance Method Summary collapse

Methods inherited from PropertyValue

#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_hashObject



192
193
194
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 192

def to_hash
  value
end

#to_sObject



188
189
190
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 188

def to_s
  value.to_s
end