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