Class: Vcard::V4_0::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.
114
115
116
117
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 114
def initialize(val)
self.value = val
self.type = "float"
end
|
Instance Method Details
#<=>(another) ⇒ Object
110
111
112
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 110
def <=>(another)
value <=> another.value
end
|
#to_hash ⇒ Object
123
124
125
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 123
def to_hash
value
end
|
#to_s ⇒ Object
119
120
121
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 119
def to_s
value
end
|