Class: Icalendar::Offset::ActiveSupportPartial
Instance Method Summary
collapse
build, #initialize
Instance Method Details
#normalized_tzid ⇒ Object
16
17
18
|
# File 'lib/icalendar/offset/active_support_partial.rb', line 16
def normalized_tzid
[tz.tzinfo.name]
end
|
#normalized_value ⇒ Object
10
11
12
13
14
|
# File 'lib/icalendar/offset/active_support_partial.rb', line 10
def normalized_value
Icalendar.logger.debug("Plan c - parsing #{value}/#{tz.tzinfo.name} as ActiveSupport::TimeWithZone")
Icalendar::Values::Helpers::ActiveSupportTimeWithZoneAdapter.new(nil, tz, value)
end
|
#valid? ⇒ Boolean
6
7
8
|
# File 'lib/icalendar/offset/active_support_partial.rb', line 6
def valid?
support_classes_defined? && tz
end
|