You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
855 B
34 lines
855 B
=begin
|
|
Copyright (C) 2005 Jeff Rose
|
|
|
|
This library is free software; you can redistribute it and/or modify it
|
|
under the same terms as the ruby language itself, see the file COPYING for
|
|
details.
|
|
=end
|
|
|
|
module Icalendar
|
|
|
|
# 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.
|
|
class Parameter < Icalendar::Content
|
|
|
|
def to_s
|
|
s = ""
|
|
|
|
s << "#{@name}="
|
|
if is_escapable?
|
|
s << escape(print_value())
|
|
else
|
|
s << print_value
|
|
end
|
|
|
|
s
|
|
end
|
|
|
|
end
|
|
end
|