Class: Icalendar::Parameter

Inherits:
Content
  • Object
show all
Defined in:
lib/icalendar/parameter.rb

Overview

A property can have attributes associated with it. These “property parameters” contain meta-information about the property or the property value. Property parameters are provided to specify such information as the location of an alternate text representation for a property value, the language of a text property value, the data type of the property value and other attributes.

Instance Method Summary collapse

Instance Method Details

#to_sObject



19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/icalendar/parameter.rb', line 19

def to_s
  s = ""
  
  s << "#{@name}="
  if is_escapable?
    s << escape(print_value())
  else
    s << print_value
  end

  s
end