instance method
to_dep_map
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
to_dep_map(seen = Set.new.compare_by_identity)
No documentation comment.
Parameters
-
seenopt = Set.new.compare_by_identity
Source
# File actionview/lib/action_view/digestor.rb, line 110
def to_dep_map(seen = Set.new.compare_by_identity)
if seen.add?(self)
children.any? ? { name => children.map { |c| c.to_dep_map(seen) } } : name
else # the tree has a cycle
name
end
end
Defined in actionview/lib/action_view/digestor.rb line 110
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Digestor::Node