Sha256: 177913d5477f4a5420accab9f5f5100de0281bc48a089b5d47d7e0469b2c0bb9
Contents?: true
Size: 822 Bytes
Versions: 1
Compression:
Stored size: 822 Bytes
Contents
module RiCal class Component # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friflaj_ri_cal-0.9.0 | lib/ri_cal/component/non_standard.rb |