method
list_node_depth_for_node
v7.2.3 -
Show latest stable
- Class:
ActionText::PlainTextConversion
list_node_depth_for_node(node)private
No documentation available.
# File actiontext/lib/action_text/plain_text_conversion.rb, line 107
def list_node_depth_for_node(node)
node.ancestors.map(&:name).grep(/^[uo]l$/).count
end