Class: Icalendar::Offset::ActiveSupportExact
- Inherits:
-
Icalendar::Offset
- Object
- Icalendar::Offset
- Icalendar::Offset::ActiveSupportExact
- Defined in:
- lib/icalendar/offset/active_support_exact.rb
Instance Method Summary collapse
Methods inherited from Icalendar::Offset
build, #initialize, #normalized_tzid
Constructor Details
This class inherits a constructor from Icalendar::Offset
Instance Method Details
#normalized_value ⇒ Object
10 11 12 13 14 |
# File 'lib/icalendar/offset/active_support_exact.rb', line 10 def normalized_value Icalendar.logger.debug("Plan a - parsing #{value}/#{tzid} as ActiveSupport::TimeWithZone") # plan a - use ActiveSupport::TimeWithZone Icalendar::Values::Helpers::ActiveSupportTimeWithZoneAdapter.new(nil, tz, value) end |
#valid? ⇒ Boolean
6 7 8 |
# File 'lib/icalendar/offset/active_support_exact.rb', line 6 def valid? support_classes_defined? && tz end |