Sha256: 15197ef5ce40523ea78e928b4b99fc83217d715fef5e0729eca37bb5cb9e138c
Contents?: true
Size: 407 Bytes
Versions: 75
Compression:
Stored size: 407 Bytes
Contents
module ActiveSupport module EachTimeWithZone #:nodoc: def each(&block) ensure_iteration_allowed super end def step(n = 1, &block) ensure_iteration_allowed super end private def ensure_iteration_allowed raise TypeError, "can't iterate from #{first.class}" if first.is_a?(Time) end end end Range.prepend(ActiveSupport::EachTimeWithZone)
Version data entries
75 entries across 72 versions & 9 rubygems