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