method
ensure_iteration_allowed
ensure_iteration_allowed()
private
Hide source
# File activesupport/lib/active_support/core_ext/range/each.rb, line 19 def ensure_iteration_allowed if first.acts_like?(:time) raise TypeError, "can't iterate from #{first.class}" end end