Sha256: fb1b480170d753e551dc2c81e8ae28d3e88e8025b060b51e233fb2d265887198

Contents?: true

Size: 993 Bytes

Versions: 7

Compression:

Stored size: 993 Bytes

Contents

require File.join(File.dirname(__FILE__), %w[.. properties alarm.rb])

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

7 entries across 7 versions & 3 rubygems

Version Path
ebeigarts-ri_cal-0.8.1 lib/ri_cal/component/non_standard.rb
rubyredrick-ri_cal-0.8.0 lib/ri_cal/component/non_standard.rb
rubyredrick-ri_cal-0.8.1 lib/ri_cal/component/non_standard.rb
rubyredrick-ri_cal-0.8.2 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.2 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.1 lib/ri_cal/component/non_standard.rb
ri_cal-0.8.0 lib/ri_cal/component/non_standard.rb