Source: show | on GitHub
# File actiontext/lib/action_text/plain_text_conversion.rb, line 9 def node_to_plain_text(node) BottomUpReducer.new(node).reduce do |n, child_values| plain_text_for_node(n, child_values) end.then(&method(:remove_trailing_newlines)) end