lib/tzinfo/definitions/Australia/Tasmania.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Australia/Tasmania.rb in tzinfo-0.3.0
- old
+ new
@@ -1,12 +1,13 @@
-require 'tzinfo/timezone'
-require 'tzinfo/definitions/Australia/Hobart'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module Australia #:nodoc:
-class Tasmania < Definitions::Australia::Hobart #:nodoc:
-setup_linked
-set_identifier('Australia/Tasmania')
-end
-end
-end
+ module Definitions
+ module Australia
+ module Tasmania
+ include TimezoneDefinition
+
+ linked_timezone 'Australia/Tasmania', 'Australia/Hobart'
+ end
+ end
+ end
end