method

ensure_iteration_allowed

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: Range
ensure_iteration_allowed() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

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
Register or log in to add new notes.