Method: Icalendar2::TextValue#initialize
- Defined in:
- lib/icalendar2/value/text_value.rb
#initialize(value) ⇒ TextValue
Returns a new instance of TextValue.
6 7 8 9 10 11 12 |
# File 'lib/icalendar2/value/text_value.rb', line 6 def initialize(value) if value.respond_to?(:gsub) super(value.gsub(/\\/, "\\\\\\").gsub(';', '\;').gsub(',', '\,').gsub("\r\n", "\n").gsub("\r", "\n")) else super(value) end end |