Module: Icalendar2::Property

Defined in:
lib/icalendar2.rb,
lib/icalendar2/property.rb,
lib/icalendar2/property/geo.rb,
lib/icalendar2/property/nil.rb,
lib/icalendar2/property/uid.rb,
lib/icalendar2/property/base.rb,
lib/icalendar2/property/class.rb,
lib/icalendar2/property/dtend.rb,
lib/icalendar2/property/rdate.rb,
lib/icalendar2/property/rrule.rb,
lib/icalendar2/property/attach.rb,
lib/icalendar2/property/exdate.rb,
lib/icalendar2/property/comment.rb,
lib/icalendar2/property/contact.rb,
lib/icalendar2/property/dtstamp.rb,
lib/icalendar2/property/dtstart.rb,
lib/icalendar2/property/rstatus.rb,
lib/icalendar2/property/summary.rb,
lib/icalendar2/property/attendee.rb,
lib/icalendar2/property/last_mod.rb,
lib/icalendar2/property/location.rb,
lib/icalendar2/property/priority.rb,
lib/icalendar2/property/sequence.rb,
lib/icalendar2/property/organizer.rb,
lib/icalendar2/property/resources.rb,
lib/icalendar2/property/categories.rb,
lib/icalendar2/property/related_to.rb,
lib/icalendar2/property/description.rb

Defined Under Namespace

Classes: Attach, Attendee, Base, Categories, Comment, Contact, Description, Dtend, Dtstamp, Dtstart, Exdate, Geo, Klass, LastMod, Location, Nil, Organizer, Priority, Rdate, RelatedTo, Resources, Rrule, Rstatus, Sequence, Summary, Uid

Class Method Summary collapse

Class Method Details

.get_factory(property_sym) ⇒ Object



3
4
5
6
7
# File 'lib/icalendar2/property.rb', line 3

def self.get_factory(property_sym)
  # :foo => "Foo", :bar_baz => "BarBaz", etc.
  property_name = property_sym.to_s.split(/_/).map(&:capitalize).join('')
  const_get(property_name) if const_defined?(property_name)
end