Class: Vobject::Vcalendar::PropertyValue::Textlist

Inherits:
PropertyValue
  • Object
show all
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) ⇒ Textlist

Returns a new instance of Textlist.



444
445
446
447
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 444

def initialize(val)
  self.value = val
  self.type = "textlist"
end

Instance Method Details

#to_hashObject



453
454
455
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 453

def to_hash
  value
end

#to_sObject



449
450
451
# File 'lib/vobject/vcalendar/propertyvalue.rb', line 449

def to_s
  value.map { |m| Text.escape m }.join(",")
end