Module: Icalendar2::CalendarProperty
- Defined in:
- lib/icalendar2.rb,
lib/icalendar2/calendar_property.rb,
lib/icalendar2/calendar_property/method.rb,
lib/icalendar2/calendar_property/prodid.rb,
lib/icalendar2/calendar_property/version.rb,
lib/icalendar2/calendar_property/calscale.rb
Defined Under Namespace
Classes: Calscale, Method, Prodid, Version
Class Method Summary collapse
Class Method Details
.get_factory(calendar_property_name) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/icalendar2/calendar_property.rb', line 3 def self.get_factory(calendar_property_name) # "VERSION" => CalendarProperty::Version, etc. begin property_class_name = calendar_property_name.to_s.capitalize const_get(property_class_name) if const_defined?(property_class_name) rescue NameError nil end end |