Method: ActiveSupport::TimeZone.new
- Defined in:
- activesupport/lib/active_support/values/time_zone.rb
permalink .new(name) ⇒ Object
Returns a TimeZone instance with the given name, or nil
if no such TimeZone instance exists. (This exists to support the use of this class with the composed_of
macro.)
214 215 216 |
# File 'activesupport/lib/active_support/values/time_zone.rb', line 214 def new(name) self[name] end |