lib/tzinfo/offset_rationals.rb in tzinfo-0.3.37 vs lib/tzinfo/offset_rationals.rb in tzinfo-0.3.38

- old
+ new

@@ -1,7 +1,7 @@ #-- -# Copyright (c) 2006-2010 Philip Ross +# Copyright (c) 2006-2013 Philip Ross # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell @@ -24,10 +24,12 @@ module TZInfo # Provides a method for getting Rationals for a timezone offset in seconds. # Pre-reduced rationals are returned for all the half-hour intervals between - # -14 and +14 hours to avoid having to call gcd at runtime. + # -14 and +14 hours to avoid having to call gcd at runtime. + # + # @private module OffsetRationals #:nodoc: @@rational_cache = { -50400 => RubyCoreSupport.rational_new!(-7,12), -48600 => RubyCoreSupport.rational_new!(-9,16), -46800 => RubyCoreSupport.rational_new!(-13,24),