Sha256: 321a1c1c5c1c83bca4b2ff5235b653639a90769f78fec27539a3330d0f6f97a4
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
=begin Copyright (C) 2008 Sam Roberts This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details. =end require 'vpim/dirinfo' require 'vpim/field' require 'vpim/rfc2425' require 'vpim/vpim' require 'vpim/property/base' require 'vpim/property/common' require 'vpim/property/recurrence' module Vpim class Icalendar class Vjournal include Vpim::Icalendar::Property::Base include Vpim::Icalendar::Property::Common include Vpim::Icalendar::Property::Recurrence def initialize(fields) #:nodoc: outer, inner = Vpim.outer_inner(fields) @properties = Vpim::DirectoryInfo.create(outer) @elements = inner end # Create a Vjournal component. def self.create(fields=[]) di = DirectoryInfo.create([], 'VJOURNAL') Vpim::DirectoryInfo::Field.create_array(fields).each { |f| di.push_unique f } new(di.to_a) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vpim-0.597 | lib/vpim/vjournal.rb |
vpim-0.602 | lib/vpim/vjournal.rb |
vpim-0.604 | lib/vpim/vjournal.rb |
vpim-0.619 | lib/vpim/vjournal.rb |