lib/tzinfo/definitions/Etc/GMT__m__4.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Etc/GMT__m__4.rb in tzinfo-0.3.0
- old
+ new
@@ -1,12 +1,16 @@
-require 'tzinfo/timezone'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module Etc #:nodoc:
-class GMT__m__4 < Timezone #:nodoc:
-setup
-set_identifier('Etc/GMT-4')
-add_unbounded_start_period {TimezonePeriod.new(nil,nil,14400,0,:'GMT-4')}
-end
-end
-end
+ module Definitions
+ module Etc
+ module GMT__m__4
+ include TimezoneDefinition
+
+ timezone 'Etc/GMT-4' do |tz|
+ tz.offset :o0, 14400, 0, :'GMT-4'
+
+ end
+ end
+ end
+ end
end