Class: Vcard::V3_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.
356
357
358
359
|
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 356
def initialize(val)
self.value = val
self.type = "textlist"
end
|
Instance Method Details
#to_hash ⇒ Object
365
366
367
|
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 365
def to_hash
value
end
|
#to_s ⇒ Object
361
362
363
|
# File 'lib/vobject/vcard/v3_0/propertyvalue.rb', line 361
def to_s
value.map { |m| Text.escape m }.join(",")
end
|