class Vpim::Icalendar::Vevent::Maker
Attributes
event[R]
The event that changes are being made to.
Public Class Methods
make(event = Vpim::Icalendar::Vevent.create) { |maker| ... }
click to toggle source
Make changes to event
. If event
is not specified,
creates a new event. Yields a Vevent::Maker, and
returns event
.
# File lib/vpim/vevent.rb, line 150 def self.make(event = Vpim::Icalendar::Vevent.create) #:yield:maker m = self.new(event) yield m m.event end
Public Instance Methods
add_rrule(rule = nil) { |Maker| ... }
click to toggle source
Add a RRULE to this event. The rule can be provided as a pre-build RRULE value, or the RRULE maker can be used.
# File lib/vpim/vevent.rb, line 168 def add_rrule(rule = nil, &block) #:yield: Rrule::Maker # TODO - should be in Property::Reccurrence::Set unless rule rule = Rrule::Maker.new(&block).encode end @comp.properties.push(Vpim::DirectoryInfo::Field.create("RRULE", rule)) self end
dtend(dtend)
click to toggle source
set_rrule(rule = nil) { |Maker| ... }
click to toggle source
transparency(token)
click to toggle source
Set transparency to “OPAQUE” or “TRANSPARENT”, see Vpim::Vevent#transparency.
# File lib/vpim/vevent.rb, line 157 def transparency(token) set_token 'TRANSP', ["OPAQUE", "TRANSPARENT"], "OPAQUE", token end