lib/tzinfo/definitions/Iran.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Iran.rb in tzinfo-0.3.0

- old
+ new

@@ -1,10 +1,11 @@ -require 'tzinfo/timezone' -require 'tzinfo/definitions/Asia/Tehran' +require 'tzinfo/timezone_definition' + module TZInfo -module Definitions #:nodoc: -class Iran < Definitions::Asia::Tehran #:nodoc: -setup_linked -set_identifier('Iran') -end -end + module Definitions + module Iran + include TimezoneDefinition + + linked_timezone 'Iran', 'Asia/Tehran' + end + end end