Parent

Methods

RiCal::PropertyValue::Text

 RiCal::PropertyValue::Text represents an icalendar Text property value
 which is defined in
 rfc 2445 section 4.3.11 pp 45-46

Public Instance Methods

ruby_value() click to toggle source

Return the string value of the receiver

# File lib/ri_cal/property_value/text.rb, line 11
      def ruby_value
        if value
          value.gsub(/\\[;,nN\\]/) {|match|
            case match[1,1]
            when /[,;\\]/
              match[1,1]
            when 'n', 'N'
              "\n"
            else
              match
            end
          }
        else
          nil
        end
      end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.