Sha256: 1daff9d7cd99dc0a33fcc4cec0eaf62c429c8a62b4dd93da60a96c627a9b008c

Contents?: true

Size: 922 Bytes

Versions: 14

Compression:

Stored size: 922 Bytes

Contents

module RiCal

  class Component
    #- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
    #
    # An NonStandard component represents a component (or subcomponent) not listed in RFC2445.
    # For example some icalendar data contains VVENUE components, a proposed extension to RFC2445
    # which was dropped.
    class NonStandard < Component
      attr_reader :entity_name
      
      def initialize(parent, entity_name)
        super(parent)
        @entity_name = entity_name
        @source_lines = []
      end
      
      def process_line(parser, line) #:nodoc:
        if line[:name] == "BEGIN"
          parse_subcomponent(parser, line)
        else
          @source_lines << parser.last_line_str
        end
      end
      
      def export_properties_to(stream)
        @source_lines.each do |line|
          stream.puts(line)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 7 rubygems

Version Path
demingfactor-ri_cal-0.10.0 lib/ri_cal/component/non_standard.rb
demingfactor-ri_cal-0.9.0 lib/ri_cal/component/non_standard.rb
rubyredrick-ri_cal-0.8.4 lib/ri_cal/component/non_standard.rb
awallis-ri_cal-0.8.8 lib/ri_cal/component/non_standard.rb
justinsoong-ri_cal-0.8.9 lib/ri_cal/component/non_standard.rb
justinsoong-ri_cal-0.8.8 lib/ri_cal/component/non_standard.rb
micahwedemeyer-ri_cal-0.8.10 lib/ri_cal/component/non_standard.rb
micahwedemeyer-ri_cal-0.8.9 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.8 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.7 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.6 lib/ri_cal/component/non_standard.rb
miguelbaldi-ri_cal-0.1 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.5 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.4 lib/ri_cal/component/non_standard.rb