Method: ActiveSupport::DescendantsTracker::DescendantsArray#each

Defined in:
lib/active_support/descendants_tracker.rb

#eachObject



85
86
87
88
89
90
91
92
93
# File 'lib/active_support/descendants_tracker.rb', line 85

def each
  @refs.reject! do |ref|
    yield ref.__getobj__
    false
  rescue WeakRef::RefError
    true
  end
  self
end