Class: Vcard::V4_0::PropertyValue::Textlist
Instance Attribute Summary
#errors, #norm, #type, #value
Instance Method Summary
collapse
#<=>, #name, #to_norm
Constructor Details
#initialize(val) ⇒ Textlist
Returns a new instance of Textlist.
333
334
335
336
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 333
def initialize(val)
self.value = val
self.type = "text"
end
|
Instance Method Details
#to_hash ⇒ Object
342
343
344
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 342
def to_hash
value
end
|
#to_s ⇒ Object
338
339
340
|
# File 'lib/vobject/vcard/v4_0/propertyvalue.rb', line 338
def to_s
value.map { |m| Text.escape m }.join(",")
end
|